From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (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 3D8D83FB075 for ; Tue, 9 Jun 2026 11:22:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781004168; cv=none; b=hMbKZX8L9QnaFVeujpGMmvHUdzdX0+y7LNcrEnP6rPyGoYxv61IycR/rh/DgABEiwINfGGyquPdIPjhgjhluhrwO5o8pwxKAbeFJdHHTyymiTFU0GIHeNgDRWxbKH/AF6zK9R/f7/luQr6IosM0gB7z1Fmd+urRdDYG4Rz7WwX8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781004168; c=relaxed/simple; bh=eX8ru0yf96LYEEzbVan+yKtUsDDlykGX9SqEblaYujE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UN3/Hc9SDjEeICJsCQxdRPVIKPwZD1KvOn7ZhdL/mFF/lphTkprxqjYB/m/rTlkGzfLzSmqwDeRQMJsrL0yvIt9QdHBXUT1DfFk/FTT2d9pt+RKdlxRh2Gq7kQZn7Si0kfXJ3ifLvDaDUV62TYo3BuYLEVzTm5mbhwufsEyqBF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=E0g4UWhg; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="E0g4UWhg" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=u7V2XGmrqab7ZZlHZ2OmXzo6GezpN0gfb26pvPdBVas=; b=E0g4UWhgNTkMJAq7gL0EpW3nrM HKFqddYpJeOWO8trefWSFvLcBxoOursBoHhid3wGm51xrJIa19hpljMzlGAGvrSdK+XbWUFVTad/+ bq6LV+n2lOExXWQ51pdCltZsuKy7SDdaWbLMwBzM/Bq7qy3c9+JUD+35vErqTG7/JGDFIuFNbGNOH nesO2EN4sFXAkV5Q7KMNnj102YseGMcxORlyxEfjy4Efzt5EiZZNObkT5CHhmba3UAxcnbvixP8jM o4PlYuD5/545pucMj0JvMqpu2dUFpKIP7sYc/H1IBAOut25wPCsywQj1qBUd1UwSGJ8jx4GauUWn8 vx4v8a4g==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.99.1 #2 (Red Hat Linux)) id 1wWuXR-0000000FaKU-09mQ; Tue, 09 Jun 2026 11:22:33 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 552DD3031AF; Tue, 09 Jun 2026 13:22:32 +0200 (CEST) Date: Tue, 9 Jun 2026 13:22:32 +0200 From: Peter Zijlstra To: Shrikanth Hegde Cc: K Prateek Nayak , linux-kernel@vger.kernel.org, mingo@kernel.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, yury.norov@gmail.com, iii@linux.ibm.com, tglx@kernel.org, gregkh@linuxfoundation.org, pbonzini@redhat.com, seanjc@google.com, vschneid@redhat.com, huschle@linux.ibm.com, rostedt@goodmis.org, dietmar.eggemann@arm.com, mgorman@suse.de, bsegall@google.com, maddy@linux.ibm.com, srikar@linux.ibm.com, hdanton@sina.com, chleroy@kernel.org, vineeth@bitbyteword.org, frederic@kernel.org, arighi@nvidia.com, pauld@redhat.com, christian.loehle@arm.com, tj@kernel.org, tommaso.cucinotta@gmail.com, maz@kernel.org, rafael@kernel.org Subject: Re: [PATCH v3 08/20] sched/fair: load balance only among preferred CPUs Message-ID: <20260609112232.GB48970@noisy.programming.kicks-ass.net> References: <20260514152204.481115-1-sshegde@linux.ibm.com> <20260514152204.481115-9-sshegde@linux.ibm.com> <0aa0d84c-9d0e-4ca1-9a9c-6370976a0974@amd.com> <8281bd2a-31a1-4e18-aea2-830777a454a6@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Jun 04, 2026 at 06:37:48PM +0530, Shrikanth Hegde wrote: > Hi Prateek. > > On 6/4/26 11:39 AM, K Prateek Nayak wrote: > > Hello Shrikanth, > > > > ... just moving set_cpu_preferred() into sched_cpu_activate() and > > sched_cpu_deactivate() instead of doing it at set_cpu_online(). > > > > Ah ok. Will move it there. I think this should be ok. Right, such that preferred is a strict subset of active. preferred ⊆ active ⊆ online ⊆ present ⊆ possible