diff options
author | Andrea Righi <andrea.righi@linux.dev> | 2024-10-18 21:09:51 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2024-10-18 23:26:22 +0300 |
commit | 21b8964826c4da3cc8ed89308f8838cfd221429f (patch) | |
tree | 24e9d12ce9a6bdc88aa48309b25c800d9186aac1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ba1c9d327e7ffb7b931fc2b5209aae532ffee5a5 (diff) | |
download | linux-21b8964826c4da3cc8ed89308f8838cfd221429f.tar.xz |
sched_ext: improve WAKE_SYNC behavior for default idle CPU selection
In the sched_ext built-in idle CPU selection logic, when handling a
WF_SYNC wakeup, we always attempt to migrate the task to the waker's
CPU, as the waker is expected to yield the CPU after waking the task.
However, it may be preferable to keep the task on its previous CPU if
the waker's CPU is cache-affine.
The same approach is also used by the fair class and in other scx
schedulers, like scx_rusty and scx_bpfland.
Therefore, apply the same logic to the built-in idle CPU selection
policy as well.
Signed-off-by: Andrea Righi <andrea.righi@linux.dev>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions