|
|
Log in / Subscribe / Register

memcg: reduce memory overhead of memory cgroups

From:  Shakeel Butt <shakeelb-AT-google.com>
To:  Johannes Weiner <hannes-AT-cmpxchg.org>, Michal Hocko <mhocko-AT-kernel.org>, Roman Gushchin <roman.gushchin-AT-linux.dev>, Muchun Song <songmuchun-AT-bytedance.com>
Subject:  [PATCH 0/3] memcg: reduce memory overhead of memory cgroups
Date:  Wed, 07 Sep 2022 04:35:34 +0000
Message-ID:  <20220907043537.3457014-1-shakeelb@google.com>
Cc:  Andrew Morton <akpm-AT-linux-foundation.org>, cgroups-AT-vger.kernel.org, linux-mm-AT-kvack.org, linux-kernel-AT-vger.kernel.org, Shakeel Butt <shakeelb-AT-google.com>
Archive-link:  Article

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



Copyright © 2022, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds