From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from BL2PR02CU003.outbound.protection.outlook.com (mail-eastusazon11011054.outbound.protection.outlook.com [52.101.52.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 243B41E5714 for ; Fri, 24 Apr 2026 05:55:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.52.54 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777010160; cv=fail; b=Gx9YJNc1w8vlkFyPWiivPKoWhC8kSWObh48Pnm2UcJzCqlEsHavEQBMxxXckHlkDBvcbYQpvr3k7oODCXmq0YNHRr7SQ26f5umuj6qeDT1+K216QdAZkG2o41NRipm5AqDGEtYEtWLcBklrer3kn8FpH9Zo/g7UGGhFIK8NVgn0= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777010160; c=relaxed/simple; bh=TosEkACi72ktFE6K4XK3TEQkEeT1deDysWH87qH6nVo=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=NQOJMjohOb0NB8PVwQvm7wF08pMKQx+pAkPLEcj6gPV/zexsD4m8QdmrpL/5BgOK8WhfvUEiMmW8GU7KcJOjSs7XTM7uK9KKsk103HjDAbLbV5k6lL4fawtqhcuyrwyTXFioLlwH1+rmQ6irHfuIut1pJX0JSPwsnfZwdj+hRoA= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=NqqhSdu5; arc=fail smtp.client-ip=52.101.52.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="NqqhSdu5" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fCYelqYms799F53VZroa7nKLDjCZy2VTQ86Z6A5a5NIBxOfVLTxpFhekcUwE0mWN1v5N7Dum6ZnLkU3/DR4WBAPR6tQ7FbJ+Dv4Wtnrih0h9BZKF2vOODD6Gfer2+wguexbpvYV2np3Cbhgfh0cvoSq3f7qQZyKnNT5in/7oaTTtjyEFvlABlWblFr4sUM1p6TwA74mXqOwkXWcw4vgN93XaooGeOHykPcauXuotUSulKidDXsv4/U8EOPwhw/EMiaDj5MYKgty9KP8t3FT5CWCKd6IHuUVxF5if4Nn2i0KrWOZylqIYc7lodsUeF3+HzTV/MHcodY6uXdhuvPKMVA== 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=5MMeVbkOLJhy3pJ6ehbBFd52Bsz6DN7FIjgm2xFuoes=; b=D6B4diOIXW6UfbS6mykZZHo/pVqp0AL5na2G502kYFQNjog8KOJY7bGCI7cQn4+40delARcLm4imC6Dh6vJyUBTxDb1sMGJgr8vNfoD/bOHwnOcLdVKBif53GIpT45AVxVjf0TIIiUpXP3tNp7h/8eo6FlT6xphw88X69AEOEgcU3Z/PikpJstw1Dv1yYYf4NGQVKskH0lxeHlO1D399GfuHY1WqwNei0URIJ8rDlT82MmNr93UNyhQspWuOd1zJk6lPKrZ2GxaxFb/19YKgBAzo43gHlXTsVAn4gJ61PAfufCyWGqOEDfKAVJ/Pl1kSL4O/J040zpkKr84yOvhMtQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=nvidia.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) 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=5MMeVbkOLJhy3pJ6ehbBFd52Bsz6DN7FIjgm2xFuoes=; b=NqqhSdu5TZ1Qx+uxseeWUaA//MRD+9MuKpyw1kcAw0uhstfOXzL5LF7XL6lJV8mF8eKLuOiEVJLAqKVQtVBBrQV9arj/qoCmALRNWHYptQLfzfLdbFZGAiFTQA6jwLt5fR1ZEX5BnTIHKxIF14G6FPfMtS4ntR05u5E8rJWmFvc= Received: from MN0P222CA0017.NAMP222.PROD.OUTLOOK.COM (2603:10b6:208:531::22) by MN2PR12MB4357.namprd12.prod.outlook.com (2603:10b6:208:262::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9846.16; Fri, 24 Apr 2026 05:55:55 +0000 Received: from BL02EPF0001A0FB.namprd03.prod.outlook.com (2603:10b6:208:531:cafe::7) by MN0P222CA0017.outlook.office365.com (2603:10b6:208:531::22) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9846.22 via Frontend Transport; Fri, 24 Apr 2026 05:55:55 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by BL02EPF0001A0FB.mail.protection.outlook.com (10.167.242.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9846.18 via Frontend Transport; Fri, 24 Apr 2026 05:55:55 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.17; Fri, 24 Apr 2026 00:55:54 -0500 Received: from satlexmb08.amd.com (10.181.42.217) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 24 Apr 2026 00:55:54 -0500 Received: from [10.136.34.119] (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.17 via Frontend Transport; Fri, 24 Apr 2026 00:55:50 -0500 Message-ID: <55772738-7b2c-4485-9132-af3a694ef792@amd.com> Date: Fri, 24 Apr 2026 11:25:44 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/5] sched/fair: Add SIS_UTIL support to select_idle_capacity() To: Andrea Righi , Ingo Molnar , "Peter Zijlstra" , Juri Lelli , "Vincent Guittot" CC: Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , Christian Loehle , Koba Ko , Felix Abecassis , Balbir Singh , Joel Fernandes , Shrikanth Hegde , References: <20260423074135.380390-1-arighi@nvidia.com> <20260423074135.380390-5-arighi@nvidia.com> Content-Language: en-US From: K Prateek Nayak In-Reply-To: <20260423074135.380390-5-arighi@nvidia.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Received-SPF: None (SATLEXMB04.amd.com: kprateek.nayak@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0001A0FB:EE_|MN2PR12MB4357:EE_ X-MS-Office365-Filtering-Correlation-Id: 6b19a816-b445-487c-74d6-08dea1c62654 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|376014|1800799024|7416014|82310400026|56012099003|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: /9c4umbTTChKwNJrX7WdaG+gbcquUsJR7wqu92NCzycVOg+ALKpFJey75iFjY36l8f0VzCtFCLuXjnCZdgjL0AvZwg4qFIRm1FJnU59XQSOLc1sWl1zJ3HHJR9+kHbUIAPgMBGocZ2KcYPWJ9xWUugMQbeMeSTE7Op0Fy0jKXBa872fREHlPQlp6VPhAmgbs9w6jqAKFz5D2lQAsHXiN0yp0bRJwNRM53FHVXFgT86BM7d6CqjJYnlDtFPLzN7V46fzwzpvz6jU2m/QR4XFK8Q+f8ZbCaxJEERaeHl5lkE9IObesTNMUfhTKPnWiTyKaoAt8rOji8SPRjKd3/1gfcuAM0lJelt0/3i14qEZELrMIyvGWdoqr+xmg1j45n7k8sH2r8SNrvLEVwCcR0jQgZPEOxWgZ3MpduZGEOI9lBbd8iTER4neKrChX1pq166/Kf7eiDSJj1M9HM2h2oF0KDTlHHa+K8MbE29nS1w6PnzMEbrC5UEzMBx0zB4lAGLAOx/v+XnV+lBJQoytHEn1WMSAYan2rt28P49yaDhXRdG3ez4aaj8rro3sZ+otR4su9/DIumty+6kybUIGNLk8LR+u7L2kah4xdqOgmUAP8yKhgcOfDTd+eb+3jjEXKJdx1Qeh9h4xAkg6WKbISbyYupw1hXpYP5v7F0hx2mMyXKMSEqXGJgrUfBi58vwX1ZMzzBOwcTMVzXI0gecI2dHoInTZdbh9Kz+beuup6lp3bcoOw5t2HCzbmmKEetdDZioY1yjtsFdjzv0MXLpIUDqniBQ== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700016)(376014)(1800799024)(7416014)(82310400026)(56012099003)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1elBqdTFe6gDiCOm0j8yyuI9mLA7u8S4ETeIQfPMABVz0dXeKyJ4HPB9rd/Jpkqb4gd9ZyN1gJOUOcIp2hMY/UTNevKCTr0BRiAuLOh7ydYcsNVsDesW0z0b6n20B9KfBXsPv8F2j/1VbbF4EvNP+iJkJ+s3BYCO7UYdNOvwBQxCo1BwAL38QXLQ+ZnpDZO3BryuxYapY98CGAA9SgA5YPh4HgDonHKkyfx4WJk7Hfw/O3J1aN72NsjWEMfxt55xR6H73ARTlXN9Z5BO9J9VpcZxEHzSGOnfpSCGzDlhZN/ReVSGSiXJVnQJCCvB1LMz0bY5kcaJa16LAAVP1bPkTd3gBEpo3bP+bXc12U/56VY8MEAJcZWlQ0BcbpLDWcym4IWWl6lSuMjom7f6gKx8NHpDFiJkbahIEQNIVK7Ks5uAc08VaKGNMNDkBTM8DTzs X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2026 05:55:55.1403 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6b19a816-b445-487c-74d6-08dea1c62654 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF0001A0FB.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4357 Hello Andrea, On 4/23/2026 1:06 PM, Andrea Righi wrote: > From: K Prateek Nayak > > Add to select_idle_capacity() the same SIS_UTIL-controlled idle-scan > mechanism, already used by select_idle_cpu(): when sched_feat(SIS_UTIL) > is enabled and the LLC domain has sched_domain_shared data, derive the > per-attempt scan limit from sd->shared->nr_idle_scan. > > That bounds the walk on large LLCs and allows an early return once the > scan limit is reached, if we already picked a sufficiently strong > idle-core candidate (best_fits == -4). > > Signed-off-by: K Prateek Nayak I think this still requires your S-o-b ;-) Thank you again for cleaning this up and testing it. Since you mentioned having tested on Grace without SMT, I don't think this will be a problem for other CAS use cases too although I'll love to hear if Android with overloaded status could run into any problems when that state is triggered. -- Thanks and Regards, Prateek