OSDN Git Service

sched/fair: Account update_blocked_averages in newidle_balance cost
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 19 Oct 2021 12:35:33 +0000 (14:35 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Sun, 31 Oct 2021 10:11:37 +0000 (11:11 +0100)
commit9e9af819db5dbe4bf99101628955a26e2a41a1a5
tree786d2e4331d274b2f11d45c6d2fc7e238f7aa3b7
parent5d1ceb3969b6b2e47e2df6d17790a7c5a20fcbb4
sched/fair: Account update_blocked_averages in newidle_balance cost

The time spent to update the blocked load can be significant depending of
the complexity fo the cgroup hierarchy. Take this time into account in
the cost of the 1st load balance of a newly idle cpu.

Also reduce the number of call to sched_clock_cpu() and track more actual
work.

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>
Acked-by: Mel Gorman <mgorman@suse.de>
Link: https://lore.kernel.org/r/20211019123537.17146-2-vincent.guittot@linaro.org
kernel/sched/fair.c