Skip to content

Introduce acctmem

Matthew Wilcox (Oracle) cgroups linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm: Opencode split_page_memcg() in __split_huge_page()mm/huge_memory.c+9 -21 reply
2/3mm: Simplify split_page_memcg()include/linux/memcontrol.h mm/memcontrol.c mm/page_alloc.c+18 -162 replies
3/3mm: Introduce acctmeminclude/linux/memcontrol.h include/linux/mm_types.h mm/memcontrol.c +3 more+35 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Introduce acctmem

As a step towards shrinking struct page, we need to remove all references to page->memcg_data. The model I'm working towards is described at
https://kernelnewbies.org/MatthewWilcox/Memdescs

In working on this series, I'm dissatisfied with how much I've assumed that every page belongs to a folio. There will need to be more changes in order to split struct acctmem from struct folio in the future. The first two patches take some steps in that direction, but I'm not going to do any more than that in this series.

Matthew Wilcox (Oracle) (3):
mm: Opencode split_page_memcg() in __split_huge_page()
mm: Simplify split_page_memcg()
mm: Introduce acctmem

 include/linux/memcontrol.h | 28 ++++++++++++++++++++++++++--
 include/linux/mm_types.h   |  6 +++---
 mm/huge_memory.c           | 11 +++++++++--
 mm/memcontrol.c            | 29 ++++++++++++++++-------------
 mm/page_alloc.c            |  8 ++++----
 mm/page_owner.c            |  2 +-
 mm/slab.h                  |  2 +-
 7 files changed, 60 insertions(+), 26 deletions(-)
Signature · 1 line
2.43.0