diff options
author | Ingo Molnar <mingo@kernel.org> | 2013-10-07 06:29:30 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-10-09 08:48:04 -0400 |
commit | b32e86b4301e345611f0446265f782a229faadf6 (patch) | |
tree | 8cc0a8b731e63f2b3450f89330d49009374c99fb /kernel/sched/fair.c | |
parent | 7dbd13ed06513b047216a7ffc718bad9df0660f1 (diff) |
sched/numa: Add debugging
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: http://lkml.kernel.org/r/1381141781-10992-53-git-send-email-mgorman@suse.de
Diffstat (limited to 'kernel/sched/fair.c')
-rw-r--r-- | kernel/sched/fair.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 147349987bfe..2876a37cdfc4 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c | |||
@@ -1137,7 +1137,7 @@ static int task_numa_migrate(struct task_struct *p) | |||
1137 | .p = p, | 1137 | .p = p, |
1138 | 1138 | ||
1139 | .src_cpu = task_cpu(p), | 1139 | .src_cpu = task_cpu(p), |
1140 | .src_nid = cpu_to_node(task_cpu(p)), | 1140 | .src_nid = task_node(p), |
1141 | 1141 | ||
1142 | .imbalance_pct = 112, | 1142 | .imbalance_pct = 112, |
1143 | 1143 | ||
@@ -1515,6 +1515,9 @@ void task_numa_fault(int last_cpupid, int node, int pages, int flags) | |||
1515 | if (p->numa_migrate_retry && time_after(jiffies, p->numa_migrate_retry)) | 1515 | if (p->numa_migrate_retry && time_after(jiffies, p->numa_migrate_retry)) |
1516 | numa_migrate_preferred(p); | 1516 | numa_migrate_preferred(p); |
1517 | 1517 | ||
1518 | if (migrated) | ||
1519 | p->numa_pages_migrated += pages; | ||
1520 | |||
1518 | p->numa_faults_buffer[task_faults_idx(node, priv)] += pages; | 1521 | p->numa_faults_buffer[task_faults_idx(node, priv)] += pages; |
1519 | } | 1522 | } |
1520 | 1523 | ||