diff options
| author | Rik van Riel <[email protected]> | 2014-08-04 13:23:27 -0400 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2014-08-12 12:48:22 +0200 |
| commit | b932c03c34f3b03c7364c06aa8cae5b74609fc41 (patch) | |
| tree | 8be6adf0a790ddec698483143800893e791a3d3c /tools/perf/scripts/python | |
| parent | aaecac4ad46b35ad308245384d019633fb9bc21b (diff) | |
sched/numa: Fix off-by-one in capacity check
Commit a43455a1d572daf7b730fe12eb747d1e17411365 ensures that
task_numa_migrate will call task_numa_compare on the preferred
node all the time, even when the preferred node has no free capacity.
This could lead to a performance regression if nr_running == capacity
on both the source and the destination node. This can be avoided by
also checking for nr_running == capacity on the source node, which is
one stricter than checking .has_free_capacity.
Signed-off-by: Rik van Riel <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions