Skip to content

RFC Fix halted scanning of swap-cache folios

Thomas Hellström intel-xe linux-mm lkml llvm oe-kbuild-all 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1mm: vmscan: keep anon scanning enabled when swapcache folios are presentmm/vmscan.c+19 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/1] Fix halted scanning of swap-cache folios

While experimenting with an interface for inserting isolated dirty GPU folios directly into the swap-cache for backup, I noticed that when the number of swap entries were almost exhausted, scanning and freeing of these pages already inserted into the swapc-cache stopped.

Apparently there are guards that stop LRU scanning of anonymous pages when the number of free swap entries are low. However that also blocks pages already present in the swap cache from being scanned and freed.

Not sure whether that is intentional, but anyway I'm sending a patch that implements one (crude) way of fixing the problem.

Cc Andrew Morton <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Qi Zheng <[email protected]>
Cc Shakeel Butt <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Axel Rasmussen <[email protected]>
Cc Yuanchu Xie <[email protected]>
Cc Wei Xu <[email protected]>
Cc Brian Geffon <[email protected]>
Cc Steven Barrett <[email protected]>
Cc Oleksandr Natalenko <[email protected]>

Thomas Hellström (1):
mm: vmscan: keep anon scanning enabled when swapcache folios are
present

 mm/vmscan.c | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)
Signature · 1 line
2.53.0