Re: [PATCH v5 00/14] mm/mglru: improve reclaim loop and dirty folio handling
From: Barry Song
Date: Sat Apr 18 2026 - 04:56:36 EST
[...]
>
> The performance might behave differently on devices with smaller memory
> (e.g. 8–16GB) compared to servers with 100+GB memory, or under
> moderate to heavy memory pressure.
> Could this be related to patch 09/14[1] which removes folio_inc_gen()
> when ` writeback || (type == LRU_GEN_FILE && dirty)`?
Very unlikely. I think this should be a positive change. Placing dirty
pages in the youngest generation helps avoid unnecessary scanning, and
they can still be rotated to the oldest generation once writeback is
complete.
>
> Any comments or suggestions would be appreciated.
>
> [1] https://lore.kernel.org/linux-mm/20260413-mglru-reclaim-v5-0-8eaeacbddc44@xxxxxxxxxxx/T/#m568eba84d35d8d5ff519d3e29237de6d64f67659
>
Thanks
Barry