mbox series

[mm-unstable,v1,0/2] Track pages allocated for struct

Message ID 20241031224551.1736113-1-kinseyho@google.com (mailing list archive)
Headers show
Series Track pages allocated for struct | expand

Message

Kinsey Ho Oct. 31, 2024, 10:45 p.m. UTC
We noticed high overhead for pages allocated for struct swap_cgroup in
our fleet. This patchset adds the number of pages allocated for struct
swap_cgroup to vmstat. This can be a useful metric for identifying
unneeded overhead on systems which configure swap.

Before adding the new stat, Patch 1 introduces a generic system-wide
counting interface. 

Kinsey Ho (2):
  mm: add generic system-wide page counters
  mm, swap: add pages allocated for struct swap_cgroup to vmstat

 include/linux/vmstat.h | 11 +++++++++++
 mm/swap_cgroup.c       |  3 +++
 mm/vmstat.c            | 35 ++++++++++++++++++++++++++---------
 3 files changed, 40 insertions(+), 9 deletions(-)