From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 7FAC42517AC for ; Wed, 15 Oct 2025 15:24:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.92.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760541893; cv=none; b=frGEJX9iT1iWCgGfVDO7uh77CE69zN+FNiHBpaT9YCkNRT6bpFmj2CMh7pUbd7ICLZoBGCZLmXu3L0RTy3LuoXMqGD9xRzMyCop6lT3LVs/OwWG/Ew8VKiRggOTJUXVziKPH9EXDrsjRIjVXyLXF3Sm8wMO34bmq5GDU9+EyimI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760541893; c=relaxed/simple; bh=R+9xeFP8T9Y1PDPc8AHwS5k4vLdR7rxRhYeU2jVPwFs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Jx7otr1nC2rhSo3W/BqnxDX7e+tbueWXdbr9C/hrYS01eSILQQE09/EB/gswERmqcfDCr7QY79zY6yRMY/WzanpdvPfVJAwsJT8Q6lmziXRcpO2MGLVa4wmH4ROHUVdM8kTedZBxBXZrvKmxsHqmXIv2pX0R9tyf4Bl/eTecHRY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=E4AF2c6T; arc=none smtp.client-ip=90.155.92.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none 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="E4AF2c6T" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=8M2G3XjviaSq0AtCIIi8Utl5wZlVcAd+EccrjLXECpc=; b=E4AF2c6TKEFfMOhJx71+z1jm8/ +7Ax+h9/m/uIJ3eBkMuZhDOpYDGGZHvEnVYXYlVpuyfnSIEZYYkyTIxRRTYdQc8M7TqJie3VfyY/G bksnMRmKzSYQNC81R7rD/G1OXTfBHbKVsbyDGDIwCskVl+CnNDRC1GmdKTotHywCiKbEWbpW4OvzQ TM2Boj4IkKZVFS+0akGtsrPsPOsfq67Gy2DgQg85f06hCxYiWd3XwBaLxd1himxQ4DdhoCnMBlLVN HzLtyz0cc7ni7konZUszMTjjmqIOfwOWBOITjoNInEzZ1ZDy7rIWZOrdXFP0/xqfh6nVSRsdG7zXI AiqUsLcQ==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1v93MB-000000061L2-3cd5; Wed, 15 Oct 2025 15:24:10 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id CEFE030023C; Wed, 15 Oct 2025 17:24:02 +0200 (CEST) Date: Wed, 15 Oct 2025 17:24:02 +0200 From: Peter Zijlstra To: Tim Chen Cc: Ingo Molnar , K Prateek Nayak , "Gautham R . Shenoy" , Vincent Guittot , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , Madadi Vineeth Reddy , Hillf Danton , Shrikanth Hegde , Jianyong Wu , Yangyu Chen , Tingyin Duan , Vern Hao , Len Brown , Aubrey Li , Zhao Liu , Chen Yu , Chen Yu , Libo Chen , Adam Li , Tim Chen , linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/19] sched/fair: Identify busiest sched_group for LLC-aware load balancing Message-ID: <20251015152402.GE3168635@noisy.programming.kicks-ass.net> References: 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=us-ascii Content-Disposition: inline In-Reply-To: On Sat, Oct 11, 2025 at 11:24:48AM -0700, Tim Chen wrote: > @@ -11035,6 +11059,17 @@ static bool update_sd_pick_busiest(struct lb_env *env, > sds->local_stat.group_type != group_has_spare)) > return false; > > + /* deal with prefer LLC load balance, if failed, fall into normal load balance */ > + if (update_llc_busiest(env, busiest, sgs)) > + return true; > + > + /* > + * If the busiest group has tasks with LLC preference, > + * skip normal load balance. > + */ > + if (busiest->group_llc_balance) > + return false; > + > if (sgs->group_type > busiest->group_type) > return true; This feels weird.. should we really override things like group_imbalance or group_misfit_task ?