Skip to content

mm/damon: various fixes and cleanup of code, test, and docs

SJ Park damon linux-doc linux-kselftest linux-mm lkml sashiko-reviews 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9mm/damon/core: remove unnecessary zero-initialization in damon_new_ctx()mm/damon/core.c+0 -50 replies
2/9mm/damon/ops-common: align MMU notifier range when clearing PTE young bitmm/damon/ops-common.c+3 -20 replies
3/9mm/damon/ops-common: align MMU notifier range when clearing PMD young bitmm/damon/ops-common.c+2 -00 replies
4/9mm/damon/stat: avoid 32-bit overflow in idle percentilesmm/damon/stat.c+3 -23 replies
5/9mm/damon/{p,v}addr: skip folios already on the migration target nodemm/damon/paddr.c mm/damon/vaddr.c+12 -81 reply
6/9selftests/damon/sysfs.py: stop obsolete_target shells hanging the testtools/testing/selftests/damon/sysfs.py+6 -60 replies
7/9mm/damon/reclaim: fix typo and grammarmm/damon/reclaim.c+7 -70 replies
8/9Docs/admin-guide/mm/damon/lru_sort: fix grammar and stlyeDocumentation/admin-guide/mm/damon/lru_sort.rst+30 -312 replies
9/9Docs/admin-guide/mm/damon/reclaim: document how to disable watermarksDocumentation/admin-guide/mm/damon/reclaim.rst+4 -00 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchSJ ParkAveline NoirEnze Li
1/9R-b
2/9R-b R-b T-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b T-b
7/9R-b R-b
8/9R-b
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

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

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

Signature · 1 line
2.47.3