]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Fix statistics for find_idlest_group()
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 18 Feb 2020 14:45:34 +0000 (15:45 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 27 Feb 2020 09:08:27 +0000 (10:08 +0100)
commit04cb37baa05baa42cdd7785ce5445ab9e0963457
tree1a762bbacc79405609bcc9e1746e62bfb37d880a
parent7cf3044d8b15506d441621cd21f2d98bbe29fc2e
sched/fair: Fix statistics for find_idlest_group()

sgs->group_weight is not set while gathering statistics in
update_sg_wakeup_stats(). This means that a group can be classified as
fully busy with 0 running tasks if utilization is high enough.

This path is mainly used for fork and exec.

Fixes: 88921a23db88 ("sched/fair: Rework find_idlest_group()")
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Link: https://lore.kernel.org/r/20200218144534.4564-1-vincent.guittot@linaro.org
kernel/sched/fair.c