add experts from Linux and Google. 在 2024/2/19 22:17, lipeifeng@xxxxxxxx 写道:
From: lipeifeng <lipeifeng@xxxxxxxx> 'commit 6d4675e60135 ("mm: don't be stuck to rmap lock on reclaim path")' The above patch would avoid reclaim path to stuck rmap lock. But it would cause some folios in LRU not sorted by aging because the contended-folios in rmap_walk would be putbacked to the head of LRU during shrink_folio_list even if the folios are very cold. The patchset setups new kthread:kshrinkd to reclaim the contended-folio in rmap_walk when shrink_folio_list, to avoid to break the rules of LRU. lipeifeng (2): mm/rmap: support folio_referenced to control if try_lock in rmap_walk mm: support kshrinkd 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(-)