From: Yifan Feng <evanfengff@gmail.com>
To: SJ Park <sj@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
damon@lists.linux.dev, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] mm/damon/core: do not overwrite wmarks.activated in damos_commit()
Date: Sun, 22 Nov 2026 15:46:32 -0800 [thread overview]
Message-ID: <20261122234633.89529-1-evanfengff@gmail.com> (raw)
In-Reply-To: <20261122012222.148520-1-sj@kernel.org>
On Sat, 21 Nov 2026 17:22:22 -0800 SJ Park <sj@kernel.org> wrote:
[...]
> > Do not restore
> > it for DAMOS_WMARK_NONE, because nothing sets it again in that case and
> > the scheme would stay off.
>
> Is this really necessary? If not, I'd prefer restoring it always for
> simplicity.
Thanks for the quick review.
I think it is needed. With DAMOS_WMARK_NONE, damos_wmark_wait_us()
returns 0 before it touches 'activated'. So if the scheme is
deactivated when the metric is changed to none, nothing activates it
again.
I tried restoring it always. I deactivated a scheme by the watermarks
(free memory rate above high), then set the metric to none and
committed. After that update_schemes_tried_regions never returned on
my test kernel (it does not have the damos_walk() fix yet). With the
check, the scheme is applied again after the commit.
Thanks,
Yifan
next prev parent reply other threads:[~2026-11-22 23:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 0:29 [PATCH] mm/damon/core: do not overwrite wmarks.activated in damos_commit() Yifan Feng
2026-11-22 0:33 ` sashiko-bot
2026-11-22 1:22 ` SJ Park
2026-11-22 23:46 ` Yifan Feng [this message]
2026-11-22 23:49 ` SJ Park
2026-11-23 0:01 ` 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=20261122234633.89529-1-evanfengff@gmail.com \
--to=evanfengff@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=damon@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=sj@kernel.org \
--cc=stable@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.