Messages in this thread Patch in this message | | | Date | Sat, 17 Nov 2012 13:19:53 +0800 | Subject | [PATCH 4/5] balancenuma: check mem node in finding placement | From | Hillf Danton <> |
| |
No point to migrate task from node A to node A.
Signed-off-by: Hillf Danton <dhillf@gmail.com> ---
--- a/kernel/sched/fair.c Sat Nov 17 12:25:44 2012 +++ b/kernel/sched/fair.c Sat Nov 17 12:25:54 2012 @@ -891,6 +891,8 @@ static void task_numa_find_placement(str /* Examine a task on every other node */ for_each_online_node(nid) { int cpu; + if (nid == this_nid) + continue; for_each_cpu_and(cpu, cpumask_of_node(nid), allowed) { struct rq *rq; struct mm_struct *other_mm; --
| |