Messages in this thread | | | Date | Tue, 2 Mar 2021 13:09:46 +0530 | From | Srikar Dronamraju <> | Subject | Re: [PATCH] sched/fair: Prefer idle CPU to cache affinity |
| |
* Peter Zijlstra <peterz@infradead.org> [2021-03-01 18:18:28]:
> On Mon, Mar 01, 2021 at 10:36:01PM +0530, Srikar Dronamraju wrote: > > * Peter Zijlstra <peterz@infradead.org> [2021-03-01 16:44:42]: > > > > > On Sat, Feb 27, 2021 at 02:56:07PM -0500, Rik van Riel wrote: > > > > On Fri, 2021-02-26 at 22:10 +0530, Srikar Dronamraju wrote: > > > > > > > > > > Maybe we could use "tnr_busy * 4 < > > > > tllc_size * 3" or > > > > something like that? > > > > > > How about: > > > > > > tnr_busy < tllc_size / topology_max_smt_threads() > > > > > > ? > > > > Isn't topology_max_smt_threads only for x86 as of today? > > Or Am I missing out? > > Oh, could be, I didn't grep :/ We could have core code keep track of the > smt count I suppose.
Could we use cpumask_weight(cpu_smt_mask(this_cpu)) instead?
-- Thanks and Regards Srikar Dronamraju
| |