Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
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 v3 0/7] mm/damon: various improvements/cleanups for code, tests and comments
Date: Fri, 27 Nov 2026 14:27:11 -0800	[thread overview]
Message-ID: <20261127222719.105510-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 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, 24 insertions(+), 24 deletions(-)


base-commit: f3e166bac17470d6c215e1b4c2af36f5ac5ee75c
-- 
2.47.3


             reply	other threads:[~2026-11-27 22:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 22:27 SJ Park [this message]
2026-11-27 22:27 ` [RFC PATCH v3 1/7] mm/damon/vaddr: advance migration attempt in folio level for filter out SJ Park
2026-11-27 22:27 ` [RFC PATCH v3 2/7] mm/damon/vaddr: use damos->last_applied for migrate action SJ Park
2026-11-27 22:27 ` [RFC PATCH v3 3/7] mm/damon/vaddr: implement sz_filter_passed for migrate_{hot,cold} action SJ Park
2026-11-27 22:27 ` [RFC PATCH v3 4/7] mm/damon/sysfs-schemes: drop redundant and racy zero target_value check SJ Park
2026-11-27 22:27 ` [RFC PATCH v3 5/7] selftests/damon/damos_apply_interval: remove unused variables SJ Park
2026-11-27 22:27 ` [RFC PATCH v3 6/7] selftests/damon: remove unused imports of sys and time modules SJ Park
2026-11-27 22:27 ` [RFC PATCH v3 7/7] mm/damon: update file intro comments to call DAMON just DAMON SJ Park

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=20261127222719.105510-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox