[PATCH 4/5] balancenuma: check mem node in finding placement
From: Hillf Danton
Date: Sat Nov 17 2012 - 00:19:45 EST
No point to migrate task from node A to node A.
Signed-off-by: Hillf Danton <dhillf@xxxxxxxxx>
---
--- 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;
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/