mm-introduce-per-vma-lock-statistics.patch removed from -mm tree
The quilt patch titled
Subject: mm: introduce per-VMA lock statistics
has been removed from the -mm tree. Its filename was
mm-introduce-per-vma-lock-statistics.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Suren Baghdasaryan <[email protected]>
Subject: mm: introduce per-VMA lock statistics
Date: Mon, 27 Feb 2023 09:36:27 -0800
Add a new CONFIG_PER_VMA_LOCK_STATS config option to dump extra statistics about handling page fault under VMA lock.
Signed-off-by Suren Baghdasaryan <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/vm_event_item.h | 6 ++++++ include/linux/vmstat.h | 6 ++++++ mm/Kconfig.debug | 6 ++++++ mm/memory.c | 2 ++ mm/vmstat.c | 6 ++++++ 5 files changed, 26 insertions(+)
include/linux/vm_event_item.h renamed from include/linux/vm_event_item.h~mm-introduce-per-vma-lock-statistics +6 -0
@@ -150,6 +150,12 @@ enum vm_event_item { PGPGIN, PGPGOUT, PS DIRECT_MAP_LEVEL2_SPLIT, DIRECT_MAP_LEVEL3_SPLIT,#endif +#ifdef CONFIG_PER_VMA_LOCK_STATS +VMA_LOCK_SUCCESS , +VMA_LOCK_ABORT , +VMA_LOCK_RETRY , +VMA_LOCK_MISS , +#endifNR_VM_EVENT_ITEMS };
include/linux/vmstat.h renamed from include/linux/vmstat.h~mm-introduce-per-vma-lock-statistics +6 -0
@@ -125,6 +125,12 @@ static inline void vm_events_fold_cpu(in#define count_vm_tlb_events (x, y) do { (void)(y); } while (0)#endif +#ifdef CONFIG_PER_VMA_LOCK_STATS +#define count_vm_vma_lock_event (x) count_vm_event(x) +#else +#define count_vm_vma_lock_event (x) do {} while (0) +#endif +#define __count_zid_vm_events (item, zid, delta) \ __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta)
mm/Kconfig.debug renamed from mm/Kconfig.debug~mm-introduce-per-vma-lock-statistics +6 -0
@@ -279,3 +279,9 @@ config DEBUG_KMEMLEAK_AUTO_SCAN If unsure, say Y. +config PER_VMA_LOCK_STATS + bool "Statistics for per-vma locks" + depends on PER_VMA_LOCK + default y + help + Statistics for per-vma locks.
mm/memory.c renamed from mm/memory.c~mm-introduce-per-vma-lock-statistics +2 -0
@@ -5284,6 +5284,7 @@ retry:/* Check if the VMA got isolated after we found it */ if (vma->detached) {vma_end_read (vma); +count_vm_vma_lock_event (VMA_LOCK_MISS );/* The area was replaced with another one */ goto retry; }
@@ -5292,6 +5293,7 @@ retry:return vma; inval:rcu_read_unlock (); +count_vm_vma_lock_event (VMA_LOCK_ABORT ); return NULL; }#endif /* CONFIG_PER_VMA_LOCK */
mm/vmstat.c renamed from mm/vmstat.c~mm-introduce-per-vma-lock-statistics +6 -0
@@ -1399,6 +1399,12 @@ const char * const vmstat_text[] = { "direct_map_level2_splits", "direct_map_level3_splits", #endif +#ifdef CONFIG_PER_VMA_LOCK_STATS + "vma_lock_success", + "vma_lock_abort", + "vma_lock_retry", + "vma_lock_miss", +#endif #endif /* CONFIG_VM_EVENT_COUNTERS || CONFIG_MEMCG */ }; #endif /* CONFIG_PROC_FS || CONFIG_SYSFS || CONFIG_NUMA || CONFIG_MEMCG */
_
Patches currently in -mm which might be from [email protected] are