DAMON development mailing list
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "SJ Park" <sj@kernel.org>
Cc: damon@lists.linux.dev
Subject: Re: [RFC PATCH v2] mm/damon/core: reset invalid quota->charge_target_from
Date: Tue, 08 Sep 2026 14:56:12 +0000	[thread overview]
Message-ID: <20260908145620.4164D1F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260908144246.104162-1-sj@kernel.org>

> DAMOS can suddenly stop working if a target process that the quota is
> just fully charged on is terminated.  Fix by catching and processing the
> corner case.
> 
> When DAMOS quota is fully charged, the target and the region to continue
> applying the action in the next round is saved in
> damos_quota->charge_{target,addr}_from.  In the next round, DAMOS
> iterates targets and regions from the beginning.  It skips applying the
> action to the regions until it visits and skips the saved target/region.
> 
> Virtual address space targets become invalid if the process is
> terminated.  Trying to apply the scheme to invalid target is just a
> waste of time.  Hence commit 6e4930e33329 ("mm/damon/core: fix wasteful
> CPU calls by skipping non-existent targets") made the logic to skip
> invalid targets.  However, it does skip before the charged target/region
> [ ... ]
> [1] https://lore.kernel.org/20260830064708.40CA61F000E9@smtp.kernel.org
> 
> Fixes: 6e4930e33329 ("mm/damon/core: fix wasteful CPU calls by skipping non-existent targets")
> Cc: <stable@vger.kernel.org> # 7.0.x
> Signed-off-by: SJ Park <sj@kernel.org>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260908144246.104162-1-sj@kernel.org?part=1


      reply	other threads:[~2026-09-08 14:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-08 14:42 [RFC PATCH v2] mm/damon/core: reset invalid quota->charge_target_from SJ Park
2026-09-08 14:56 ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260908145620.4164D1F00A3A@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=damon@lists.linux.dev \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=sj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox