Skip to content

Add swap accounting to cgroup2

Vladimir Davydov cgroups linux-mm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 11 repliesIn review
  2. v17 patches 31 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7mm: memcontrol: charge swap to cgroup2include/linux/memcontrol.h include/linux/swap.h mm/memcontrol.c +3 more+128 -102 replies
2/7mm: vmscan: pass memcg to get_scan_count()mm/vmscan.c+8 -121 reply
3/7mm: memcontrol: replace mem_cgroup_lruvec_online with mem_cgroup_onlineinclude/linux/memcontrol.h mm/vmscan.c+11 -181 reply
4/7swap.h: move memcg related stuff to the end of the fileinclude/linux/swap.h+38 -321 reply
5/7mm: vmscan: do not scan anon pages if memcg swap limit is hitinclude/linux/swap.h mm/memcontrol.c mm/vmscan.c+20 -11 reply
6/7mm: free swap cache aggressively if memcg swap is fullinclude/linux/swap.h mm/memcontrol.c mm/memory.c +2 more+32 -31 reply
7/7Documentation: cgroup: add memory.swap.{current,max} descriptionDocumentation/cgroup.txt+33 -04 replies

Reviews trailers per patch

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

PatchJohannes WeinerMichal Hocko
1/7A-b A-b
2/7A-b A-b
3/7A-b A-b
4/7A-b A-b
5/7A-b A-b
6/7A-b A-b
7/7A-b A-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/7] Add swap accounting to cgroup2

Hi,

This is v2 of the patch set introducing swap accounting to cgroup2. For a detailed description and rationale please see patches 1 and 7.

v1 can be found here: https://lwn.net/Articles/667472/

v2 mostly addresses comments by Johannes. For the detailed changelog, see individual patches.

Thanks,

Vladimir Davydov (7):
mm: memcontrol: charge swap to cgroup2
mm: vmscan: pass memcg to get_scan_count()
mm: memcontrol: replace mem_cgroup_lruvec_online with
mem_cgroup_online
swap.h: move memcg related stuff to the end of the file
mm: vmscan: do not scan anon pages if memcg swap limit is hit
mm: free swap cache aggressively if memcg swap is full
Documentation: cgroup: add memory.swap.{current,max} description

 Documentation/cgroup.txt   |  33 ++++++++++
 include/linux/memcontrol.h |  28 ++++-----
 include/linux/swap.h       |  76 ++++++++++++++--------
 mm/memcontrol.c            | 154 ++++++++++++++++++++++++++++++++++++++++++---
 mm/memory.c                |   3 +-
 mm/shmem.c                 |   4 ++
 mm/swap_state.c            |   5 ++
 mm/swapfile.c              |   6 +-
 mm/vmscan.c                |  26 ++++----
 9 files changed, 265 insertions(+), 70 deletions(-)
Signature · 1 line
2.1.4