Re: [RFC][PATCH] sched: Cache aware load-balancing

Peter Zijlstra
2025-03-26T10:46:46Z

On Wed, Mar 26, 2025 at 11:25:53AM +0100, Peter Zijlstra wrote:
> On Wed, Mar 26, 2025 at 10:38:41AM +0100, Peter Zijlstra wrote:
>
> > Nah, the saner thing to do is to preserve the topology averages and look
> > at those instead of the per-cpu values.
> >
> > Eg. have task_cache_work() compute and store averages in the
> > sched_domain structure and then use those.
>
> A little something like so perhaps ?

Oh urgh, ignore all that, I'm an idiot.

The numbers are per process, can't stick them in global structures.

I remember going through all this before :-/ Its just so very tempting
since its the right structure and everything, but we need it per
process :-(