Re: [RFC PATCH v2 4/5] mm: mglru: run aging when pages are severely imbalanced across gens

From: Zicheng Wang

Date: Tue Jul 28 2026 - 00:12:46 EST


Hi Barry, lyugaofei,

The cover letter results look good.

This change looks like it resolves the cross-type skew from 798c0330c2ca
[1] (if I understand correctly).

But:

removed (798c0330c2ca): old * 4 < total
4/5: old * 4 < young

Can a single type also skew, and does changing total to young have any
downside?

Nit: the old form derived the constant from (MIN_NR_GENS + 2).

[1] https://lore.kernel.org/all/20241231043538.4075764-4-yuzhao@xxxxxxxxxx/

Best,
Zicheng