diff options
author | Mel Gorman <mgorman@suse.de> | 2013-10-07 06:29:22 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-10-09 08:47:49 -0400 |
commit | e29cf08b05dc0b8151d65704d96d525a9e179a6b (patch) | |
tree | 07eb90e16973acca57ed9bc3866f2bff8ab0750a /include/linux/sched.h | |
parent | 8c8a743c5087bac9caac8155b8f3b367e75cdd0b (diff) |
sched/numa: Report a NUMA task group ID
It is desirable to model from userspace how the scheduler groups tasks
over time. This patch adds an ID to the numa_group and reports it via
/proc/PID/status.
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-45-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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index f587ded5c148..b0b343b1ba64 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1452,12 +1452,17 @@ struct task_struct { | |||
1452 | 1452 | ||
1453 | #ifdef CONFIG_NUMA_BALANCING | 1453 | #ifdef CONFIG_NUMA_BALANCING |
1454 | extern void task_numa_fault(int last_node, int node, int pages, bool migrated); | 1454 | extern void task_numa_fault(int last_node, int node, int pages, bool migrated); |
1455 | extern pid_t task_numa_group_id(struct task_struct *p); | ||
1455 | extern void set_numabalancing_state(bool enabled); | 1456 | extern void set_numabalancing_state(bool enabled); |
1456 | #else | 1457 | #else |
1457 | static inline void task_numa_fault(int last_node, int node, int pages, | 1458 | static inline void task_numa_fault(int last_node, int node, int pages, |
1458 | bool migrated) | 1459 | bool migrated) |
1459 | { | 1460 | { |
1460 | } | 1461 | } |
1462 | static inline pid_t task_numa_group_id(struct task_struct *p) | ||
1463 | { | ||
1464 | return 0; | ||
1465 | } | ||
1461 | static inline void set_numabalancing_state(bool enabled) | 1466 | static inline void set_numabalancing_state(bool enabled) |
1462 | { | 1467 | { |
1463 | } | 1468 | } |