Re: [PATCH v2 1/6] mm/damon/core: introduce sz_ops_filter_passed_last stat
From: SJ Park
Date: Tue Nov 17 2026 - 20:52:10 EST
On Tue, 17 Nov 2026 23:22:15 +0000 Mattathias Pinchover via B4 Relay <devnull+mattathias.pinchover.uber.com@xxxxxxxxxx> wrote:
> From: Mattathias Pinchover <mattathias.pinchover@xxxxxxxx>
>
> DAMOS stat sz_ops_filter_passed shows the total bytes that passed
> operations layer-handled DAMOS filters, accumulated from the beginning of
> the scheme's execution. Users who want the amount for only the latest
> apply interval, e.g., the size of a workload's anonymous memory that is
> cold as of now, need to keep the previous values in user space and
> compute the difference with the help of nr_snapshots. Because
> nr_snapshots is increased once per target per apply interval, the
> computation is complicated and error-prone, especially for contexts
> having multiple targets.
>
> Introduce a new DAMOS stat, sz_ops_filter_passed_last. It is
> updated at the end of each apply interval of the scheme with the amount
> of sz_ops_filter_passed increase in the interval.
>
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: Mattathias Pinchover <mattathias.pinchover@xxxxxxxx>
Reviewed-by: SJ Park <sj@xxxxxxxxxx>
Thanks,
SJ
[...]