Re: [PATCH v4 1/3] sched/fair: allow disabling sched_balance_newidle with sched_relax_domain_level

From: Valentin Schneider
Date: Thu May 02 2024 - 12:01:45 EST


On 30/04/24 18:05, Vitalii Bursov wrote:
> Change relax_domain_level checks so that it would be possible
> to include or exclude all domains from newidle balancing.
>
> This matches the behavior described in the documentation:
> -1 no request. use system default or follow request of others.
> 0 no search.
> 1 search siblings (hyperthreads in a core).
>
> "2" enables levels 0 and 1, level_max excludes the last (level_max)
> level, and level_max+1 includes all levels.
>
> Fixes: 1d3504fcf560 ("sched, cpuset: customize sched domains, core")
> Signed-off-by: Vitalii Bursov <vitaly@xxxxxxxxxx>
> Reviewed-by: Vincent Guittot <vincent.guittot@xxxxxxxxxx>
> Tested-by: Dietmar Eggemann <dietmar.eggemann@xxxxxxx>

Reviewed-by: Valentin Schneider <vschneid@xxxxxxxxxx>