Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2298866rdg; Sun, 15 Oct 2023 22:39:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+thHEYtay0Oa+tact1hoemBdmaoTwbsrPSlt6qD1UaJyxgNpWbJtc5/vO39nlU/7ByhBN X-Received: by 2002:a05:6a20:938f:b0:16b:c019:f5d2 with SMTP id x15-20020a056a20938f00b0016bc019f5d2mr26938843pzh.45.1697434779699; Sun, 15 Oct 2023 22:39:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697434779; cv=pass; d=google.com; s=arc-20160816; b=jxx7H09OsZ7EhLXCDqDQpQYk2g1P6yV6Ov+Nais4sbFs2TOpsMTYI+SAjRw6TMrSNc NAhCL6dgd+paXEEc9eLj/rFbTv8UjP0ITAzKEzsSxw+4dPwUT5kt+ALT8yMreoW2FRxA RHd4DzCIICdkUUGDzIP5yhKjnSTq60cNYIK2CkOXwm7ZRhLE+HGVtLaZfMMdE61YOXcK qQcaHvugzmH9zzRPcf9Co2cGDccs2EzeJ9sdlgkLDJ3dwiOhfQAIlpS30+/cqPbY+iwp Od9/nVGarQRO2G2xKG37i/NcIk6oefhfGmclhrvxzM7lc5hoUDjNxWO8GIDacP6DhtSC XBFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=SU5yDSOlRE5QZ7uILOUXi+2RDYac4J34dI4raoy0lEE=; fh=qcFW9ziWAzhN6vKH3gLUrGEc9Z95g0JQoMxhFbEVbxY=; b=PcK5+Ry/mjibK2Giy+tAe+7cZHF3m/u6Vl3uWDNorpQBXOxKRZvfrsDkKjwAUloC7t BzLJ1YO3dIcuVJcNqJLzbVVmwBzBRU/p4eF+moPQMlvBjiUr6iNRsRzAKi+Qjf4loJ1P KENepckMkqkDnyATLkQoY6VOZnnDgfCW/85Ovw1TEFr5/kiO3vEPiV+vU0KyPjHLgUue 1CSJk4lUqSxmCfE5QejlQBfFiPlXbhY8L5HritSIk71MdOo4l3gkA4/uMzQcYeWh1oDb NWIL7QXD8DgMwQr+26v9U9D+jq3ZMNFWF+VjuEAO+4iwotd9M/uEtQbN81VzCBWTxFny RrrA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=sEMNIi4D; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id l3-20020a170903244300b001c1f1394bf9si11041362pls.357.2023.10.15.22.39.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 22:39:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=sEMNIi4D; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 70F9A804BDCC; Sun, 15 Oct 2023 22:39:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231627AbjJPFjg (ORCPT + 99 others); Mon, 16 Oct 2023 01:39:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231584AbjJPFje (ORCPT ); Mon, 16 Oct 2023 01:39:34 -0400 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2077.outbound.protection.outlook.com [40.107.102.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFF18E6 for ; Sun, 15 Oct 2023 22:39:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZlEyUQIQhvooNXT2iJECtIK5mY52fwIG29bvAoj9T5iEBhHkgkGleQvi9+YoiraDd8KvaRxiMpXmiGX1CrLNYeoLxBadAOqanfnX4sFDz2TPihJssYMmJjWmSYasAN0fvVUVuTGiVQ2qJV1iZFu5FC+o/y2OF0yVAF5+0eItXzwJhn4nyB09DRgE9zX0el40o3inuNftQTZuzxIvHU0YGWhr5YnG7V+32iPaJvdw2YQyxfze478Yp79p4BCgsvUIDNaXD16HQ2iBwqIp+vLuv+A3o16VHh5yTqivMCeb5J2U4VdM6qKYYHMRzWUg6VPz1utuJ1Tdn+t5cYsu4qE8PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SU5yDSOlRE5QZ7uILOUXi+2RDYac4J34dI4raoy0lEE=; b=gc87j2KNjXk2ZtQb/0O3XDCMLVceqjljWku/PecLvM66TUP7AmrEPGR6Mag0d4rY9ZzRYPH2N7YtENRXnX2LP+vQRUjQ0jozd2B4jqFAVrvmnRiLeNNOcgKmdLafBavaSDGjGikpbDaGHD1rDztoXmxdbKzDskoULPWMlMYDOfAs3k/rWVQjZBuDgahZQwWuoy9VNP5HyAuxsUPuAw81BDsmBBwJGWu0Joa9fQ+zGRl0Y8Smt+4R6e5rXEVagZE573SBRwrt7boskDaqhYuiSKxSa8PDGkRJxdhSJJKonCSWz1WCBajXOmrOVfdTyIpR10lKKABSLvnoo2cgBLaLxA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SU5yDSOlRE5QZ7uILOUXi+2RDYac4J34dI4raoy0lEE=; b=sEMNIi4DgERmT57m35IMHQodqRrDG0C5Qzpq6BXvcuJVAabxmPC5rOVlALUCv/oVjmLFSzgoTrK79Pyam6b3gOuVGtIYlS5iRN4K++0b3zi8TbxiMYwNgCCJhl3g4UMRv9IkU6V2I6BTI5LntX3KoMXtuRXqjlD56eNxn5C8hFQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MW2PR12MB2379.namprd12.prod.outlook.com (2603:10b6:907:9::24) by SN7PR12MB7909.namprd12.prod.outlook.com (2603:10b6:806:340::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.35; Mon, 16 Oct 2023 05:39:27 +0000 Received: from MW2PR12MB2379.namprd12.prod.outlook.com ([fe80::2cf7:49ea:e95c:31b8]) by MW2PR12MB2379.namprd12.prod.outlook.com ([fe80::2cf7:49ea:e95c:31b8%6]) with mapi id 15.20.6886.034; Mon, 16 Oct 2023 05:39:27 +0000 Message-ID: <1878eaa4-0d2b-933a-12c8-40b28d771251@amd.com> Date: Mon, 16 Oct 2023 11:09:11 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Subject: Re: [PATCH] sched/fair: Always update_curr() before placing at enqueue Content-Language: en-US To: Daniel Jordan Cc: peterz@infradead.org, bristot@redhat.com, bsegall@google.com, chris.hyser@oracle.com, corbet@lwn.net, dietmar.eggemann@arm.com, efault@gmx.de, joel@joelfernandes.org, joshdon@google.com, juri.lelli@redhat.com, linux-kernel@vger.kernel.org, mgorman@suse.de, mingo@kernel.org, patrick.bellasi@matbug.net, pavel@ucw.cz, pjt@google.com, qperret@google.com, qyousef@layalina.io, rostedt@goodmis.org, tglx@linutronix.de, tim.c.chen@linux.intel.com, timj@gnu.org, vincent.guittot@linaro.org, youssefesmat@chromium.org, yu.c.chen@intel.com References: <20230531124604.068911180@infradead.org> <20231006164826.335223-1-daniel.m.jordan@oracle.com> From: K Prateek Nayak In-Reply-To: <20231006164826.335223-1-daniel.m.jordan@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN3PR01CA0048.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:98::23) To MW2PR12MB2379.namprd12.prod.outlook.com (2603:10b6:907:9::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW2PR12MB2379:EE_|SN7PR12MB7909:EE_ X-MS-Office365-Filtering-Correlation-Id: 4efeaa00-86cc-46a8-c84c-08dbce0a429c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aMfYpLOtzZJnAi53qg4L5Gu7mn5rPhUCV8swrSgHxwXKUtaZLFvrQ7ZF/HOkf9DWEdSmEMtBeRL9+nJXuroLScaqaibWtdjD5p6XNtX1ymkSu0IcnzVVCPKcfyOXHqcoVYYUpWplrFYdWNSzeEldoV1BUxFF/FfSHRybYItIvgbd8hqNjTdZmx8G0uTkse381423n8cagPLsTrZOPFqP2lRNzecJ7MC06selOEuyEiXh+n4bS5fLNfliFb8lB9Fp0UU2rEXtw3DDAhncxyKch6SLmtI3/hVtrJszLNoVaT1aeFAo03xwCPcjCtMT/EK5BMGnmuVRUoBeXgJD1x63iTuUdb72rI5RqNGcWPrNA0Oyt9VaW0MkYxlsmiYrb4LHWbQBdE6OabR3hggho6l3Nn5CHgGSUrZ4P33MvOMbSBSY4Ox0UixbkdRmcmcfPlw/M3yxYY7ubVW/8EPgbVOFottIHDfwDe5sj0RBYB/Zvz15RhPZGNba75idrDIxclWhtyc6BTyMza0Duq4zMtoanqenkkeG8gXKp1lNmik8cOGv+RSLOU2a4ZQ9TA0LeDT5Sg6jZ/y7JHA9mpsAgmywS65WkFxOPV/OG3LCo0RPw+3rmSaEq8IqNY2UOSac3WRaiTHG5aAwag1Fm+3ogYDplFX9MWfo/4AhhhzXG8WAGvc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW2PR12MB2379.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(346002)(366004)(376002)(39860400002)(396003)(230922051799003)(64100799003)(451199024)(186009)(1800799009)(86362001)(31696002)(36756003)(31686004)(6486002)(2906002)(478600001)(6666004)(41300700001)(5660300002)(53546011)(6506007)(38100700002)(2616005)(26005)(66476007)(66946007)(66556008)(6916009)(316002)(8936002)(8676002)(4326008)(83380400001)(7416002)(15650500001)(6512007)(21314003)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RGYrWFg2V3ZsVTh6dWdzTUhQSk1nM0h1UzVFMmlSSDRrZ1M5WFJIbGhKU3h1?= =?utf-8?B?cWdaV2d4SE5paXZNc2FORUxVTTBIQ09DWEJBdGdaY1FyMWQrQkc5U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YWUwR3VNQzlrTm9lanNkdGMyVURvTGsxTFdDSkgz?= =?utf-8?B?SnBiOE1tbFZGTWlQSUszWmZOMXZkREg3K1hTUWFmekdFRk1QRm5obTU0L2JQ?= =?utf-8?B?UStDSWRWMjhzUFRPNXZDcXRZRk5LaDRCSlEwaVNzS1dMOXFXQXJQTzFHMVl6?= =?utf-8?B?Zm9aZHdlNTBsZjF5V1c5YlRzampscksvbjBxRk1IS0dFMEVKbVY0Vy9QWG5F?= =?utf-8?Q?q70+q2Eh9tm/iyFPIi68iZnl2?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4efeaa00-86cc-46a8-c84c-08dbce0a429c X-MS-Exchange-CrossTenant-AuthSource: MW2PR12MB2379.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2023 05:39:26.9045 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cw5ESIZ3sPbCCeFCVZIcNnJFJUnVmNDxX3dyLSoHseCeyHKxX6Ct/qURSvzMGYSZsZ7xh400146yxlnFiD9vCQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7909 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 15 Oct 2023 22:39:38 -0700 (PDT) Hello Daniel, I see a good and consistent improvement in Stream (with shorter loops) with this change. Everything else is more or less the same. I'll leave the detailed results below. On 10/6/2023 10:18 PM, Daniel Jordan wrote: > Placing wants current's vruntime and the cfs_rq's min_vruntime up to > date so that avg_runtime() is too, and similarly it wants the entity to > be re-weighted and lag adjusted so vslice and vlag are fresh, so always > do update_curr() and update_cfs_group() beforehand. > > There doesn't seem to be a reason to treat the 'curr' case specially > after e8f331bcc270 since vruntime doesn't get normalized anymore. > > Fixes: e8f331bcc270 ("sched/smp: Use lag to simplify cross-runqueue placement") > Signed-off-by: Daniel Jordan o Machine details - 3rd Generation EPYC System - 2 sockets each with 64C/128T - NPS1 (Each socket is a NUMA node) - C2 Disabled (POLL and C1(MWAIT) remained enabled) o Kernel Details - tip: tip:sched/core at commit 3657680f38cd ("sched/psi: Delete the 'update_total' function parameter from update_triggers()") + cherry-pick commit 8dafa9d0eb1a sched/eevdf: Fix min_deadline heap integrity") from tip:sched/urgent + cherry-pick commit b01db23d5923 ("sched/eevdf: Fix pick_eevdf()") from tip:sched/urgent update_curr_opt: tip + this patch o Benchmark Results ================================================================== Test : hackbench Units : Normalized time in seconds Interpretation: Lower is better Statistic : AMean ================================================================== Case: tip[pct imp](CV) update_curr_opt[pct imp](CV) 1-groups 1.00 [ -0.00]( 2.69) 1.01 [ -0.71]( 2.88) 2-groups 1.00 [ -0.00]( 1.69) 1.01 [ -0.62]( 1.40) 4-groups 1.00 [ -0.00]( 1.25) 1.01 [ -1.17]( 1.03) 8-groups 1.00 [ -0.00]( 1.36) 1.00 [ -0.43]( 0.83) 16-groups 1.00 [ -0.00]( 1.44) 1.00 [ -0.13]( 2.32) ================================================================== Test : tbench Units : Normalized throughput Interpretation: Higher is better Statistic : AMean ================================================================== Clients: tip[pct imp](CV) update_curr_opt[pct imp](CV) 1 1.00 [ 0.00]( 0.33) 1.01 [ 0.52]( 1.51) 2 1.00 [ 0.00]( 0.22) 1.00 [ -0.01]( 0.37) 4 1.00 [ 0.00]( 0.25) 0.99 [ -0.71]( 0.60) 8 1.00 [ 0.00]( 0.71) 1.00 [ -0.26]( 0.36) 16 1.00 [ 0.00]( 0.79) 0.99 [ -1.21]( 0.77) 32 1.00 [ 0.00]( 0.94) 0.99 [ -0.82]( 1.46) 64 1.00 [ 0.00]( 1.76) 0.99 [ -0.92]( 1.25) 128 1.00 [ 0.00]( 0.68) 0.98 [ -2.22]( 1.19) 256 1.00 [ 0.00]( 1.23) 0.99 [ -1.43]( 0.79) 512 1.00 [ 0.00]( 0.28) 0.99 [ -0.93]( 0.14) 1024 1.00 [ 0.00]( 0.20) 0.99 [ -1.44]( 0.41) ================================================================== Test : stream-10 Units : Normalized Bandwidth, MB/s Interpretation: Higher is better Statistic : HMean ================================================================== Test: tip[pct imp](CV) update_curr_opt[pct imp](CV) Copy 1.00 [ 0.00](11.88) 1.22 [ 21.92]( 7.37) Scale 1.00 [ 0.00]( 7.01) 1.04 [ 4.02]( 4.89) Add 1.00 [ 0.00]( 6.56) 1.11 [ 11.03]( 4.77) Triad 1.00 [ 0.00]( 8.81) 1.14 [ 14.12]( 3.89) ================================================================== Test : stream-100 Units : Normalized Bandwidth, MB/s Interpretation: Higher is better Statistic : HMean ================================================================== Test: tip[pct imp](CV) update_curr_opt[pct imp](CV) Copy 1.00 [ 0.00]( 1.07) 1.01 [ 0.77]( 1.59) Scale 1.00 [ 0.00]( 4.81) 0.97 [ -2.99]( 7.18) Add 1.00 [ 0.00]( 4.56) 0.98 [ -2.39]( 6.86) Triad 1.00 [ 0.00]( 1.78) 1.00 [ -0.35]( 4.22) ================================================================== Test : netperf Units : Normalized Througput Interpretation: Higher is better Statistic : AMean ================================================================== Clients: tip[pct imp](CV) update_curr_opt[pct imp](CV) 1-clients 1.00 [ 0.00]( 0.62) 0.99 [ -1.03]( 0.24) 2-clients 1.00 [ 0.00]( 0.36) 1.00 [ -0.32]( 0.66) 4-clients 1.00 [ 0.00]( 0.31) 1.00 [ -0.17]( 0.44) 8-clients 1.00 [ 0.00]( 0.39) 1.00 [ 0.24]( 0.67) 16-clients 1.00 [ 0.00]( 0.58) 1.00 [ 0.50]( 0.46) 32-clients 1.00 [ 0.00]( 0.71) 1.01 [ 0.54]( 0.66) 64-clients 1.00 [ 0.00]( 2.13) 1.00 [ 0.35]( 1.80) 128-clients 1.00 [ 0.00]( 0.94) 0.99 [ -0.71]( 0.97) 256-clients 1.00 [ 0.00]( 6.09) 1.01 [ 1.28]( 3.41) 512-clients 1.00 [ 0.00](55.28) 1.01 [ 1.32](49.78) ================================================================== Test : schbench Units : Normalized 99th percentile latency in us Interpretation: Lower is better Statistic : Median ================================================================== #workers: tip[pct imp](CV) update_curr_opt[pct imp](CV) 1 1.00 [ -0.00]( 2.91) 0.97 [ 2.56]( 1.53) 2 1.00 [ -0.00](21.78) 0.89 [ 10.53](10.23) 4 1.00 [ -0.00]( 4.88) 1.07 [ -7.32]( 6.82) 8 1.00 [ -0.00]( 2.49) 1.00 [ -0.00]( 9.53) 16 1.00 [ -0.00]( 3.70) 1.02 [ -1.75]( 0.99) 32 1.00 [ -0.00](12.65) 0.83 [ 16.51]( 4.41) 64 1.00 [ -0.00]( 3.98) 0.97 [ 2.59]( 8.27) 128 1.00 [ -0.00]( 1.49) 0.96 [ 3.60]( 8.01) 256 1.00 [ -0.00](40.79) 0.80 [ 20.39](36.89) 512 1.00 [ -0.00]( 1.12) 0.98 [ 2.20]( 0.75) ================================================================== Test : ycsb-cassandra Units : Normalized throughput Interpretation: Higher is better Statistic : Mean ================================================================== metric tip update_curr_opt (%diff) throughput 1.00 1.00 (%diff: -0.45%) ================================================================== Test : ycsb-mondodb Units : Normalized throughput Interpretation: Higher is better Statistic : Mean ================================================================== metric tip update_curr_opt (%diff) throughput 1.00 1.00 (%diff: -0.13%) ================================================================== Test : DeathStarBench Units : Normalized throughput Interpretation: Higher is better Statistic : Mean ================================================================== Pinning scaling tip update_curr_opt (%diff) 1CCD 1 1.00 1.01 (%diff: 0.57%) 2CCD 2 1.00 1.00 (%diff: -0.27%) 4CCD 4 1.00 1.00 (%diff: 0.06%) 8CCD 8 1.00 1.00 (%diff: 0.45%) -- Feel free to include Tested-by: K Prateek Nayak I'll keep a lookout for future versions. > --- > > Not sure what the XXX above place_entity() is for, maybe it can go away? > > Based on tip/sched/core. > > kernel/sched/fair.c | 14 ++------------ > 1 file changed, 2 insertions(+), 12 deletions(-) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index 04fbcbda97d5f..db2ca9bf9cc49 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -5047,15 +5047,6 @@ static inline bool cfs_bandwidth_used(void); > static void > enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags) > { > - bool curr = cfs_rq->curr == se; > - > - /* > - * If we're the current task, we must renormalise before calling > - * update_curr(). > - */ > - if (curr) > - place_entity(cfs_rq, se, flags); > - > update_curr(cfs_rq); > > /* > @@ -5080,8 +5071,7 @@ enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags) > * XXX now that the entity has been re-weighted, and it's lag adjusted, > * we can place the entity. > */ > - if (!curr) > - place_entity(cfs_rq, se, flags); > + place_entity(cfs_rq, se, flags); > > account_entity_enqueue(cfs_rq, se); > > @@ -5091,7 +5081,7 @@ enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags) > > check_schedstat_required(); > update_stats_enqueue_fair(cfs_rq, se, flags); > - if (!curr) > + if (cfs_rq->curr != se) > __enqueue_entity(cfs_rq, se); > se->on_rq = 1; > -- Thanks and Regards, Prateek