]> git.ipfire.org Git - thirdparty/linux.git/commit
sched_ext: Introduce LLC awareness to the default idle selection policy
authorAndrea Righi <arighi@nvidia.com>
Tue, 22 Oct 2024 23:47:18 +0000 (01:47 +0200)
committerTejun Heo <tj@kernel.org>
Wed, 23 Oct 2024 19:25:26 +0000 (09:25 -1000)
commitdfa4ed29b18c5f26cd311b0da7f049dbb2a2b33b
treeff85771e0f7d13d57110879a0931ac0b94388e05
parentb452ae4d20aefe96232440421faed37c9d3410a7
sched_ext: Introduce LLC awareness to the default idle selection policy

Rely on the scheduler topology information to implement basic LLC
awareness in the sched_ext build-in idle selection policy.

This allows schedulers using the built-in policy to make more informed
decisions when selecting an idle CPU in systems with multiple LLCs, such
as NUMA systems or chiplet-based architectures, and it helps keep tasks
within the same LLC domain, thereby improving cache locality.

For efficiency, LLC awareness is applied only to tasks that can run on
all the CPUs in the system for now. If a task's affinity is modified
from user space, it's the responsibility of user space to choose the
appropriate optimized scheduling domain.

Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c