diff options
author | Andrea Righi <arighi@nvidia.com> | 2024-10-29 11:16:18 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2024-10-29 09:36:35 -1000 |
commit | 860a45219bce09d9ebac883cfcf9b5b0b8a8a999 (patch) | |
tree | c470385452f656cc7b782c612c0d5b855f936f34 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | b7d0bbcf0c9828dd6974f8c1ccbdf2e13f3ad73f (diff) |
sched_ext: Introduce NUMA awareness to the default idle selection policy
Similarly to commit dfa4ed29b18c ("sched_ext: Introduce LLC awareness to
the default idle selection policy"), extend the built-in idle CPU
selection policy to also prioritize CPUs within the same NUMA node.
With this change applied, the built-in CPU idle selection policy follows
this logic:
- always prioritize CPUs from fully idle SMT cores,
- select the same CPU if possible,
- select a CPU within the same LLC domain,
- select a CPU within the same NUMA node.
Both NUMA and LLC awareness features are enabled only when the system
has multiple NUMA nodes or multiple LLC domains.
In the future, we may want to improve the NUMA node selection to account
the node distance from prev_cpu. Currently, the logic only tries to keep
tasks running on the same NUMA node. If all CPUs within a node are busy,
the next NUMA node is chosen randomly.
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions