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(-) -- 2.47.0.163.g1226f6d8fa-goog