diff options
author | Abel Wu <wuyun.abel@bytedance.com> | 2023-11-07 17:05:07 +0800 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2023-11-14 22:27:00 +0100 |
commit | eab03c23c2a162085b13200d7942fc5a00b5ccc8 (patch) | |
tree | e556a36c97807c03a50e95e625b8bb521c1a0474 /tools/testing/radix-tree/linux/kernel.h | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) |
sched/eevdf: Fix vruntime adjustment on reweight
vruntime of the (on_rq && !0-lag) entity needs to be adjusted when
it gets re-weighted, and the calculations can be simplified based
on the fact that re-weight won't change the w-average of all the
entities. Please check the proofs in comments.
But adjusting vruntime can also cause position change in RB-tree
hence require re-queue to fix up which might be costly. This might
be avoided by deferring adjustment to the time the entity actually
leaves tree (dequeue/pick), but that will negatively affect task
selection and probably not good enough either.
Fixes: 147f3efaa241 ("sched/fair: Implement an EEVDF-like scheduling policy")
Signed-off-by: Abel Wu <wuyun.abel@bytedance.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20231107090510.71322-2-wuyun.abel@bytedance.com
Diffstat (limited to 'tools/testing/radix-tree/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions