summaryrefslogtreecommitdiff
path: root/include/linux/sched/numa_balancing.h
diff options
context:
space:
mode:
authorMel Gorman <mgorman@techsingularity.net>2023-10-10 09:31:40 +0100
committerIngo Molnar <mingo@kernel.org>2023-10-10 11:10:00 +0200
commited2da8b725b932b1e2b2f4835bb664d47ed03031 (patch)
tree3a93d7fe1e5fa5dd0843e5bbecf59a8ef8eada00 /include/linux/sched/numa_balancing.h
parentf3a6c97940fbd25d6c84c2d5642338fc99a9b35b (diff)
sched/numa: Trace decisions related to skipping VMAs
NUMA balancing skips or scans VMAs for a variety of reasons. In preparation for completing scans of VMAs regardless of PID access, trace the reasons why a VMA was skipped. In a later patch, the tracing will be used to track if a VMA was forcibly scanned. Signed-off-by: Mel Gorman <mgorman@techsingularity.net> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20231010083143.19593-4-mgorman@techsingularity.net
Diffstat (limited to 'include/linux/sched/numa_balancing.h')
-rw-r--r--include/linux/sched/numa_balancing.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/sched/numa_balancing.h b/include/linux/sched/numa_balancing.h
index 3988762efe15..c127a1509e2f 100644
--- a/include/linux/sched/numa_balancing.h
+++ b/include/linux/sched/numa_balancing.h
@@ -15,6 +15,14 @@
#define TNF_FAULT_LOCAL 0x08
#define TNF_MIGRATE_FAIL 0x10
+enum numa_vmaskip_reason {
+ NUMAB_SKIP_UNSUITABLE,
+ NUMAB_SKIP_SHARED_RO,
+ NUMAB_SKIP_INACCESSIBLE,
+ NUMAB_SKIP_SCAN_DELAY,
+ NUMAB_SKIP_PID_INACTIVE,
+};
+
#ifdef CONFIG_NUMA_BALANCING
extern void task_numa_fault(int last_node, int node, int pages, int flags);
extern pid_t task_numa_group_id(struct task_struct *p);