Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 6.12 0/2] mm: vmscan: fix dirty folios throttling on cgroup v1 for MGLRU
@ 2026-10-24  5:35 Leno Hou via B4 Relay
  2026-10-24  5:35 ` [PATCH PATCH 6.12 1/2] mm/vmscan: wake up flushers conditionally to avoid cgroup OOM Leno Hou via B4 Relay
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Leno Hou via B4 Relay @ 2026-10-24  5:35 UTC (permalink / raw)
  To: stable
  Cc: Leno Hou, Wei Xu, Zeng Jingxiang, Kairui Song, Chris Li,
	T.J. Mercier, Yu Zhao, Andrew Morton, Baolin Wang, Barry Song,
	Johannes Weiner, Shakeel Butt, Axel Rasmussen, David Hildenbrand,
	Lorenzo Stoakes (Oracle), Michal Hocko, Qi Zheng, Yuanchu Xie

The series backports the following upstream commits:

1. 1bc542c6a0d1 ("mm/vmscan: wake up flushers conditionally to avoid cgroup OOM")
2. 13b6b6209104 ("mm: vmscan: fix dirty folios throttling on cgroup v1 for MGLRU")

Patch 1 wakes up flushers conditionally when a memcg is about to OOM due
to dirty caches.  It restores the flusher wakeup that was removed by
14aa8b2d5c2e ("mm/mglru: don't sync disk for each aging cycle").

Patch 2 handles cgroup v1, where balance_dirty_pages() does not throttle
dirty folios.  See 9badce000e2c ("cgroup, writeback: don't enable cgroup
writeback on traditional hierarchies").  After 6b0dfabb3555 ("fs: Remove
aops->writepage"), reclaim no longer writes back filesystem folios
directly.  On large memory systems, the flusher may not be able to write
back quickly enough, leaving many folios already under writeback.  Since
MGLRU cannot reclaim these dirty folios, the system may run out of memory
and trigger the OOM killer.  Patch 2 throttles reclaim after waking up
the flusher for cgroup v1, similar to 81a70c21d917
("mm/cgroup/reclaim: fix dirty pages throttling on cgroup v1").

Signed-off-by: Leno Hou <lenohou@gmail.com>
---
Changes in v2:
- Link to v1: https://patch.msgid.link/20261024-linux-6-1-y-v1-0-cf381365f30b@gmail.com

---
Leno Hou (2):
      mm/vmscan: wake up flushers conditionally to avoid cgroup OOM
      mm: vmscan: fix dirty folios throttling on cgroup v1 for MGLRU

 mm/vmscan.c | 36 ++++++++++++++++++++++++++++++++++--
 1 file changed, 34 insertions(+), 2 deletions(-)
---
base-commit: 0aebf2870d53a8d97e02a99e2103ea0b38950c1b
change-id: 20261024-fix-mglru-v6-6-v2-d8bc9d4183c7

Best regards,
--  
Leno Hou <lenohou@gmail.com>



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-10-27 16:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-24  5:35 [PATCH 6.12 0/2] mm: vmscan: fix dirty folios throttling on cgroup v1 for MGLRU Leno Hou via B4 Relay
2026-10-24  5:35 ` [PATCH PATCH 6.12 1/2] mm/vmscan: wake up flushers conditionally to avoid cgroup OOM Leno Hou via B4 Relay
2026-10-24  5:35 ` [PATCH PATCH 6.12 2/2] mm: vmscan: fix dirty folios throttling on cgroup v1 for MGLRU Leno Hou via B4 Relay
2026-10-26 15:50 ` [PATCH 6.12 0/2] " Leno Hou
2026-10-26 18:08   ` Greg KH
2026-10-27 16:39     ` Leno Hou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox