mm/mglru: Don't sync disk for each aging cycle

wakeup_flusher_threads() was added under the assumption that if a system
runs out of clean cold pages, it might want to write back dirty pages more
aggressively so that they can become clean and be dropped.

However, doing so can breach the rate limit a system wants to impose on
writeback, resulting in early SSD wearout.

Link: https://lkml.kernel.org/r/YzSiWq9UEER5LKup@google.com
Fixes: bd74fdaea146 ("mm: multi-gen LRU: support page table walks")
Reported-by: Axel Rasmussen <axelrasmussen@google.com>
Signed-off-by: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Change-Id: Ib4def4286264de926b11ec5247185edc3a780619
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
Yu Zhao 2022-09-28 13:36:58 -06:00 committed by Richard Raya
parent 11be2baf36
commit 24cc942015

View File

@ -3772,8 +3772,6 @@ done:
if (wq_has_sleeper(&lruvec->mm_state.wait)) if (wq_has_sleeper(&lruvec->mm_state.wait))
wake_up_all(&lruvec->mm_state.wait); wake_up_all(&lruvec->mm_state.wait);
wakeup_flusher_threads(0, WB_REASON_VMSCAN);
return true; return true;
} }