Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] mm/damon: treat DAMOS core filters as a primary target selection method
@ 2026-12-03 15:08 SJ Park
  2026-12-03 15:08 ` [PATCH v2 1/3] mm/damon/tests/core-kunit: drop apply_scheme()-internal filter tests SJ Park
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: SJ Park @ 2026-12-03 15:08 UTC (permalink / raw)
  To: Andrew Morton
  Cc: SJ Park, Brendan Higgins, David Gow, damon, kunit-dev,
	linux-kselftest, linux-mm

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-12-03 15:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 15:08 [PATCH v2 0/3] mm/damon: treat DAMOS core filters as a primary target selection method SJ Park
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:08 ` [PATCH v2 3/3] mm/damon/api: clarify node_eligible_mem_bp is access pattern-eligible SJ Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox