Currently a lot of memory is wasted to maintain the vmevents for memory cgroups as we have multiple arrays of size NR_VM_EVENT_ITEMS which can be as large as 110. However memcg code uses small portion of those entries. This patch series eliminate this overhead by removing the unneeded vmevent entries from memory cgroup data structures. Shakeel Butt (3): memcg: extract memcg_vmstats from struct mem_cgroup memcg: rearrange code memcg: reduce size of memcg vmstats structures include/linux/memcontrol.h | 37 +--------- mm/memcontrol.c | 145 ++++++++++++++++++++++++++++--------- 2 files changed, 113 insertions(+), 69 deletions(-) -- 2.37.2.789.g6183377224-goog