]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: add node_reclaim successes to VM event counters
authorMatthew Cassell <mcassell411@gmail.com>
Mon, 22 Jul 2024 17:13:16 +0000 (17:13 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:52:20 +0000 (17:52 -0700)
commit7e2b576a88221920527609ae27eb2bcb0db14788
tree622f3a8fa1e247abbde41e73de73fa60e911c778
parent441f53c6c5457b51bafa4c54ef21c43e60fd3e5c
mm: add node_reclaim successes to VM event counters

/proc/vmstat currently shows the number of node_reclaim() failures when
vm.zone_reclaim_mode is set appropriately.  It would be convenient to have
the number of successes right next to zone_reclaim_failed (similar to
compaction and migration).

While just a trivially addition to the vmstat file.  It was helpful during
benchmarking to not have to probe node_reclaim() to observe the
success/failure ratio.

Link: https://lkml.kernel.org/r/20240722171316.7517-1-mcassell411@gmail.com
Signed-off-by: Matthew Cassell <mcassell411@gmail.com>
Cc: Domenico Cerasuolo <cerasuolodomenico@gmail.com>
Cc: "Huang, Ying" <ying.huang@intel.com>
Cc: Li Zhijian <lizhijian@fujitsu.com>
Cc: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/vm_event_item.h
mm/vmscan.c
mm/vmstat.c