From: SJ Park <sj@kernel.org>
Cc: SJ Park <sj@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Shuah Khan <shuah@kernel.org>,
damon@lists.linux.dev, linux-kselftest@vger.kernel.org,
linux-mm@kvack.org
Subject: [RFC PATCH v4 0/7] mm/damon: various improvements/cleanups for code, tests and comments
Date: Sat, 28 Nov 2026 11:00:25 -0800 [thread overview]
Message-ID: <20261128190033.164440-1-sj@kernel.org> (raw)
Refactor code, optimize code speed, add missing feature supports, and
update comments on various areas of DAMON.
Optimize the efficiency of vaddr damos_migrate action under filter
failures with patch 1. Use damos->last_applied on damos_migrate action
in vaddr and support sz_filter_passed for damos_migrate action in vaddr,
respectively with patch 2 and 3. Drop a redundant and racy quota goal
target value validation in sysfs, in favor of that in the core layer,
with patch 4. Drop unused variables and imports from selftests with
patch 5 and 6. Update source file intro comments to call DAMON just
DAMON, via patch 7.
Issues for patches 1 and 3 were found by Sashiko. Those are
mild inefficiency and unsupported features, though. Hence not Cc-ing
stable.
Changes from RFC v3
- RFC v3: https://lore.kernel.org/20261127222719.105510-1-sj@kernel.org
- Avoid NULL dereference when vm_normal_folio() returns NULL, in patch 2.
- Rebase to the latest mm-new.
Changes from RFC v2
- RFC v2: https://lore.kernel.org/20261101171630.81477-1-sj@kernel.org
- Set last_applied regardless of damos-filtering.
- Advance entire folio for invalid folio.
- update subject for unused imports removal.
- Add source file intro comments update patch.
- Rebase to the latest mm-new.
Changes from RFC
- RFC: https://lore.kernel.org/20261031202614.96036-1-sj@kernel.org
- Drop charge_target_from fixup consolidation.
- Add a patch for using last_applied on vaddr migrate action.
- Add missed damos_va_migrate_private->sz_filter_passed setup.
- Fix wrong commit message for unused imports removal.
SJ Park (7):
mm/damon/vaddr: advance migration attempt in folio level for filter
out
mm/damon/vaddr: use damos->last_applied for migrate action
mm/damon/vaddr: implement sz_filter_passed for migrate_{hot,cold}
action
mm/damon/sysfs-schemes: drop redundant and racy zero target_value
check
selftests/damon/damos_apply_interval: remove unused variables
selftests/damon: remove unused imports of sys and time modules
mm/damon: update file intro comments to call DAMON just DAMON
mm/damon/core.c | 2 +-
mm/damon/ops-common.c | 2 +-
mm/damon/ops-common.h | 2 +-
mm/damon/sysfs-schemes.c | 3 ---
mm/damon/tests/core-kunit.h | 2 +-
mm/damon/tests/paddr-kunit.h | 2 +-
mm/damon/tests/sysfs-kunit.h | 2 +-
mm/damon/tests/vaddr-kunit.h | 2 +-
mm/damon/vaddr.c | 27 ++++++++++++-------
.../selftests/damon/damos_apply_interval.py | 2 --
.../damon/sysfs_no_op_commit_break.py | 1 -
...sysfs_update_schemes_tried_regions_hang.py | 1 -
12 files changed, 25 insertions(+), 23 deletions(-)
base-commit: 23cd682622886800b912219e307cf46a99f69c10
--
2.47.3
next reply other threads:[~2026-11-28 19:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 19:00 SJ Park [this message]
2026-11-28 19:00 ` [RFC PATCH v4 1/7] mm/damon/vaddr: advance migration attempt in folio level for filter out SJ Park
2026-11-28 19:00 ` [RFC PATCH v4 2/7] mm/damon/vaddr: use damos->last_applied for migrate action SJ Park
2026-11-28 19:00 ` [RFC PATCH v4 3/7] mm/damon/vaddr: implement sz_filter_passed for migrate_{hot,cold} action SJ Park
2026-11-28 19:00 ` [RFC PATCH v4 4/7] mm/damon/sysfs-schemes: drop redundant and racy zero target_value check SJ Park
2026-11-28 19:00 ` [RFC PATCH v4 5/7] selftests/damon/damos_apply_interval: remove unused variables SJ Park
2026-11-28 19:00 ` [RFC PATCH v4 6/7] selftests/damon: remove unused imports of sys and time modules SJ Park
2026-11-28 19:00 ` [RFC PATCH v4 7/7] mm/damon: update file intro comments to call DAMON just DAMON SJ Park
2026-11-28 19:07 ` [RFC PATCH v4 0/7] mm/damon: various improvements/cleanups for code, tests and comments sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261128190033.164440-1-sj@kernel.org \
--to=sj@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=damon@lists.linux.dev \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.