[PATCH 0/9] mm/damon: various fixes and cleanup of code, test, and docs

From: SJ Park

Date: Mon Nov 02 2026 - 13:14:46 EST


Fix and cleanup various parts of DAMON including its code, test, and
documentation.

Optimize the efficiency and monitoring accuracy of DAMON code with the
first five patches. Remove unnecessary initializations in
damon_new_ctx() with patch 1 from Adrian Huang (Lenovo). Align MMU
notifier ranges when clearing PTE/PMD young bits with patches 2 and 3
from Shubhang Kaushik (Ampere) and Aveline Noir. Avoid DAMON_STAT idle
time percentile overflow on 32-bit architectures, and optimize out
unnecessary folio LRU isolation from DAMOS_MIGRATE action, with
patches 4 and 5 from Aveline Noir, respectively.

Fix and cleanup tests and documents with remaining four patches. Let
sysfs.py test does not hang when it is executed under interactive
terminal with patch 6 from Jaeyeong Lee. Fix typos, grammatical errors
and styles in DAMON_RECLAIM comments and DAMON_LRU_SORT user documents
with patches 7 and 8 from Manuel. Finally, document how to disable
watermarks of DAMON_RECLAIM with patch 9 from Jinjie Ruan.

Reviewer notes. This is a collection of DAMON patches that are posted
by individual contributors and resposted as an mm.git merge request.
Each patch has its own changelog.

Adrian Huang (Lenovo) (1):
mm/damon/core: remove unnecessary zero-initialization in
damon_new_ctx()

Aveline Noir (3):
mm/damon/ops-common: align MMU notifier range when clearing PMD young
bit
mm/damon/stat: avoid 32-bit overflow in idle percentiles
mm/damon/{p,v}addr: skip folios already on the migration target node

Jaeyeon Lee (1):
selftests/damon/sysfs.py: stop obsolete_target shells hanging the test

Jinjie Ruan (1):
Docs/admin-guide/mm/damon/reclaim: document how to disable watermarks

Manuel Ebner (2):
mm/damon/reclaim: fix typo and grammar
Docs/admin-guide/mm/damon/lru_sort: fix grammar and stlye

Shubhang Kaushik (Ampere) (1):
mm/damon/ops-common: align MMU notifier range when clearing PTE young
bit

.../admin-guide/mm/damon/lru_sort.rst | 61 +++++++++----------
.../admin-guide/mm/damon/reclaim.rst | 4 ++
mm/damon/core.c | 5 --
mm/damon/ops-common.c | 7 ++-
mm/damon/paddr.c | 2 +
mm/damon/reclaim.c | 14 ++---
mm/damon/stat.c | 5 +-
mm/damon/vaddr.c | 18 +++---
tools/testing/selftests/damon/sysfs.py | 12 ++--
9 files changed, 67 insertions(+), 61 deletions(-)


base-commit: 18e5bc25101d458c94de6ccb0f7df5d8ec000fb7
--
2.47.3