Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] mm/damon: treat DAMOS core filters as a primary target selection method
@ 2026-11-30 15:22 SJ Park
  2026-11-30 15:22 ` [RFC PATCH 1/3] Revert "mm/damon/tests/core-kunit: test the size charged for a filter-trimmed region" SJ Park
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: SJ Park @ 2026-11-30 15:22 UTC (permalink / raw)
  Cc: SJ Park, Andrew Morton, Brendan Higgins, David Gow,
	Jonathan Corbet, Randy Dunlap, Shuah Khan, damon, kunit-dev,
	linux-doc, linux-kselftest, linux-mm

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


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

end of thread, other threads:[~2026-11-30 15:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 15:22 [RFC PATCH 0/3] mm/damon: treat DAMOS core filters as a primary target selection method SJ Park
2026-11-30 15:22 ` [RFC PATCH 1/3] Revert "mm/damon/tests/core-kunit: test the size charged for a filter-trimmed region" SJ Park
2026-11-30 15:32   ` sashiko-bot
2026-11-30 15:22 ` [RFC PATCH 2/3] mm/damon/core: apply damos core filter in __damos_valid_target() SJ Park
2026-11-30 15:22 ` [RFC PATCH 3/3] Docs/mm/damon/design: update node_eligible_mem_bp for changed behavior SJ Park

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