From: SJ Park <sj@kernel.org>
To: sashiko-bot@kernel.org
Cc: SJ Park <sj@kernel.org>, damon@lists.linux.dev
Subject: Re: [RFC PATCH v4 5/7] Docs/mm/damon/design: document damos quota goal complement flag
Date: Sun, 27 Sep 2026 05:35:13 -0700 [thread overview]
Message-ID: <20260927123514.58286-1-sj@kernel.org> (raw)
In-Reply-To: <20260927121315.D21FD1F00893@smtp.kernel.org>
On Sun, 27 Sep 2026 12:13:15 +0000 sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Low] kselftest/damon: missing sysfs test coverage for quota goal complement
> --
>
> commit d3c6455ce7af443b98334d4d8484051c2827e265
> Author: SJ Park <sj@kernel.org>
>
> Docs/mm/damon/design: document damos quota goal complement flag
>
> Update DAMON design document for the newly added damos quota goal metric
> value complement flag.
>
> > diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/design.rst
> > index e82390e77a70a..5cd651b1b7aa8 100644
> > --- a/Documentation/mm/damon/design.rst
> > +++ b/Documentation/mm/damon/design.rst
> > @@ -702,10 +702,10 @@ There are two such tuning algorithms that users can select as they need.
> > that the zero quota is a valid quota, and therefore ``qt_exceeds`` :ref:`stat
> > <damon_design_damos_stat>` will keep increasing in this case.
> >
> > -The goal can be specified with five parameters, namely ``target_metric``,
> > -``target_value``, ``current_value``, ``nid`` and ``path``. The auto-tuning
> > -mechanism tries to make ``current_value`` of ``target_metric`` be same to
> > -``target_value``.
> > +The goal can be specified with six parameters, namely ``target_metric``,
> > +``complement``, ``target_value``, ``current_value``, ``nid`` and ``path``. The
> > +auto-tuning mechanism tries to make ``current_value`` of ``complement``-ed
> > +``target_metric`` be same to ``target_value``.
>
> [Severity: Low]
> Does the kselftest framework need to be updated to cover this new parameter?
>
> Looking at the selftests, test_goal() in
> tools/testing/selftests/damon/sysfs.sh explicitly tests for target_metric and
> other parameters, but lacks a check for the newly added complement parameter:
>
> ensure_file "$goal_dir/target_metric" "exist" "600"
>
> Additionally, DamosQuotaGoal.stage() in
> tools/testing/selftests/damon/_damon_sysfs.py provides no fields or logic to
> set complement:
>
> err = write_file(os.path.join(self.sysfs_dir(), 'target_metric'),
> self.metric)
>
> Could we add these test parameters to ensure the new sysfs feature is covered
> by the existing framework?
good catches. Not blockers of this series, though.
>
> --
> Sashiko AI review · https://sashiko.dev/#/patchset/20260927120533.50484-1-sj@kernel.org?part=5
>
Thanks,
SJ
next prev parent reply other threads:[~2026-09-27 12:35 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-27 12:05 [RFC PATCH v4 0/7] snapshot_set_swap_area() unpins the previously selected swap device and SJ Park
2026-09-27 12:05 ` [RFC PATCH v4 1/7] mm/damon/core: introduce damos_quota_goal->complement SJ Park
2026-09-27 12:17 ` sashiko-bot
2026-09-27 12:22 ` SJ Park
2026-09-27 12:05 ` [RFC PATCH v4 2/7] mm/damon/core: add complement argument to damos_new_quota_goal() SJ Park
2026-09-27 12:12 ` sashiko-bot
2026-09-27 12:30 ` SJ Park
2026-09-27 12:05 ` [RFC PATCH v4 3/7] mm/damon/sysfs-schemes: support quota goal complement flag SJ Park
2026-09-27 12:19 ` sashiko-bot
2026-09-27 12:31 ` SJ Park
2026-09-27 12:05 ` [RFC PATCH v4 4/7] mm/damon/tests/core-kunit: test quota_goal->complement commit SJ Park
2026-09-27 12:13 ` sashiko-bot
2026-09-27 12:05 ` [RFC PATCH v4 5/7] Docs/mm/damon/design: document damos quota goal complement flag SJ Park
2026-09-27 12:13 ` sashiko-bot
2026-09-27 12:35 ` SJ Park [this message]
2026-09-27 12:05 ` [RFC PATCH v4 6/7] Docs/admin-guide/mm/damon/usage: update for quota goal complement file SJ Park
2026-09-27 12:13 ` sashiko-bot
2026-09-27 12:36 ` SJ Park
2026-09-27 12:05 ` [RFC PATCH v4 7/7] Docs/ABI/damon: update for quota goal metric complement sysfs file SJ Park
2026-09-27 12:14 ` sashiko-bot
2026-09-27 12:37 ` SJ Park
2026-09-27 13:05 ` [RFC PATCH v4 0/7] mm/damon: introduce damos quota goal target metric complement flag (was: "Re: [RFC PATCH v4 0/7] snapshot_set_swap_area() unpins the previously selected swap device and") SJ Park
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=20260927123514.58286-1-sj@kernel.org \
--to=sj@kernel.org \
--cc=damon@lists.linux.dev \
--cc=sashiko-bot@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