Skip to content

mm/vmscan: remove obsolete offlined memcg reclaim handling

T.J. Mercier cgroups linux-doc linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm/vmscan: remove redundant !mem_cgroup_online() checksinclude/linux/mmzone.h mm/vmscan.c+9 -277 replies
2/2mm/mglru: stop rotating offlined memcgs to the old generationDocumentation/mm/multigen_lru.rst include/linux/mmzone.h mm/memcontrol.c +1 more+5 -347 replies

Reviews trailers per patch

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

PatchBalbir SinghKairui SongBarry SongJohannes WeinerShakeel ButtBaolin Wang
1/2A-b R-b R-b R-b A-b
2/2A-b R-b R-b R-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 6 reviewers.

Read the v1 thread

Cover letter [PATCH 0/2] mm/vmscan: remove obsolete offlined memcg reclaim handling

Since commit f1cf8d2f36dc ("mm: memcontrol: eliminate the problem of dying memory cgroup for LRU folios") and commit 0e0ac326c511 ("memcg:
move LRU size accounting on reparenting instead of copying it"), LRU folios and their size accounting are reparented to the parent memcg before a memcg is offlined, leaving the offlined memcg's lruvec permanently empty.

This series removes the remaining reclaim special-casing for offlined memcgs that assumed they could still hold LRU folios:
1. Remove redundant !mem_cgroup_online() checks in vmscan.c
2. Stop rotating offlined memcgs to the head of the old generation (MEMCG_LRU_OLD) in MGLRU.

T.J. Mercier (2):
mm/vmscan: remove redundant !mem_cgroup_online() checks mm/mglru: stop rotating offlined memcgs to the old generation

 Documentation/mm/multigen_lru.rst |  4 +--
 include/linux/mmzone.h            | 22 +++++---------
 mm/memcontrol.c                   |  1 -
 mm/vmscan.c                       | 48 ++++---------------------------
 4 files changed, 14 insertions(+), 61 deletions(-)

base-commit: 2bba28e98578de622ef307d00875aa8f8bca3d10

Signature · 1 line
2.56.0.307.g5fe7bd680c-goog