Skip to content

Commit 6152e53

Browse files
surenbaghdasaryanakpm00
authored andcommitted
mm: change per-VMA lock statistics to be disabled by default
Change CONFIG_PER_VMA_LOCK_STATS to be disabled by default, as most users don't need it. Add configuration help to clarify its usage. Link: https://lkml.kernel.org/r/20230428173533.18158-1-surenb@google.com Fixes: 52f2386 ("mm: introduce per-VMA lock statistics") Signed-off-by: Suren Baghdasaryan <surenb@google.com> Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Reviewed-by: Lorenzo Stoakes <lstoakes@gmail.com> Acked-by: Vlastimil Babka <vbabka@suse.cz> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 3628d2b commit 6152e53

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

mm/Kconfig.debug

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ config DEBUG_KMEMLEAK_AUTO_SCAN
274274
config PER_VMA_LOCK_STATS
275275
bool "Statistics for per-vma locks"
276276
depends on PER_VMA_LOCK
277-
default y
278277
help
279-
Statistics for per-vma locks.
278+
Say Y here to enable success, retry and failure counters of page
279+
faults handled under protection of per-vma locks. When enabled, the
280+
counters are exposed in /proc/vmstat. This information is useful for
281+
kernel developers to evaluate effectiveness of per-vma locks and to
282+
identify pathological cases. Counting these events introduces a small
283+
overhead in the page fault path.
284+
285+
If in doubt, say N.

0 commit comments

Comments
 (0)