Repository navigation
Commit eb95308
sched: Fix more load-balancing fallout
Commits 367456c ("sched: Ditch per cgroup task lists for
load-balancing") and 5d6523e ("sched: Fix load-balance wreckage")
left some more wreckage.
By setting loop_max unconditionally to ->nr_running load-balancing
could take a lot of time on very long runqueues (hackbench!). So keep
the sysctl as max limit of the amount of tasks we'll iterate.
Furthermore, the min load filter for migration completely fails with
cgroups since inequality in per-cpu state can easily lead to such
small loads :/
Furthermore the change to add new tasks to the tail of the queue
instead of the head seems to have some effect.. not quite sure I
understand why.
Combined these fixes solve the huge hackbench regression reported by
Tim when hackbench is ran in a cgroup.
Reported-by: Tim Chen <tim.c.chen@linux.intel.com>
Acked-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/1335365763.28150.267.camel@twins
[ got rid of the CONFIG_PREEMPT tuning and made small readability edits ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>1 parent 2300fd6 commit eb95308
2 files changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
787 | | - | |
| 787 | + | |
788 | 788 | | |
789 | 789 | | |
790 | 790 | | |
| |||
3215 | 3215 | | |
3216 | 3216 | | |
3217 | 3217 | | |
| 3218 | + | |
| 3219 | + | |
3218 | 3220 | | |
3219 | 3221 | | |
3220 | 3222 | | |
| |||
3242 | 3244 | | |
3243 | 3245 | | |
3244 | 3246 | | |
3245 | | - | |
| 3247 | + | |
3246 | 3248 | | |
3247 | 3249 | | |
3248 | 3250 | | |
| |||
3252 | 3254 | | |
3253 | 3255 | | |
3254 | 3256 | | |
3255 | | - | |
| 3257 | + | |
3256 | 3258 | | |
3257 | 3259 | | |
3258 | 3260 | | |
| |||
4407 | 4409 | | |
4408 | 4410 | | |
4409 | 4411 | | |
4410 | | - | |
| 4412 | + | |
4411 | 4413 | | |
4412 | 4414 | | |
4413 | 4415 | | |
| |||
4445 | 4447 | | |
4446 | 4448 | | |
4447 | 4449 | | |
4448 | | - | |
4449 | | - | |
4450 | | - | |
4451 | | - | |
| 4450 | + | |
| 4451 | + | |
| 4452 | + | |
| 4453 | + | |
4452 | 4454 | | |
4453 | 4455 | | |
4454 | 4456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
0 commit comments