From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=198.175.65.19 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795771507; b=19KJIse8WlfFtcgDSKpcGUVNLftPlZzMA5dQ1uzIDJCfQCzFMAwPOfo3AIUoPaqVb2a0 W231UqFzOwfjBo1UpjmynVNQaqCM4ArETv7lLD9dhK9reqmnlVDpHwQZ9cn+uOhlCCzJD XAtL2A2JSvNY+HydxVwgsQIVZjPU/2ZO/mvJazIc8KteVIk5MXL3zN0RPp5Uh7k7AD/84 Uqqff6LNkq88UdY45PeGRMmIAzQLLi7Yy8ryh9HKvUZ/2IRnEOMK4IZe/9xm0+4xws/fd URCuyg/SlsmYZoAvU82AQn3n1Qt2u+KEZHcB4Lt+n62pve6CEw2qXY3OumCOqxbmPpQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795771507; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Received: Received:DKIM-Signature:Received:Received:Date:From:To:CC:Subject: Message-ID:References:Content-Type:Content-Disposition:In-Reply-To: X-ClientProxiedBy:MIME-Version:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-Exchange-RoutingPolicyChecked: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; bh=/6Abu75pJGLOZslyMLZVz6fXFm3fTvJjns+iappCTv8=; b=fhYKupZysICzBGExC90ola7oFuYcspxs3hFYZoF/f/wIKAiwbYZdRjfV3TNPIuvBNtoF S7EcaLkC56WyzmL6qz91i+j+4SKlfCAbFs7i7HSe/9KWF0vApwmYau7K5kyU8P7xPQe2i f/5mdCHavVZ0qoojdUCr6aPyCSZu3b4wV/Jf0/JPVotY/AU2+0t+0VJckmQN+2vaVzHIN OB0OjDpI3Q3e2WCYPcU1f2JJlWy5UYqRu4L/5KnlL7zG7VsiaJZdODzpR73Qke7Nl6k0m 9dubcn+pfAwnjq9J1S1eo4Cw0W63mnDY+Ma+E1qbKF1g2Jz9HELREZ+w2c7B759/pRA== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=bPTB6SXH; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=selector1 header.b=MXiqdzTa; arc=pass header.oldest-pass=0 smtp.remote-ip=198.175.65.19 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10D92606A31E for ; Fri, 27 Nov 2026 09:25:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 10D92606A31E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=bPTB6SXH; dkim=pass (1024-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=selector1 header.b=MXiqdzTa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795771506; x=1827307506; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=vcmRUYcGMVUApBkwQzax6RMFGpzthrQUESM+UUj9PNQ=; b=bPTB6SXHg+P1J83yfxI6t0XiENqHG7ZHXkCP1J4ldqZ4j6zts5s1A5zg jNXvjz88ZsIJzkH2W8sduYpOPYM04JKtqiZYvlIH6tWoyJuGS1kbX7kdW OygK9lA1+uttblHhIiS11/i2bnYqv9LWtNj9Y0eTwDpO6ipaUXzUyVSAP +pyoE9VQAHuVeLeqGm+mA8fcpj4AjX+/xH69adMcfrPPtCoMEG5I1DNTc I9vvv6Nnrm7+43QHdCJqPpjuxO0J5HRNYgXsTIeu72k46+wVTxfGu277p JgI3rRtkTLo1plQb9tsq5DQO+O2QTXmdYVu0TdhwwSrErPtcycdnpNfXk A==; X-CSE-ConnectionGUID: JJcqF7SGSjmzJpUORDuJ2g== X-CSE-MsgGUID: Dj6FM/p/RpO0hLa27kmmVw== X-IronPort-AV: E=McAfee;i="6800,10657,11978"; a="4749538" X-IronPort-AV: E=Sophos;i="6.27,236,1787036400"; d="scan'208";a="4749538" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2026 01:25:05 -0800 X-CSE-ConnectionGUID: lh5r4EKEQsqIOPGCRqdq4w== X-CSE-MsgGUID: aU931PerR0G/cd5k0rKL2w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,236,1787036400"; d="scan'208";a="12663197" Received: from fmsmsx901.amr.corp.intel.com ([10.18.126.90]) by fmviesa008.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2026 01:25:04 -0800 Received: from FMSMSX903.amr.corp.intel.com (10.18.126.92) by fmsmsx901.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Fri, 27 Nov 2026 01:25:03 -0800 Received: from fmsedg903.ED.cps.intel.com (10.1.192.145) by FMSMSX903.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57 via Frontend Transport; Fri, 27 Nov 2026 01:25:03 -0800 Received: from CO1PR03CU002.outbound.protection.outlook.com (52.101.46.42) by edgegateway.intel.com (192.55.55.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Fri, 27 Nov 2026 01:25:03 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=S3Qybm2gArG4ovunLvNEcMuN+YTRpKeZtiTRhhF3RFXJ8enyMqQyEbiRZGismyy4RvnM2y23kgSnxBM+TzWwevGkuFsblfLSEZNpmMjBCQ9Y24rppw9hsqFntRTjoBwH4dkHJyDPShgO/cS2UYeDfrMjZpy+o/8STD8UhWvOFt6PA/Nd0WE+EGZyymZMlmmQ8IHR8fokXMIgNcJE29jdLvmuHBsoVo8MR/j9QVvqMdgSZwwlQhahdtRhjoCBjFmI3s3jPa4H879AfN1YNGcUmsIklQkVW8TSIfDC/mrtk9YM4Y5I1+zs/NIXlX9NG7L+iHyFo1vajJ+7+DQAfW7NnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=/6Abu75pJGLOZslyMLZVz6fXFm3fTvJjns+iappCTv8=; b=TRfQgHnOwHPS7/IYJ0SG/Q4vZ4/gk5mi9yh5DYSsYraVoPcz7IGfeqrAMedNhxwc7IQXumhIlWQq+nYNwDMBIJv0UjlnO8l/W0xuhjMdvDix6PMzEAPIevGdEKhee1Rl8FoQqW3P8h4nCABazhnIC1BVa48DUcqnSNBidHkuY3dK1+pUgKRroK3wnLgivLV9qndWjY+WuscOW1bBtH4DAeHyUlkY4iiteIa1wqxZVD7m8HXQpoif9Wk2RUEwo9tZcHRdpdct1py2Is8nNdOzgoQ4lHxqBgzizHbL3jznQ050bjX+fnMqkzTai2HRzHI/5ton+7Mnq2PVG2wZZcYqLQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/6Abu75pJGLOZslyMLZVz6fXFm3fTvJjns+iappCTv8=; b=MXiqdzTa+zsCGnVr3nHmLB0/z3gZOvFZ7Jd6lvEG5RACo9hmPRnZCDe+Xl8B3cDtuS+wvIyz2bTsxu4LaEZ3GzUSCehJ1UuyOKBKmHSz49A0oQakqwK56+40xiCmw1faaITHFjPntPB2KOiq5VNf6W8+BeiauerOoAp5oYduOxI= Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM4PR11MB6020.namprd11.prod.outlook.com (2603:10b6:8:61::19) by DS6PR11MB098499.namprd11.prod.outlook.com (2603:10b6:8:498::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.9; Fri, 27 Nov 2026 09:25:01 +0000 Received: from DM4PR11MB6020.namprd11.prod.outlook.com ([fe80::3058:1480:e4ac:5765]) by DM4PR11MB6020.namprd11.prod.outlook.com ([fe80::3058:1480:e4ac:5765%3]) with mapi id 15.21.0662.007; Fri, 27 Nov 2026 09:25:01 +0000 Date: Fri, 27 Nov 2026 17:14:00 +0800 From: Chen Yu To: Vincent Guittot , James Buck CC: K Prateek Nayak , Andrea Righi , James Buck , Peter Zijlstra , Ingo Molnar , Juri Lelli , Dietmar Eggemann , Valentin Schneider , Usama Arif , "linux-kernel@vger.kernel.org" , "regressions@lists.linux.dev" Subject: Re: [REGRESSION] sched/fair: SIS_UTIL limit in select_idle_capacity() leaves busy tasks on little CPUs while big CPUs are idle Message-ID: References: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: SI3PR03CA0008.apcprd03.prod.outlook.com (2603:1096:4:297::14) To DM4PR11MB6020.namprd11.prod.outlook.com (2603:10b6:8:61::19) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB6020:EE_|DS6PR11MB098499:EE_ X-MS-Office365-Filtering-Correlation-Id: 242034ab-f05e-4cad-6fca-08df4c684ff2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|366016|376014|1800799024|7416014|11063799006|4143699003|261009223027099003|18002099003|22082099003|10067099003|56012099006|261102123227099003|261028144727099003|261026140227099003|261026121527099003|261021121427099003|261022105027099003; X-Microsoft-Antispam-Message-Info: RASKIJCrFEXCByIHH2ZvqLAtVdi5oJh7xI/9zlhhoX4vg+rmdfHLrhtJfUSy1wWgm8yxC1PNcnNAiQSf/gvfetzyo3ZK0MoxPUjyiKr2rZS2sOw1/nbhFxhAepvPxbTbVnYqRkK4IF/LIPot7FpG/dvesG8PoTGLnfWklfTA67ED8eUowGg/dqgwCwvk/bUPMeAMAjBi8+rmV9VLllln8Ws3V24psg5/zYbfh5wFCVVhy+u3/Xxj5kBhZZyxJMNdN7cO0ZBizPncj0uQyEb4xLAhl+1bvn7X6H+pcS2nd7R/barsPGN4eaqLGNduNLSIPqk7jVWNCEGFDxr//SpeYjSas9xAkHUr/AaBhOcMEZ116FjRJ6vhhHnBasxtVea6ed2KwdBJKJ3XYQU2lkAAtDAIpRIhLRFXU6mYtHZzSjo4SezOIzyPvRn2jD0ob83xryTATESO9wzjgfhITTasCpKm22KVyh8anTgaBuUL3WWPDOWOeocUvhjfvrG/241DyrQKQYHs9HdFoj8V+leDIyU7iHTEuXuN0ThE3DbrTNzQr1QY5Kb/8fuvsWVTZtE35u4swOfvkrsUMAAy3ukrecHJa6N378MqsxhxpiogBiwEN7mDJWJhApdruruX9s4Q X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB6020.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(23010399003)(366016)(376014)(1800799024)(7416014)(11063799006)(4143699003)(261009223027099003)(18002099003)(22082099003)(10067099003)(56012099006)(261102123227099003)(261028144727099003)(261026140227099003)(261026121527099003)(261021121427099003)(261022105027099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?tKWnYRPhcGy9WxED0cb7BDOeT6wW5TnvqzVNiPludKivDwzVz0R5zyDEm1Yz?= =?us-ascii?Q?dIZkbqmlfvVEXG2gGQPQxUz2exi/jvFYkTpImvG4EOfu0G+SyxRa0Jp9sje0?= =?us-ascii?Q?nzym5SRgvOO9UcqCGyzOAD1Wly4xxR96zY7v+fQx1rsTFKwgv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XJ8HqbMGQgFrlQejMEunp9kQVxkpD/tlbKdQt/6Y1u3R2aSyvENaHZ+6bbFxTefXFdo3IoFJwFkrwhO/6EMw7s/ykmybl69d5PFbOL9YPqk6nehX4eAZeyxBswocBr/V0FESnSYOqq2FWBZkfz0Pa3KkJjb7Aw== X-MS-Exchange-CrossTenant-Network-Message-Id: 242034ab-f05e-4cad-6fca-08df4c684ff2 X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB6020.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2026 09:25:01.4294 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uKNXKrSUcS+T+SnunY74KMTUzh65Xi+0D4jJEuKkpVpakKLipP+HzSxy9kjXCsLBH12BXnXxelof+kTWs5CGMQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS6PR11MB098499 X-OriginatorOrg: intel.com On Wed, Nov 25, 2026 at 03:27:46PM +0100, Vincent Guittot wrote: > On Wed, 25 Nov 2026 at 11:38, Chen Yu wrote: > > > > On Wed, Nov 25, 2026 at 08:51:39AM +0100, Vincent Guittot wrote: > > > On Wed, 25 Nov 2026 at 03:53, K Prateek Nayak wrote: > > > > > > > > Hello Andrea, > > > > > > > > On 11/24/2026 6:45 PM, Andrea Righi wrote: > > > > > Hi James, > > > > > > > > > > On Tue, Nov 24, 2026 at 11:56:52AM +0000, James Buck wrote: > > > > >> Hi, > > > > >> > > > > >> Since commit 61ea17a63719 ("sched/fair: Add SIS_UTIL support to select_idle_capacity()"), first in v7.2, CPU-bound multi-threaded work on my big.LITTLE arm64 board runs 12-19% slower than on v7.1 and earlier, because waking threads are placed on idle little CPUs while idle big CPUs are never looked at. > > > > >> > > > > >> Turning SIS_UTIL off at runtime restores the old speed. select_idle_capacity() and update_idle_cpu_scan() are unchanged in v7.4-rc4, so I expect mainline to behave the same. > > > > > > > > > > A related regression from the same commit was reported by Usama here: > > > > > https://lore.kernel.org/r/20261113153157.2495664-1-usama.arif@linux.dev/ > > > > > > > > > > On Grace, a zero SIS_UTIL budget skips the search despite suitable CPUs > > > > > being idle. Your case shows that a nonzero budget can stop the scan > > > > > before reaching an idle big CPU. > > > > > > > > > > We've discussed a minimum scan budget and accounting for idle CPU > > > > > availability, though a small minimum alone may not fix your case. > > > > > > > > This had problems in the past when Chenyu was iterating on SIS_UTIL > > > > where the search opportunity at higher utilization is actually very > > > > low and cutting off search for !idle core was beneficial for SMT > > > > systems. > > > > > > > > Now, for systems without SMT, it has its benefits too but a system > > > > without SMT should be equivalent to a SMT one where test_idle_core() > > > > returns true always if an idle CPU is present. > > > > > > > > So I'm wondering if {set,test}_idle_cores() can be extended !SMT > > > > to act like a gating indicator to say if an idle core exists or > > > > not much like how !get_rd_overloaded(this_rq->rd) serves as a > > > > gate for newidle balance - it can be flipped to true when a CPU > > > > goes idle or if load balancer sees an idle CPU. Thoughts? > > > > > > I tested idle_cores tracking for !SMT and EAS months ago [1] > > > [1] https://lore.kernel.org/all/20251202181242.1536213-6-vincent.guittot@linaro.org/ > > > > > > > > > > > > Given both reports, reverting the commit seems the safest thing to do > > > > > for now. That would restore the previous asym search behavior and we can > > > > > revisit a better consistent strategy to cover both sym and asym CPU > > > > > selection later. > > > > > > > > > > Prateek, Vincent, what do you think? > > > > > > > > IMO it still makes sense for SMT systems since capacity on systems > > > > with SMT only makes sense if the entire core is idle and then it is > > > > just a best effort thing right? > > > > > > > > set_idle_cores(), would flip the flag as soon as an idle core is > > > > available and after that SIS_UTIL is bypassed. I don't think the > > > > SIS_UTIL cut-off for non-SMT ASYM_CAPACITY systems makes that much > > > > sense given misfit penalty is much higher. > > > > > > In fact that depends on the number of CPUs in your LLC. > > > The current SIS_UTIL is unfair for small system because you skip the > > > loop with "low" utilization: > > > - with 12 cores per LLC, you skip the loop if the avg utilization per > > > cpu is above 839 whereas it also means that you have the compute > > > capacity of more than 2 CPUs that is not used and util_est can worse > > > the situation > > > - but with 64 cores LLC, you still tries 5 CPUs for the same avg > > > utilization per CPU > > > - and with 12864 cores LLC, it's 10 CPUs > > > > > > > > > > As you suggested in [1], maybe we can give a floor value of 3 when has_idle_core > > is true both for SMT and !SMT case(mainly for nr_scan = 0 case). Besides, we can > > scale up the number of CPUs to be scanned by their llc_weight, to fake > > a 32 CPUs LLC for the small LLC system, this should mitigate > > the issue of current report and the issue reported at [1]. > > This fixes the regression on my radxa O6 by keeping nr_idle_scan full > for llc smaller than 32 CPUs while the avg utilization per CPU is > below ~550 > Thanks Vincent, James for testing. Let me post this as a formal patch with some test data, mainly with the AMD server's data, because I only have some Intel servers and one AMD server, and this patch might impact AMD more than Intel. Besides, for Usama's 72-CPU NVIDIA Grace arm64 server, it seems that the above patch cannot deal with it, as we only cure the system with <= 32 CPUs per LLC. Inspired by Andrea, I wonder if we can leverage the number of idle CPUs together with SIS_UTIL to decide the search depth. In summary, the more idle CPUs there are, the more we should try to scan. Given a fixed lower limit 3 or 4 might not fully recover the performance on Grace I'm afraid, because there are up to 72 CPUs in a LLC. This can be seen as an extension of has_idle_cores to non-SMT systems. Unlike has_idle_cores, which makes the wakeup path ignore the SIS_UTIL hint entirely, the number of idle CPUs is only used as a floor of the scan depth, so the SIS_UTIL hint is still respected in general, which is a trade-off to not break other platform/workloads. I'm also wondering if the system supports the cluster domain, the has_idle_cores calculation can be extended to the cluster level, so that a fully idle cluster lets the wakeup path ignore the SIS_UTIL hint for better work conservation. diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 1c0e2ac7751d..079d1fc06344 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -12874,8 +12874,11 @@ sched_balance_find_dst_group(struct sched_domain *sd, struct task_struct *p, int return idlest; } +#define SIS_UTIL_IDLE_MIN 2 + static void update_idle_cpu_scan(struct lb_env *env, - unsigned long sum_util) + unsigned long sum_util, + unsigned int nr_idle) { struct sched_domain_shared *sd_share; struct sched_domain *sd = env->sd; @@ -12940,6 +12943,10 @@ static void update_idle_cpu_scan(struct lb_env *env, y *= max(llc_weight, 32); do_div(y, SCHED_CAPACITY_SCALE); y = min_t(u64, y, llc_weight); + + if (nr_idle > SIS_UTIL_IDLE_MIN) + y = max_t(u64, y, nr_idle); + if ((int)y != sd_share->nr_idle_scan) WRITE_ONCE(sd_share->nr_idle_scan, (int)y); } @@ -12956,6 +12963,7 @@ static inline void update_sd_lb_stats(struct lb_env *env, struct sd_lb_stats *sd struct sg_lb_stats *local = &sds->local_stat; struct sg_lb_stats tmp_sgs; unsigned long sum_util = 0; + unsigned int nr_idle = 0; bool sg_overloaded = 0, sg_overutilized = 0; env->dst_core_idle = !sched_smt_active() || is_core_idle(env->dst_cpu); @@ -12988,6 +12996,7 @@ static inline void update_sd_lb_stats(struct lb_env *env, struct sd_lb_stats *sd sds->total_capacity += sgs->group_capacity; sum_util += sgs->group_util; + nr_idle += sgs->idle_cpus; sg = sg->next; } while (sg != env->sd->groups); @@ -13013,7 +13022,7 @@ static inline void update_sd_lb_stats(struct lb_env *env, struct sd_lb_stats *sd set_rd_overutilized(env->dst_rq->rd, sg_overutilized); } - update_idle_cpu_scan(env, sum_util); + update_idle_cpu_scan(env, sum_util, nr_idle); } /** -- 2.25.1