Skip to content

Page counters optimizations

Roman Gushchin cgroups linux-mm lkml ltp oe-lkp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mm: memcg: convert enum res_type to mem_counter_typeinclude/linux/page_counter.h mm/memcontrol.c+50 -490 replies
2/4mm: memcg: merge multiple page_counters into a single structureinclude/linux/hugetlb.h include/linux/hugetlb_cgroup.h include/linux/memcontrol.h +5 more+277 -3204 replies
3/4mm: memcg: don't call propagate_protected_usage() needlesslyinclude/linux/page_counter.h mm/hugetlb_cgroup.c mm/memcontrol.c +1 more+22 -70 replies
4/4mm: page_counters: initialize usage using ATOMIC_LONG_INIT() macroinclude/linux/page_counter.h+1 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v1 0/4] Page counters optimizations

From: Roman Gushchin <[email protected]>

This patchset reorganizes page_counter structures which helps to make memory cgroup and hugetlb cgroup structures smaller (20%-35%) and more cache-effective. It also eliminates useless tracking of protected memory usage when it's not needed.

include/linux/hugetlb.h | 4 +-

 include/linux/hugetlb_cgroup.h |   9 +---
 include/linux/memcontrol.h     |  15 ++----
 include/linux/page_counter.h   |  88 +++++++++++++++++++++++++-------
 mm/hugetlb.c                   |  14 +++--
 mm/hugetlb_cgroup.c            | 150 ++++++++++++++++++++----------------------------------
 mm/memcontrol.c                | 351 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------------------------------------------------
 mm/page_counter.c              |  76 ++++++++++++++++++----------
 8 files changed, 340 insertions(+), 367 deletions(-)

Roman Gushchin (4):
mm: memcg: convert enum res_type to mem_counter_type
mm: memcg: merge multiple page_counters into a single structure
mm: memcg: don't call propagate_protected_usage() needlessly
mm: page_counters: initialize usage using ATOMIC_LONG_INIT() macro

 include/linux/hugetlb.h        |   4 +-
 include/linux/hugetlb_cgroup.h |   9 +-
 include/linux/memcontrol.h     |  15 +-
 include/linux/page_counter.h   |  88 +++++++--
 mm/hugetlb.c                   |  14 +-
 mm/hugetlb_cgroup.c            | 150 +++++---------
 mm/memcontrol.c                | 351 ++++++++++++++-------------------
 mm/page_counter.c              |  76 ++++---
 8 files changed, 340 insertions(+), 367 deletions(-)
Signature · 1 line
2.43.2