* [RFC PATCH 0/2] mm/damon/Kconfig: update documentation for features and kunit scopes
@ 2026-11-28 23:01 SJ Park
2026-11-28 23:01 ` [RFC PATCH 1/2] mm/damon/Kconfig: update for features other than access monitoring SJ Park
2026-11-28 23:01 ` [RFC PATCH 2/2] mm/damon/Kconfig: clarify kunit scope of kunit configs SJ Park
0 siblings, 2 replies; 3+ messages in thread
From: SJ Park @ 2026-11-28 23:01 UTC (permalink / raw)
Cc: SJ Park, Andrew Morton, Brendan Higgins, David Gow, damon,
kunit-dev, linux-kselftest, linux-mm
At the beginning, DAMON was doing only data access monitoring. DAMON
evolved a lot to do many more works in addition to the access
monitoring. Kconfig documentation is not updated for the fact. It also
does not clearly explain the kunit test scopes.
Update the documentation for all features via patch 1. Clarify the
kunit test scope via patch 2.
SJ Park (2):
mm/damon/Kconfig: update for features other than access monitoring
mm/damon/Kconfig: clarify kunit scope of kunit configs
mm/damon/Kconfig | 33 ++++++++++++++++-----------------
1 file changed, 16 insertions(+), 17 deletions(-)
base-commit: 23cd682622886800b912219e307cf46a99f69c10
--
2.47.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* [RFC PATCH 1/2] mm/damon/Kconfig: update for features other than access monitoring
2026-11-28 23:01 [RFC PATCH 0/2] mm/damon/Kconfig: update documentation for features and kunit scopes SJ Park
@ 2026-11-28 23:01 ` SJ Park
2026-11-28 23:01 ` [RFC PATCH 2/2] mm/damon/Kconfig: clarify kunit scope of kunit configs SJ Park
1 sibling, 0 replies; 3+ messages in thread
From: SJ Park @ 2026-11-28 23:01 UTC (permalink / raw)
Cc: SJ Park, Andrew Morton, damon, linux-mm
DAMON was initially introduced as a data access monitoring tool. It has
been extended for access-aware system operations with DAMOS. Recently
it has further extended for general data attributes monitoring and
attributes aware operations. The Kconfig documentation is still
introducing DAMON as a data access monitoring framework. Update the
documentation.
Signed-off-by: SJ Park <sj@kernel.org>
---
mm/damon/Kconfig | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/mm/damon/Kconfig b/mm/damon/Kconfig
index a33f21c56347..651b4fd1a844 100644
--- a/mm/damon/Kconfig
+++ b/mm/damon/Kconfig
@@ -1,13 +1,12 @@
# SPDX-License-Identifier: GPL-2.0-only
-menu "Data Access Monitoring"
+menu "Data access/attribute monitoring and operation"
config DAMON
- bool "DAMON: Data Access Monitoring Framework"
+ bool "Build DAMON core"
help
- This builds a framework that allows kernel subsystems to monitor
- access frequency of each memory region. The information can be useful
- for performance-centric DRAM level memory management.
+ This builds the core of DAMON, which allows efficient data
+ access/attribute monitoring and operations.
See https://www.kernel.org/doc/html/latest/mm/damon/index.html for
more information.
@@ -36,22 +35,22 @@ config DAMON_KUNIT_TEST
If unsure, say N.
config DAMON_VADDR
- bool "Data access monitoring operations for virtual address spaces"
+ bool "DAMON operation set for virtual address spaces"
depends on DAMON && MMU
select PAGE_IDLE_FLAG
default DAMON
help
- This builds the default data access monitoring operations for DAMON
- that work for virtual address spaces.
+ This builds the default DAMON operation set that works for virtual
+ address spaces.
config DAMON_PADDR
- bool "Data access monitoring operations for the physical address space"
+ bool "DAMON operation set for the physical address space"
depends on DAMON && MMU
select PAGE_IDLE_FLAG
default DAMON
help
- This builds the default data access monitoring operations for DAMON
- that works for the physical address space.
+ This builds the default DAMON operation set that works for the
+ physical address space.
config DAMON_VADDR_KUNIT_TEST
bool "Test for DAMON operations" if !KUNIT_ALL_TESTS
@@ -83,7 +82,7 @@ config DAMON_SYSFS
default DAMON
help
This builds the sysfs interface for DAMON. The user space can use
- the interface for arbitrary data access monitoring.
+ the interface for data access/attribute monitoring and operations.
config DAMON_SYSFS_KUNIT_TEST
bool "Test for damon sysfs interface" if !KUNIT_ALL_TESTS
--
2.47.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [RFC PATCH 2/2] mm/damon/Kconfig: clarify kunit scope of kunit configs
2026-11-28 23:01 [RFC PATCH 0/2] mm/damon/Kconfig: update documentation for features and kunit scopes SJ Park
2026-11-28 23:01 ` [RFC PATCH 1/2] mm/damon/Kconfig: update for features other than access monitoring SJ Park
@ 2026-11-28 23:01 ` SJ Park
1 sibling, 0 replies; 3+ messages in thread
From: SJ Park @ 2026-11-28 23:01 UTC (permalink / raw)
Cc: SJ Park, Andrew Morton, Brendan Higgins, David Gow, damon,
kunit-dev, linux-kselftest, linux-mm
The prompts for DAMON kunit configs are not clearly saying it is for
kunit tests. DAMON_KUNIT_TEST is only for the core layer, but the help
message is not clarifying that. Clarify those.
Signed-off-by: SJ Park <sj@kernel.org>
---
mm/damon/Kconfig | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/mm/damon/Kconfig b/mm/damon/Kconfig
index 651b4fd1a844..7054fc8f3196 100644
--- a/mm/damon/Kconfig
+++ b/mm/damon/Kconfig
@@ -23,11 +23,11 @@ config DAMON_DEBUG_SANITY
If unsure, say N.
config DAMON_KUNIT_TEST
- bool "Test for damon" if !KUNIT_ALL_TESTS
+ bool "Kunit tests for DAMON core" if !KUNIT_ALL_TESTS
depends on DAMON && KUNIT=y
default KUNIT_ALL_TESTS
help
- This builds the DAMON Kunit test suite.
+ This builds the DAMON Kunit test suite for DAMON core.
For more information on KUnit and unit tests in general, please refer
to the KUnit documentation.
@@ -53,7 +53,7 @@ config DAMON_PADDR
physical address space.
config DAMON_VADDR_KUNIT_TEST
- bool "Test for DAMON operations" if !KUNIT_ALL_TESTS
+ bool "KUnit tests for DAMON virtual address operations" if !KUNIT_ALL_TESTS
depends on DAMON_VADDR && KUNIT=y
default KUNIT_ALL_TESTS
help
@@ -65,7 +65,7 @@ config DAMON_VADDR_KUNIT_TEST
If unsure, say N.
config DAMON_PADDR_KUNIT_TEST
- bool "Tets for DAMON physical address operations" if !KUNIT_ALL_TESTS
+ bool "KUnit tests for DAMON physical address operations" if !KUNIT_ALL_TESTS
depends on DAMON_PADDR && KUNIT=y
default KUNIT_ALL_TESTS
help
@@ -85,7 +85,7 @@ config DAMON_SYSFS
the interface for data access/attribute monitoring and operations.
config DAMON_SYSFS_KUNIT_TEST
- bool "Test for damon sysfs interface" if !KUNIT_ALL_TESTS
+ bool "KUnit tests for DAMON sysfs interface" if !KUNIT_ALL_TESTS
depends on DAMON_SYSFS && KUNIT=y
default KUNIT_ALL_TESTS
help
--
2.47.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-28 23:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-28 23:01 [RFC PATCH 0/2] mm/damon/Kconfig: update documentation for features and kunit scopes SJ Park
2026-11-28 23:01 ` [RFC PATCH 1/2] mm/damon/Kconfig: update for features other than access monitoring SJ Park
2026-11-28 23:01 ` [RFC PATCH 2/2] mm/damon/Kconfig: clarify kunit scope of kunit configs SJ Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox