RFC Fix halted scanning of swap-cache folios
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest1 patch 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | mm: vmscan: keep anon scanning enabled when swapcache folios are presentmm/ | +19 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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.
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