diff options
author | Mel Gorman <mgorman@suse.de> | 2013-10-07 06:28:58 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-10-09 06:40:23 -0400 |
commit | 688b7585d16ab57a17aa4422a3b290b3a55fa679 (patch) | |
tree | 2a016719cf05336bf49db699a9268dae6b99310f /include/linux/sched.h | |
parent | f809ca9a554dda49fb264c79e31c722e0b063ff8 (diff) |
sched/numa: Select a preferred node with the most numa hinting faults
This patch selects a preferred node for a task to run on based on the
NUMA hinting faults. This information is later used to migrate tasks
towards the node during balancing.
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-21-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index a810e95bca2b..b1fc75e7187b 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1344,6 +1344,7 @@ struct task_struct { | |||
1344 | struct callback_head numa_work; | 1344 | struct callback_head numa_work; |
1345 | 1345 | ||
1346 | unsigned long *numa_faults; | 1346 | unsigned long *numa_faults; |
1347 | int numa_preferred_nid; | ||
1347 | #endif /* CONFIG_NUMA_BALANCING */ | 1348 | #endif /* CONFIG_NUMA_BALANCING */ |
1348 | 1349 | ||
1349 | struct rcu_head rcu; | 1350 | struct rcu_head rcu; |