Re: [PATCH mm-new v3] mm/memcontrol: Add memory.stat_refresh for on-demand stats flushing

From: Michal Koutný

Date: Wed Nov 12 2025 - 09:02:16 EST


On Wed, Nov 12, 2025 at 08:56:28AM +0800, Chen Ridong <chenridong@xxxxxxxxxxxxxxx> wrote:
> However, this fails the LTP test quite easily. The error logs come directly from LTP. The issue
> occurs because the threshold isn’t reached, resulting in an RSS value of 0. We tried increasing the
> memory allocated by the LTP case, but that wasn’t the right solution.

You touched on a slightly different cause (other than async flushing)
-- there are other fields/stats that are quantified by (basic) page
size. I.e. I think that might need different/more central solution, e.g.
working with absolute (not relative to pagesize) thresholds if absolute
precision is needed.


Thanks,
Michal

Attachment: signature.asc
Description: PGP signature