Re: [PATCH v2.1] mm/damon/core: fix false positive in damos_quota_is_full() when esz is zero
From: SJ Park
Date: Thu Sep 03 2026 - 10:19:54 EST
On Thu, 3 Sep 2026 20:41:48 +0800 Liew Rui Yan <aethernet65535@xxxxxxxxx> wrote:
> On Wed, 02 Sep 2026 17:33:50 -0700 SJ Park <sj@xxxxxxxxxx> wrote:
>
> > On Thu, 3 Sep 2026 06:31:38 +0800 Liew Rui Yan <aethernet65535@xxxxxxxxx> wrote:
[...]
> First, I would like to clarify my intention to avoid any
> misunderstanding. My actual goal is to fix the semantic of the
> qt_exceeds statistic, rather than necessarily changing the underlying
> logic of damos_quota_is_full().
>
> Currently, there is an issue with how qt_exceeds is incremented. When
> the quota is set very small, qt_exceeds increases frequently. This
> produces a statistical trend that looks almost identical to the
> continuous increments caused by the Temporal Goal being achieved.
>
> The original intent of introducing qt_exceeds is to let users easily
> notice if the quota is too small.
>
> Commit Messages [1]:
>
> mm/damon/schemes: account how many times quota limit has exceeded
>
> If the time/space quotas of a given DAMON-based operation scheme is too
> small, the scheme could show unexpectedly slow progress. However, there
> is no good way to notice the case in runtime. This commit extends the
> DAMOS stat to provide how many times the quota limits exceeded so that
> the users can easily notice the case and tune the scheme.
>
> However, under the current behavior, users are forced to manually ignore
> or filter out the qt_exceeds increments that occur after the Temporal
> Goal is achieved. This adds an unnecessary burden to the users and
> contradicts the core goal of making it "easy" for them to tune the
> scheme.
Still I feel the problem is unclear. Why the users need to manually ignore or
filter out the increments under what situation? Knowing specific and detailed
case would be helpful. Are you or some people you know doing that and feeling
it is too much? If so, what is the real use case? For what purpose and how
DAMON is being used? Why and how the ignorance of qt_exceeds is being done and
how painful it is?
Thanks,
SJ
[...]