]> 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)
commit582373b5e229472531c8e5dd87bc374f51d90a5a
tree786d2e4331d274b2f11d45c6d2fc7e238f7aa3b7
parent80472ff2479d639d20670290e5556ee98a803456
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