diff options
author | Ricardo Neri <ricardo.neri-calderon@linux.intel.com> | 2021-09-11 03:18:14 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-10-05 15:51:59 +0200 |
commit | 183b8ec38f1ec6c1f8419375303bf1d09a2b8369 (patch) | |
tree | a22f632334a802f615c816b55a1603ea975c2a19 /kernel | |
parent | kthread: Move prio/affinite change into the newly created thread (diff) | |
download | linux-183b8ec38f1ec6c1f8419375303bf1d09a2b8369.tar.xz linux-183b8ec38f1ec6c1f8419375303bf1d09a2b8369.zip |
x86/sched: Decrease further the priorities of SMT siblings
When scheduling, it is better to prefer a separate physical core rather
than the SMT sibling of a high priority core. The existing formula to
compute priorities takes such fact in consideration. There may exist,
however, combinations of priorities (i.e., maximum frequencies) in which
the priority of high-numbered SMT siblings of high-priority cores collides
with the priority of low-numbered SMT siblings of low-priority cores.
Consider for instance an SMT2 system with CPUs [0, 1] with priority 60 and
[2, 3] with priority 30(CPUs in brackets are SMT siblings. In such a case,
the resulting priorities would be [120, 60], [60, 30]. Thus, to ensure
that CPU2 has higher priority than CPU1, divide the raw priority by the
squared SMT iterator. The resulting priorities are [120, 30]. [60, 15].
Originally-by: Len Brown <len.brown@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210911011819.12184-2-ricardo.neri-calderon@linux.intel.com
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions