Re: [PATCH v3 sched_ext/for-6.13] sched_ext: Do not enable LLC/NUMA optimizations when domains overlap

From: Tejun Heo
Date: Thu Nov 07 2024 - 19:59:05 EST


On Fri, Nov 08, 2024 at 01:01:36AM +0100, Andrea Righi wrote:
> When the LLC and NUMA domains fully overlap, enabling both optimizations
> in the built-in idle CPU selection policy is redundant, as it leads to
> searching for an idle CPU within the same domain twice.
>
> Likewise, if all online CPUs are within a single LLC domain, LLC
> optimization is unnecessary.
>
> Therefore, detect overlapping domains and enable topology optimizations
> only when necessary.
>
> Moreover, rely on the online CPUs for this detection logic, instead of
> using the possible CPUs.
>
> Fixes: 860a45219bce ("sched_ext: Introduce NUMA awareness to the default idle selection policy")
> Signed-off-by: Andrea Righi <arighi@xxxxxxxxxx>

Applied to sched_ext/for-6.13.

Thanks.

--
tejun