mbox series

[0/3] memcg: reduce memory overhead of memory cgroups

Message ID 20220907043537.3457014-1-shakeelb@google.com (mailing list archive)
Headers show
Series memcg: reduce memory overhead of memory cgroups | expand

Message

Shakeel Butt Sept. 7, 2022, 4:35 a.m. UTC
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(-)