Skip to content
Commit eec9e715 authored by Mel Gorman's avatar Mel Gorman Committed by Valentin Schneider
Browse files

sched/numa: Stop an exhastive search if a reasonable swap candidate or idle CPU is found



When domains are imbalanced or overloaded a search of all CPUs on the
target domain is searched and compared with task_numa_compare. In some
circumstances, a candidate is found that is an obvious win.

o A task can move to an idle CPU and an idle CPU is found
o A swap candidate is found that would move to its preferred domain

This patch terminates the search when either condition is met.

Signed-off-by: default avatarMel Gorman <mgorman@techsingularity.net>
parent ed5d470f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment