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 F07672857F0 for ; Thu, 19 Feb 2026 11:29:49 +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=1771500593; cv=none; b=lNSe2vejY6mvVtymA2rVsnNbBBTfqPE0fPVfIE+QMioFwN34dszeB9XchDYX2mdm34I75hfQWIodj/gHaohfvBLGJl4Vc61EMCx4f6jdNZmJRTST9t/aGwn7fI0IQYJyE4AkkTKo5PUAAu4FFiTMXZnObvZCc79tB/XWVvWTU5A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771500593; c=relaxed/simple; bh=euSqbApIOwOf/PLq5I/VtNFcCqA+CpN9IXCDDX3Oprw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Htk4N3nS45F/I7FaQHwEAbYZFMGa7RSr++JFHHKsXZcLMM4ZpVhoOQcVcuWr2ZEBPFcGLBiLwOAaNS5uI6fvdoJdmd62wDI0hQ7XgWi/OCo4vTvcjg9lMYtwwPYGORN9P9zTlSeh5AIlkWXIHOcCBHwoMGwDPJ2RWgt1pYYkf+I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (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=G88TAdbY; arc=none smtp.client-ip=90.155.92.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (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="G88TAdbY" 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=Y1cGo/2PU/ebWZ05m8Xi+Tm5bNVw1COrX0TiFYgZFUE=; b=G88TAdbYqvLsj2X3P1BtlvVNG7 2VUpe7e340kpo0f7fSlmfiJu/YVbAw5XNj+Z1Ok9k1T/uiMrd4sGMcPkMEU1y0aQHWYLT0JY2Lrm1 6bnY/HUsAdGwx9We9zFt989v2vR1i+4Nt7kz6wYVWM95DDNOHRXcYMnIH8Js3gkVxp0ZGaQrRTYms +IS6KWAoJtjtdlTpgMRVkfRmHnaZsVrMjJUJVlLvOSeAGdPZkLBhZCQQqcKeGIDUNPhJSRXkpK6MA WKyx3MVAFufxHoRzqPvoyDxl8ILEnQ8VulLWpISMrOSOqLO6EhbzFG9cEg3GZBG/GelGBXAhB5KTm hmNVPJOg==; 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 1vt2DY-000000019yE-1CH3; Thu, 19 Feb 2026 11:29:12 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id C664E3011E4; Thu, 19 Feb 2026 12:29:11 +0100 (CET) Date: Thu, 19 Feb 2026 12:29:11 +0100 From: Peter Zijlstra To: Tim Chen Cc: Ingo Molnar , K Prateek Nayak , "Gautham R . Shenoy" , Vincent Guittot , Chen Yu , 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 , Vern Hao , Len Brown , Aubrey Li , Zhao Liu , Chen Yu , Adam Li , Aaron Lu , Tim Chen , Josh Don , Gavin Guo , Qais Yousef , Libo Chen , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 03/21] sched/cache: Introduce helper functions to enforce LLC migration policy Message-ID: <20260219112911.GF1395266@noisy.programming.kicks-ass.net> References: <7475922f6020abe5d458a136b0c88fe24e823091.1770760558.git.tim.c.chen@linux.intel.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=us-ascii Content-Disposition: inline In-Reply-To: <7475922f6020abe5d458a136b0c88fe24e823091.1770760558.git.tim.c.chen@linux.intel.com> On Tue, Feb 10, 2026 at 02:18:43PM -0800, Tim Chen wrote: > +/* > + * The margin used when comparing utilization. > + * is 'util1' noticeably greater than 'util2' > + * Derived from capacity_greater(). > + * Bias is in perentage. > + */ > +/* Allows dst util to be bigger than src util by up to bias percent */ > +#define util_greater(util1, util2) \ > + ((util1) * 100 > (util2) * 120) > + * 20% is the utilization imbalance percentage to decide > + * if the preferred LLC is busier than the non-preferred LLC. > + * 20 is a little higher than the LLC domain's imbalance_pct > + * 17. The hysteresis is used to avoid task bouncing between the > + * preferred LLC and the non-preferred LLC. So not saying this needs changing now, but consider that imbalance_pct can be changed through debugfs. Do you want this 120 to be expressed in terms of imbalance_pct rather than being hardcoded? Anyway, let me read on..