From: SeongJae Park <sj@kernel.org>
Cc: SeongJae Park <sj@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
damon@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-mm@kvack.org
Subject: [RFC PATCH 0/2] mm/damon/core: improve DAMOS quota efficiency for core layer filters
Date: Sat, 31 Jan 2026 11:41:41 -0800 [thread overview]
Message-ID: <20260131194145.66286-1-sj@kernel.org> (raw)
Improve two below problematic behaviors of DAMOS that makes it less
efficient when core layer filters are used.
DAMOS generates the under-quota regions prioritization-purpose access
temperature histogram [1] with only the scheme target access pattern.
The DAMOS filters are ignored on the histogram, and this can result in
the scheme not applied to eligible regions. For working around this,
users had to use separate DAMON contexts. The memory tiering approaches
are such examples.
DAMOS splits regions that intersect with address filters, so that only
filtered-out part of the region is skipped. But, the implementation is
skipping the other part of the region that is not filtered out, too. As
a result, DAMOS can work slower than expected.
Improve the two inefficient behaviors with two patches, respectively.
Read the patches for more details about the problem and how those are
fixed.
[1] "Prioritization" section of Documentation/mm/damon/design.rst
SeongJae Park (2):
mm/damon/core: set quota-score histogram with core filters
mm/damon/core: do non-safe region walk on kdamond_apply_schemes()
mm/damon/core.c | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
base-commit: ae5fb88b410209639b49d5d271809fdb614df91f
--
2.47.3
next reply other threads:[~2026-01-31 19:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-31 19:41 SeongJae Park [this message]
2026-01-31 19:41 ` [RFC PATCH 1/2] mm/damon/core: set quota-score histogram with core filters SeongJae Park
2026-01-31 19:41 ` [RFC PATCH 2/2] mm/damon/core: do non-safe region walk on kdamond_apply_schemes() 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=20260131194145.66286-1-sj@kernel.org \
--to=sj@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=damon@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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