]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched/fair: Add new cfs_rq.h_nr_runnable
authorVincent Guittot <vincent.guittot@linaro.org>
Mon, 2 Dec 2024 17:45:59 +0000 (18:45 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 9 Dec 2024 10:48:11 +0000 (11:48 +0100)
commitc2a295bffeaf9461ecba76dc9e4780c898c94f03
tree8a1f83d8d54da928dc28d183d4bf05d56f894764
parent7b8a702d943827130cc00ae36075eff5500f86f1
sched/fair: Add new cfs_rq.h_nr_runnable

With delayed dequeued feature, a sleeping sched_entity remains queued in
the rq until its lag has elapsed. As a result, it stays also visible
in the statistics that are used to balance the system and in particular
the field cfs.h_nr_queued when the sched_entity is associated to a task.

Create a new h_nr_runnable that tracks only queued and runnable tasks.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Link: https://lore.kernel.org/r/20241202174606.4074512-5-vincent.guittot@linaro.org
kernel/sched/debug.c
kernel/sched/fair.c
kernel/sched/sched.h