Skip to content

Make workingset detection logic memcg aware

Vladimir Davydov linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm: move workingset_activation under lru_lockmm/swap.c+3 -20 replies
2/3mm: make workingset detection logic memcg awareinclude/linux/mmzone.h include/linux/swap.h mm/filemap.c +3 more+24 -154 replies
3/3mm: workingset: make shadow node shrinker memcg awareinclude/linux/list_lru.h mm/workingset.c+7 -30 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] Make workingset detection logic memcg aware

Hi,

Currently, workingset detection logic is not memcg aware - inactive_age is maintained per zone. As a result, if memory cgroups are used, refaulted file pages are activated randomly. This patch set makes inactive_age per lruvec so that workingset detection will work correctly for memory cgroup reclaim.

Thanks,

Vladimir Davydov (3):
mm: move workingset_activation under lru_lock
mm: make workingset detection logic memcg aware
mm: workingset: make shadow node shrinker memcg aware

 include/linux/list_lru.h |  1 -
 include/linux/mmzone.h   |  7 ++++---
 include/linux/swap.h     |  2 +-
 mm/filemap.c             |  2 +-
 mm/internal.h            |  1 +
 mm/swap.c                |  5 +++--
 mm/vmscan.c              |  2 +-
 mm/workingset.c          | 34 +++++++++++++++++++++++-----------
 8 files changed, 34 insertions(+), 20 deletions(-)
Signature · 1 line
2.1.4