* [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 3/3] Docs/mm/damon/design: update node_eligible_mem_bp for changed behavior SJ Park
0 siblings, 1 reply; 2+ 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] 2+ messages in thread* [RFC PATCH 3/3] Docs/mm/damon/design: update node_eligible_mem_bp for changed behavior
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 ` SJ Park
0 siblings, 0 replies; 2+ messages in thread
From: SJ Park @ 2026-11-30 15:22 UTC (permalink / raw)
Cc: SJ Park, Jonathan Corbet, Randy Dunlap, Shuah Khan, damon,
linux-doc, linux-mm
DAMOS quota goal type node_eligible_mem_bp quota was accounting for
regions that were eligible by only the DAMOS access pattern. The
behavior is now changed to also account for DAMOS core filters. Update
the document to cover the new behavior.
Signed-off-by: SJ Park <sj@kernel.org>
---
Documentation/mm/damon/design.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/design.rst
index 70baeef7ec91..5d383fb7ba4c 100644
--- a/Documentation/mm/damon/design.rst
+++ b/Documentation/mm/damon/design.rst
@@ -774,8 +774,8 @@ auto-tuning mechanism tries to make ``current_value`` of ``complement``-ed
(1/10,000).
- ``inactive_mem_bp``: Inactive to active + inactive (LRU) memory size ratio in
bp (1/10,000).
-- ``node_eligible_mem_bp``: Scheme target access pattern-eligible memory ratio
- of a node in bp (1/10,000).
+- ``node_eligible_mem_bp``: Scheme action eligible memory ratio of a node in bp
+ (1/10,000).
- ``hugepage_mem_bp``: Total huge page to total used memory ratio in bp
(1/10,000).
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-30 15:22 UTC | newest]
Thread overview: 2+ 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 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