Skip to content

mm: memcontrol: cleanup and optimize for two accounting params

Kairui Song cgroups linux-mm lkml 2 versions – Applied

Status from this message: [merged mm-stable] mm-memcontrol-use-memcg_kmem_enabled-in-count_objcg_event.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesApplied 2/2
  2. v12 patches 7 repliesSuperseded

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm: memcontrol: use memcg_kmem_enabled in count_objcg_eventinclude/linux/memcontrol.h+1 -13 repliesApplied
2/2mm: memcontrol: make cgroup_memory_noswap a static keymm/memcontrol.c+19 -83 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMichal HockoShakeel ButtRoman GushchinMuchun Song
1/2A-b A-b A-b
2/2A-b A-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/2] mm: memcontrol: cleanup and optimize for two accounting params

From: Kairui Song <[email protected]>

V2 of "[PATCH 0/2] mm: memcontrol: cleanup and optimize for accounting params".

Patch 1/2 is a minor cleanup for kmem accouting path.

Patch 2/2 optimizes some hot paths by making cgroup_memory_noswap a static key, benchmark shows swap paths now have a ~5% lower overhead.

Update from V1:
- Collect Acked-by for patch 2/2 from Michal Hocko, Thanks!
- Simplify patch 1/1, don't drop mem_cgroup_kmem_disabled and only change one call site as a minor clean up, update commit message for patch 2/2, as suggested by Michal Hocko.

Kairui Song (2):
mm: memcontrol: use memcg_kmem_enabled in count_objcg_event
mm: memcontrol: make cgroup_memory_noswap a static key

 include/linux/memcontrol.h |  2 +-
 mm/memcontrol.c            | 27 +++++++++++++++++++--------
 2 files changed, 20 insertions(+), 9 deletions(-)
Signature · 1 line
2.35.2