Re: [PATCH] selftests/damon/damos_quota: skip the last sample when counting exceeds

From: SJ Park

Date: Tue Nov 17 2026 - 09:41:46 EST


Hello Aveline,

On Tue, 17 Nov 2026 17:25:36 +1100 Aveline Noir <jm5905938@xxxxxxxxx> wrote:

> damos_quota.py expects qt_exceeds to be increased for every sample whose
> tried_bytes equals the quota. The kernel increases it only when the next
> quota window starts, so the last full window may still be pending when
> the workload exits. The test then fails with an expected count one
> higher than the actual one, e.g., 15 < 16.
>
> Do not count the last sample. Also drop the sorting of the samples, so
> that the last one is the latest.

Looks good to me, thank you for this patch.

>
> Signed-off-by: Aveline Noir <jm5905938@xxxxxxxxx>

Reviewed-by: SJ Park <sj@xxxxxxxxxx>

This patch is applied to damon/next [1] tree. I will repost it soon (~1 week)
as an mm.git merge request. So, no action from your side is needed for now.

[1] https://origin.kernel.org/doc/html/latest/mm/damon/maintainer-profile.html#scm-trees


Thanks,
SJ

[...]