Linux Documentation
 help / color / mirror / Atom feed
From: SJ Park <sj@kernel.org>
Cc: SJ Park <sj@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Brendan Higgins <brendan.higgins@linux.dev>,
	David Gow <davidgow@davidgow.net>,
	Jonathan Corbet <corbet@lwn.net>,
	Randy Dunlap <rdunlap@infradead.org>,
	Shuah Khan <skhan@linuxfoundation.org>,
	damon@lists.linux.dev, kunit-dev@googlegroups.com,
	linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org,
	linux-mm@kvack.org
Subject: [RFC PATCH 0/3] mm/damon: treat DAMOS core filters as a primary target selection method
Date: Mon, 30 Nov 2026 07:22:38 -0800	[thread overview]
Message-ID: <20261130152242.90137-1-sj@kernel.org> (raw)

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

There is no real reason to treat DAMOS core filters as a secondary
method, though.  DAMOS stats treat core filter rejections the same to
access pattern-based rejections.  The core filters are effectively
applied for every operation.  The duplicated handling of the filters in
each operation only makes it easy to mistake.

Promote DAMOS core filters to a primary target selection method.  Use it
in the central high level place that DAMOS access pattern is handled.
One consequence of this change is the behavioral change of
eligible_mem_bp DAMOS quota goal type.  It was ignoring core filters.
This change makes it aware of core filters.  It is difficult to imagine
real users that depend on the old behavior.  And the new behavior is
more intuitive in my opinion.

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 design document, via patch 3.

SJ Park (3):
  Revert "mm/damon/tests/core-kunit: test the size charged for a
    filter-trimmed region"
  mm/damon/core: apply damos core filter in __damos_valid_target()
  Docs/mm/damon/design: update node_eligible_mem_bp for changed behavior

 Documentation/mm/damon/design.rst |   4 +-
 mm/damon/core.c                   |  26 +--
 mm/damon/tests/core-kunit.h       | 316 ------------------------------
 3 files changed, 17 insertions(+), 329 deletions(-)


base-commit: 0bbbdf85abf48b019cb8dd7a6e87f0a8995fdcd2
-- 
2.47.3

             reply	other threads:[~2026-11-30 15:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 15:22 SJ Park [this message]
2026-11-30 15:22 ` [RFC PATCH 3/3] Docs/mm/damon/design: update node_eligible_mem_bp for changed behavior 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=20261130152242.90137-1-sj@kernel.org \
    --to=sj@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=brendan.higgins@linux.dev \
    --cc=corbet@lwn.net \
    --cc=damon@lists.linux.dev \
    --cc=davidgow@davidgow.net \
    --cc=kunit-dev@googlegroups.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=rdunlap@infradead.org \
    --cc=skhan@linuxfoundation.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