]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched/fair: Use the new cfs_rq.h_nr_runnable
authorVincent Guittot <vincent.guittot@linaro.org>
Mon, 2 Dec 2024 17:46:00 +0000 (18:46 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 9 Dec 2024 10:48:11 +0000 (11:48 +0100)
commit1a49104496d38cdcb7d9106ec23773a52c7a7e82
treeadf1ec456ee50e3e834f85b87f64e406c4f3d92e
parentc2a295bffeaf9461ecba76dc9e4780c898c94f03
sched/fair: Use the new cfs_rq.h_nr_runnable

Use the new h_nr_runnable that tracks only queued and runnable tasks in the
statistics that are used to balance the system:

 - PELT runnable_avg
 - deciding if a group is overloaded or has spare capacity
 - numa stats
 - reduced capacity management
 - load balance
 - nohz kick

It should be noticed that the rq->nr_running still counts the delayed
dequeued tasks as delayed dequeue is a fair feature that is meaningless
at core level.

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-6-vincent.guittot@linaro.org
kernel/sched/fair.c
kernel/sched/pelt.c
kernel/sched/sched.h