Re: [RFC] Perfomance varies according to sysctl_sched_migration_cost
From: Peter Zijlstra
Date: Tue Sep 14 2021 - 08:02:16 EST
On Tue, Sep 14, 2021 at 11:04:03AM +0200, Vincent Guittot wrote:
>
> I would say that it's a heuristic value that works for most of system
> but it should probably be tuned per platform. But also note that it's
> quite difficult to get a correct value
>
Right; so back before CFS there was some boot time benchmarks that
measured something for each sched domain.
Conceptually that makes sense, the larger the domain, the larger the
cost, also, you get per platform etc..
In practise it had boot to boot variance and virt fail written all over
it, which is why Ingo ripped it out. I think someone once tried to bring
some of it back, but that was a long time ago.
I'm also not convinced boot time benchmarks are the best idea, because
the above reasons, but perhaps we can do something topology based, and
maybe using a few platform inputs.
And as with anything, some benchmarks will like it, others will not like
it. It's only worth the complexity if we can get an improvement across
the board.