2
0

020-v6.1-13-mm-mglru-don-t-sync-disk-for-each-aging-cycle.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. From 92d430e8955c976eacb7cc91d7ff849c0dd009af Mon Sep 17 00:00:00 2001
  2. From: Yu Zhao <[email protected]>
  3. Date: Wed, 28 Sep 2022 13:36:58 -0600
  4. Subject: [PATCH 13/29] mm/mglru: don't sync disk for each aging cycle
  5. wakeup_flusher_threads() was added under the assumption that if a system
  6. runs out of clean cold pages, it might want to write back dirty pages more
  7. aggressively so that they can become clean and be dropped.
  8. However, doing so can breach the rate limit a system wants to impose on
  9. writeback, resulting in early SSD wearout.
  10. Link: https://lkml.kernel.org/r/[email protected]
  11. Fixes: bd74fdaea146 ("mm: multi-gen LRU: support page table walks")
  12. Signed-off-by: Yu Zhao <[email protected]>
  13. Reported-by: Axel Rasmussen <[email protected]>
  14. Signed-off-by: Andrew Morton <[email protected]>
  15. ---
  16. mm/vmscan.c | 2 --
  17. 1 file changed, 2 deletions(-)
  18. --- a/mm/vmscan.c
  19. +++ b/mm/vmscan.c
  20. @@ -4165,8 +4165,6 @@ done:
  21. if (wq_has_sleeper(&lruvec->mm_state.wait))
  22. wake_up_all(&lruvec->mm_state.wait);
  23. - wakeup_flusher_threads(WB_REASON_VMSCAN);
  24. -
  25. return true;
  26. }