aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorMel Gorman <mgorman@suse.de>2013-10-07 06:29:11 -0400
committerIngo Molnar <mingo@kernel.org>2013-10-09 06:40:40 -0400
commit6b9a7460b6baf6c77fc3d23d927ddfc3f3f05bf3 (patch)
treeb35642ac95837435740ee6f584ca6d169795891d /include/linux/sched.h
parent58d081b5082dd85e02ac9a1fb151d97395340a09 (diff)
sched/numa: Retry migration of tasks to CPU on a preferred node
When a preferred node is selected for a tasks there is an attempt to migrate the task to a CPU there. This may fail in which case the task will only migrate if the active load balancer takes action. This may never happen if the conditions are not right. This patch will check at NUMA hinting fault time if another attempt should be made to migrate the task. It will only make an attempt once every five seconds. Signed-off-by: Mel Gorman <mgorman@suse.de> Reviewed-by: Rik van Riel <riel@redhat.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1381141781-10992-34-git-send-email-mgorman@suse.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index d946195eec10..14251a8ff2ea 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1341,6 +1341,7 @@ struct task_struct {
1341 int numa_migrate_seq; 1341 int numa_migrate_seq;
1342 unsigned int numa_scan_period; 1342 unsigned int numa_scan_period;
1343 unsigned int numa_scan_period_max; 1343 unsigned int numa_scan_period_max;
1344 unsigned long numa_migrate_retry;
1344 u64 node_stamp; /* migration stamp */ 1345 u64 node_stamp; /* migration stamp */
1345 struct callback_head numa_work; 1346 struct callback_head numa_work;
1346 1347