Skip to content

mm: memcg: page counters optimizations

Roman Gushchin linux-mm lkml 2 versions – Applied

Status from this message: [merged mm-stable] mm-page_counters-initialize-usage-using-atomic_long_init-macro.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 5 repliesApplied 3/3
  2. v25 patches 16 repliesSuperseded

Changes in v3 from the cover letter

- dropped the main part based on a feedback from Johannes
- rebased on top of current mm-unstable

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3mm: memcg: don't call propagate_protected_usage() needlesslyinclude/linux/page_counter.h mm/hugetlb_cgroup.c mm/memcontrol.c +1 more+30 -141 replyApplied
2/3mm: page_counters: put page_counter_calculate_protection() under CONFIG_MEMCGinclude/linux/page_counter.h mm/page_counter.c+8 -01 replyApplied
3/3mm: page_counters: initialize usage using ATOMIC_LONG_INIT() macroinclude/linux/page_counter.h+1 -13 repliesApplied

Reviews trailers per patch

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

PatchShakeel ButtJohannes Weiner
1/3A-b A-b
2/3A-b A-b
3/3A-b A-b

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

Read the v3 thread

Cover letter [PATCH v3 0/3] mm: memcg: page counters optimizations

This patchset contains 3 independent small optimizations of page counters.

v3:
- dropped the main part based on a feedback from Johannes
- rebased on top of current mm-unstable
v2:
- two page_counter structures per hugetlb cgroup instead of one
- rebased to the current mm branch
- many minor fixes and improvements
v1:
https://lore.kernel.org/lkml/[email protected]/T/#m77151ed83451a49132e29ef13d55e08b95ac867f

Roman Gushchin (3):
mm: memcg: don't call propagate_protected_usage() needlessly
mm: page_counters: put page_counter_calculate_protection() under
CONFIG_MEMCG
mm: page_counters: initialize usage using ATOMIC_LONG_INIT() macro

 include/linux/page_counter.h | 16 ++++++++++++++--
 mm/hugetlb_cgroup.c          |  4 ++--
 mm/memcontrol.c              | 16 ++++++++--------
 mm/page_counter.c            | 18 +++++++++++++++---
 4 files changed, 39 insertions(+), 15 deletions(-)
Signature · 1 line
2.46.0.rc1.232.g9752f9e123-goog