reclaim contended folios asynchronously instead of promoting them
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest2 patches 4 repliesIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mm/rmap: provide folio_referenced with the options to try_lock or lockinclude/ mm/ mm/ | +20 | 0 replies | |
| 2/2 | mm: vmscan: reclaim contended folios asynchronously instead of promoting theminclude/ include/ include/ +3 more | +201 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/2] reclaim contended folios asynchronously instead of promoting them
From: Peifeng Li <[email protected]>
Commit 6d4675e60135 ("mm: don't be stuck to rmap lock on reclaim path") prevents the reclaim path from becoming stuck on the rmap lock. However, it reinserts those folios at the head of the LRU during shrink_folio_list, even if those folios are very cold.
This can have a detrimental effect on performance by increasing refaults and the likelihood of OOM (Out of Memory) killing.
This patchset introduces a new kthread:kshrinkd thread to asynchronously reclaim contended folios rather than promoting them, thereby preventing excessive violations of LRU rules. We observed a noticeable decrease in refaults and OOM killing as a result.
-v2:
* rewrite the commit messages;
* rebase on top of mm-unstable
-v1:
https://lore.kernel.org/linux-mm/[email protected]/
Peifeng Li (2):
mm/rmap: provide folio_referenced with the options to try_lock or lock
mm: vmscan: reclaim contended folios asynchronously instead of
promoting them
include/linux/mmzone.h | 6 + include/linux/rmap.h | 5 +- include/linux/swap.h | 3 + include/linux/vm_event_item.h | 2 + mm/memory_hotplug.c | 2 + mm/rmap.c | 5 +- mm/vmscan.c | 205 +++++++++++++++++++++++++++++++++- mm/vmstat.c | 2 + 8 files changed, 221 insertions(+), 9 deletions(-)
Signature · 1 line
2.34.1