DAMON development mailing list
 help / color / mirror / Atom feed
From: SJ Park <sj@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: SJ Park <sj@kernel.org>,
	Brendan Higgins <brendan.higgins@linux.dev>,
	David Gow <davidgow@davidgow.net>,
	damon@lists.linux.dev, kunit-dev@googlegroups.com,
	linux-kselftest@vger.kernel.org, linux-mm@kvack.org
Subject: [PATCH v2 0/3] mm/damon: treat DAMOS core filters as a primary target selection method
Date: Thu,  3 Dec 2026 07:08:16 -0800	[thread overview]
Message-ID: <20261203150821.730276-1-sj@kernel.org> (raw)

DAMOS access pattern and core filters are treated as a primary and a
secondary target region selection method, respectively.  DAMOS target
regions are initially selected with the access pattern.  Later core
filters are applied additionally when needed, in the middle of lower
level operations.  DAMOS quota goal type eligible_mem_bp is ignoring the
core filters.

Core filters are effectively applied on all places that
damos_access_pattern is applied, except the eligible_mem_bp DAMOS quota
goal type handling.

Promote DAMOS core filters to a primary target selection method.  Use it
in the central high level place that the damos_access_pattern is
handled. Split out damos_access_pattern to a function and call it
directly from the eligible_mem_bp handling, to keep the old behavior.

Remove unit tests that were too duplicated and will fail after the
change, via patch 1.  Make the promotion via patch 2.  Clarify the
changed eligible_mem_bp behavior on the kernel-doc comment, via patch 3.

Changes from v1
- v1: https://lore.kernel.org/20261202151518.618069-1-sj@kernel.org
- Restore eligible_mem_bp behavior.
- Wordsmith commit message.
Changes from RFC v2
- RFC v2: https://lore.kernel.org/20261201145302.91868-1-sj@kernel.org
- Rebase to the latest mm-new.
- Drop RFC.
Changes from RFC
- RFC: https://lore.kernel.org/20261130152242.90137-1-sj@kernel.org
- Restore dasmos_test_apply_scheme_quota_sz().
- Rebase to the latest mm-new.

SJ Park (3):
  mm/damon/tests/core-kunit: drop apply_scheme()-internal filter tests
  mm/damon/core: apply damos core filter in __damos_valid_target()
  mm/damon/api: clarify node_eligible_mem_bp is access pattern-eligible

 include/linux/damon.h       |   5 +-
 mm/damon/core.c             |  31 ++++--
 mm/damon/tests/core-kunit.h | 210 ------------------------------------
 3 files changed, 23 insertions(+), 223 deletions(-)


base-commit: 1a7610248a3802e38124ce66b07eef12277be9a0
-- 
2.47.3

             reply	other threads:[~2026-12-03 15:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 15:08 SJ Park [this message]
2026-12-03 15:08 ` [PATCH v2 1/3] mm/damon/tests/core-kunit: drop apply_scheme()-internal filter tests SJ Park
2026-12-03 15:19   ` sashiko-bot
2026-12-03 15:36     ` SJ Park
2026-12-03 15:08 ` [PATCH v2 2/3] mm/damon/core: apply damos core filter in __damos_valid_target() SJ Park
2026-12-03 15:26   ` sashiko-bot
2026-12-03 15:40     ` SJ Park
2026-12-03 15:08 ` [PATCH v2 3/3] mm/damon/api: clarify node_eligible_mem_bp is access pattern-eligible SJ Park
2026-12-03 15:26 ` [PATCH v2 0/3] mm/damon: treat DAMOS core filters as a primary target selection method sashiko-bot
2026-12-03 15:42 ` 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=20261203150821.730276-1-sj@kernel.org \
    --to=sj@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=brendan.higgins@linux.dev \
    --cc=damon@lists.linux.dev \
    --cc=davidgow@davidgow.net \
    --cc=kunit-dev@googlegroups.com \
    --cc=linux-kselftest@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