Skip to content

bypass root memcg charges if no memcgs are possible

Glauber Costa cgroups linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 36 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5memcg: make nocpu_base available for non hotplugmm/memcontrol.c+4 -42 replies
2/5memcg: provide root figures from system totalsmm/memcontrol.c+64 -022 replies
3/5memcg: make it suck fasterinclude/linux/memcontrol.h mm/memcontrol.c mm/page_cgroup.c+216 -268 replies
4/5memcg: do not call page_cgroup_init at system_bootinclude/linux/page_cgroup.h init/main.c mm/memcontrol.c +1 more+99 -843 replies
5/5memcg: do not walk all the way to the root for memcgmm/memcontrol.c+1 -11 reply

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchKAMEZAWA HiroyukiMichal Hocko
1/5A-b A-b
2/5
3/5
4/5
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] bypass root memcg charges if no memcgs are possible

Hi,

Here is my recent changes in my patchset to bypass charges from the root cgroup if no other memcgs are present in the system. At the time, the main complaint came from Michal Hocko, correctly pointing out that if hierarchy == 0, we can't bypass the root memcg forever and at some point, we need to transfer charges. This is now done in this patch.

DISCLAIMER:

I haven't yet got access to a big box again. I am sending this with outdated numbers in the interest of having this in the open earlier. However, the main idea stands, and I believe the numbers are still generally valid (albeit of course, it would be better to have them updated. Independent evaluations always welcome)

* v2
- Fixed some LRU bugs
- Only keep bypassing if we have root-level hierarchy.

Glauber Costa (5):
memcg: make nocpu_base available for non hotplug
memcg: provide root figures from system totals
memcg: make it suck faster
memcg: do not call page_cgroup_init at system_boot
memcg: do not walk all the way to the root for memcg

 include/linux/memcontrol.h  |  72 ++++++++++---
 include/linux/page_cgroup.h |  28 ++---
 init/main.c                 |   2 -
 mm/memcontrol.c             | 243 ++++++++++++++++++++++++++++++++++++++++----
 mm/page_cgroup.c            | 150 ++++++++++++++-------------
 5 files changed, 382 insertions(+), 113 deletions(-)
Signature · 1 line
1.8.1.2