Re: [PATCH v3 7/7] mm/mglru: batch move folios to the second-oldest gen's LRU
From: Baolin Wang
Date: Thu Sep 03 2026 - 22:38:34 EST
On 9/2/26 7:24 AM, Barry Song (Xiaomi) wrote:
Detect folios that need to move from the oldest generation to
the second-oldest generation, and batch-move them together.
This can significantly reduce the sys time of inc_min_seq(),
especially when the other type is significantly behind the
preferred type.
Assisted-by: gemini:gemini-3.6-flash
Signed-off-by: Barry Song (Xiaomi) <baohua@xxxxxxxxxx>
Reviewed-by: Baoquan He <baoquan.he@xxxxxxxxx>
Tested-by: Xueyuan Chen <xueyuan.chen21@xxxxxxxxx>
Reviewed-by: Lian Wang <lianux.mm@xxxxxxxxx>
---
I have the same taste as Baoquan[1]. :) Anyway, it's up to you.
Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
[1] https://lore.kernel.org/linux-mm/ao6zFSzx6mOl874A@fedora/#t