Commit b0defa7
sched/fair: Make sure to try to detach at least one movable task
During load balance, we try at most env->loop_max time to move a task.
But it can happen that the loop_max LRU tasks (ie tail of
the cfs_tasks list) can't be moved to dst_cpu because of affinity.
In this case, loop in the list until we found at least one.
The maximum of detached tasks remained the same as before.
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220825122726.20819-2-vincent.guittot@linaro.org1 parent fb04563 commit b0defa7
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8049 | 8049 | | |
8050 | 8050 | | |
8051 | 8051 | | |
8052 | | - | |
8053 | | - | |
| 8052 | + | |
| 8053 | + | |
| 8054 | + | |
| 8055 | + | |
| 8056 | + | |
| 8057 | + | |
8054 | 8058 | | |
8055 | 8059 | | |
8056 | 8060 | | |
| |||
10179 | 10183 | | |
10180 | 10184 | | |
10181 | 10185 | | |
10182 | | - | |
| 10186 | + | |
| 10187 | + | |
| 10188 | + | |
10183 | 10189 | | |
10184 | 10190 | | |
10185 | 10191 | | |
| |||
0 commit comments