lkml.org 
[lkml]   [2012]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH 4/5] balancenuma: check mem node in finding placement
From
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;
--

\
 
 \ /
  Last update: 2012-11-17 07:01    [W:0.024 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site