]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68c58fc7880bea077dea75ad47a947a6c46f9af4
tree786d2e4331d274b2f11d45c6d2fc7e238f7aa3b7
parent66afdad75432c5d6938d717799e35df9f895968d
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