From: SeongJae Park <sj@kernel.org>
To: SeongJae Park <sj@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>,
damon@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org, linux-mm@kvack.org
Subject: Re: (sashiko review) [RFC PATCH v2 7/9] selftets/damon/_damon_sysfs: support failed region quota charge ratio
Date: Sun, 5 Apr 2026 12:40:56 -0700 [thread overview]
Message-ID: <20260405194057.110507-1-sj@kernel.org> (raw)
In-Reply-To: <20260405151232.102690-8-sj@kernel.org>
TL; DR: sashiko found a typo and a false positive issue. I will fix the typo
in the next revision of this patch.
Forwarding full sashiko review in a reply format with my
inline comments below, for sharing details of my view and
doing followup discussions via mails if needed.
> # review url: https://sashiko.dev/#/patchset/20260405151232.102690-8-sj@kernel.org
> # start of sashiko.dev inline review
> commit 47cf42ea4e5f609d65881ae5f8f8491bb884a8bf
> Author: SeongJae Park <sj@kernel.org>
>
> selftets/damon/_damon_sysfs: support failed region quota charge ratio
>
> This commit extends the _damon_sysfs.py selftests utility to support the
> new DAMOS action failed regions quota charge ratio feature.
>
> > selftets/damon/_damon_sysfs: support failed region quota charge ratio
>
> This isn't a bug, but there is a typo (selftets) in the subject line.
Good eye, I will fix it in the next revision.
>
> > diff --git a/tools/testing/selftests/damon/_damon_sysfs.py b/tools/testing/selftests/damon/_damon_sysfs.py
> > index 2b4df655d9fd0..0f13512fa5e6d 100644
> > --- a/tools/testing/selftests/damon/_damon_sysfs.py
> > +++ b/tools/testing/selftests/damon/_damon_sysfs.py
> [ ... ]
> > @@ -132,14 +132,17 @@ class DamosQuota:
> [ ... ]
> > def __init__(self, sz=0, ms=0, goals=None, goal_tuner='consist',
> > - reset_interval_ms=0, weight_sz_permil=0,
> > - weight_nr_accesses_permil=0, weight_age_permil=0):
> > + reset_interval_ms=0, fail_charge_num=0, fail_charge_denom=0,
> > + weight_sz_permil=0, weight_nr_accesses_permil=0,
> > + weight_age_permil=0):
>
> Will inserting fail_charge_num and fail_charge_denom before the weight
> parameters cause issues for any existing code that passes arguments
> positionally?
>
> Any scripts or in-flight patches instantiating DamosQuota using positional
> arguments for the weight parameters might silently assign those values to
> the new charge ratio variables instead.
>
> Could these optional parameters be added to the end of the argument list to
> avoid altering the existing positional signature?
No. There is no existing code that calls DAmosQuota() with positional
arguments. Hence no change to this patch is needed.
>
>
> # end of sashiko.dev inline review
> # review url: https://sashiko.dev/#/patchset/20260405151232.102690-8-sj@kernel.org
Thanks,
SJ
# hkml [1] generated a draft of this mail. You can regenerate
# this using below command:
#
# hkml patch sashiko_dev --for_forwarding \
# 20260405151232.102690-8-sj@kernel.org
#
# [1] https://github.com/sjp38/hackermail
next prev parent reply other threads:[~2026-04-05 19:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-05 15:12 [RFC PATCH v2 0/9] mm/damon: introduce DAMOS failed region quota charge ratio SeongJae Park
2026-04-05 15:12 ` [RFC PATCH v2 1/9] mm/damon/core: introduce " SeongJae Park
2026-04-05 19:25 ` (sashiko review) " SeongJae Park
2026-04-05 15:12 ` [RFC PATCH v2 2/9] mm/damon/sysfs-schemes: implement fail_charge_{num,denom} files SeongJae Park
2026-04-05 19:30 ` (sashiko review) " SeongJae Park
2026-04-05 15:12 ` [RFC PATCH v2 3/9] Docs/mm/damon/design: document fail_charge_{num,denom} SeongJae Park
2026-04-05 19:34 ` (sashiko review) " SeongJae Park
2026-04-05 15:12 ` [RFC PATCH v2 4/9] Docs/admin-guide/mm/damon/usage: document fail_charge_{num,denom} files SeongJae Park
2026-04-05 15:12 ` [RFC PATCH v2 5/9] Docs/ABI/damon: document fail_charge_{num,denom} SeongJae Park
2026-04-05 15:12 ` [RFC PATCH v2 6/9] mm/damon/tests/core-kunit: test fail_charge_{num,denom} committing SeongJae Park
2026-04-05 15:12 ` [RFC PATCH v2 7/9] selftets/damon/_damon_sysfs: support failed region quota charge ratio SeongJae Park
2026-04-05 19:40 ` SeongJae Park [this message]
2026-04-05 15:12 ` [RFC PATCH v2 8/9] selftests/damon/drgn_dump_damon_status: " SeongJae Park
2026-04-05 15:12 ` [RFC PATCH v2 9/9] selftets/damon/sysfs.py: test " SeongJae 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=20260405194057.110507-1-sj@kernel.org \
--to=sj@kernel.org \
--cc=damon@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=shuah@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