summaryrefslogtreecommitdiff
path: root/kernel/sched/topology.c
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2020-09-21 10:24:23 +0300
committerPeter Zijlstra <peterz@infradead.org>2020-09-25 15:23:26 +0300
commite4d32e4d5444977d8dc25fa98b3ce0a65544db8c (patch)
treeee567825d38785d86f42b94ab69aa53fe8151743 /kernel/sched/topology.c
parent2208cdaa56c957e20d8e16f28819aeb47851cb1e (diff)
downloadlinux-e4d32e4d5444977d8dc25fa98b3ce0a65544db8c.tar.xz
sched/fair: Minimize concurrent LBs between domain level
sched domains tend to trigger simultaneously the load balance loop but the larger domains often need more time to collect statistics. This slowness makes the larger domain trying to detach tasks from a rq whereas tasks already migrated somewhere else at a sub-domain level. This is not a real problem for idle LB because the period of smaller domains will increase with its CPUs being busy and this will let time for higher ones to pulled tasks. But this becomes a problem when all CPUs are already busy because all domains stay synced when they trigger their LB. A simple way to minimize simultaneous LB of all domains is to decrement the the busy interval by 1 jiffies. Because of the busy_factor, the interval of larger domain will not be a multiple of smaller ones anymore. Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Phil Auld <pauld@redhat.com> Link: https://lkml.kernel.org/r/20200921072424.14813-4-vincent.guittot@linaro.org
Diffstat (limited to 'kernel/sched/topology.c')
0 files changed, 0 insertions, 0 deletions