Re: [PATCH v6 1/2] sched/topology: Remove EM_MAX_COMPLEXITY limit

From: Ingo Molnar
Date: Mon Oct 09 2023 - 07:08:46 EST



* Shrikanth Hegde <sshegde@xxxxxxxxxxxxxxxxxx> wrote:

> From: Pierre Gondois <Pierre.Gondois@xxxxxxx>
>
> The Energy Aware Scheduler (EAS) estimates the energy consumption
> of placing a task on different CPUs. The goal is to minimize this
> energy consumption. Estimating the energy of different task placements
> is increasingly complex with the size of the platform. To avoid having
> a slow wake-up path, EAS is only enabled if this complexity is low
> enough.

...

> To reflect this improvement, remove the EAS complexity check.
> Note that a limit on the number of CPUs still holds against
> EM_MAX_NUM_CPUS to avoid overflows during the energy estimation.
>
> Signed-off-by: Pierre Gondois <Pierre.Gondois@xxxxxxx>
> Reviewed-by: Lukasz Luba <lukasz.luba@xxxxxxx>
> Reviewed-by: Dietmar Eggemann <dietmar.eggemann@xxxxxxx>
> ---
> Documentation/scheduler/sched-energy.rst | 29 ++----------------
> kernel/sched/topology.c | 39 ++----------------------
> 2 files changed, 6 insertions(+), 62 deletions(-)

I've applied this patch to tip:sched/core, for a v6.7 merge, thanks!

Ingo