sched/numa: Add infrastructure for split shared/private accounting of NUMA hinting faults
Ideally it would be possible to distinguish between NUMA hinting faults that are private to a task and those that are shared. This patch prepares infrastructure for separately accounting shared and private faults by allocating the necessary buffers and passing in relevant information. For now, all faults are treated as private and detection will be introduced later. 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-26-git-send-email-mgorman@suse.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
e6628d5b0a
commit
ac8e895bd2
4 changed files with 47 additions and 17 deletions
|
|
@ -1445,10 +1445,11 @@ struct task_struct {
|
|||
#define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed)
|
||||
|
||||
#ifdef CONFIG_NUMA_BALANCING
|
||||
extern void task_numa_fault(int node, int pages, bool migrated);
|
||||
extern void task_numa_fault(int last_node, int node, int pages, bool migrated);
|
||||
extern void set_numabalancing_state(bool enabled);
|
||||
#else
|
||||
static inline void task_numa_fault(int node, int pages, bool migrated)
|
||||
static inline void task_numa_fault(int last_node, int node, int pages,
|
||||
bool migrated)
|
||||
{
|
||||
}
|
||||
static inline void set_numabalancing_state(bool enabled)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue