diff options
author | Vincent Guittot <vincent.guittot@linaro.org> | 2020-09-21 10:24:21 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-09-25 15:23:25 +0300 |
commit | 5a7f555904671c0737819fe4d19bd6143de3f6c0 (patch) | |
tree | bbac0e93ab27c6af5a44b1257c7f6f59e5c10e9e /kernel/sched/topology.c | |
parent | fe7491580d7c56152ea8d9d3124201191617435d (diff) | |
download | linux-5a7f555904671c0737819fe4d19bd6143de3f6c0.tar.xz |
sched/fair: Relax constraint on task's load during load balance
Some UCs like 9 always running tasks on 8 CPUs can't be balanced and the
load balancer currently migrates the waiting task between the CPUs in an
almost random manner. The success of a rq pulling a task depends of the
value of nr_balance_failed of its domains and its ability to be faster
than others to detach it. This behavior results in an unfair distribution
of the running time between tasks because some CPUs will run most of the
time, if not always, the same task whereas others will share their time
between several tasks.
Instead of using nr_balance_failed as a boolean to relax the condition
for detaching task, the LB will use nr_balanced_failed to relax the
threshold between the tasks'load and the imbalance. This mecanism
prevents the same rq or domain to always win the load balance fight.
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-2-vincent.guittot@linaro.org
Diffstat (limited to 'kernel/sched/topology.c')
0 files changed, 0 insertions, 0 deletions