linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/6] mm/damon: add DAMOS_MIGRATE_{HOT,COLD} destination nodes and weights
@ 2025-07-02  5:15 SeongJae Park
  2025-07-02  5:15 ` [RFC PATCH v2 1/6] mm/damon: add struct damos_migrate_dest SeongJae Park
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: SeongJae Park @ 2025-07-02  5:15 UTC (permalink / raw)
  Cc: SeongJae Park, Andrew Morton, Bijan Tabatabai, Jonathan Corbet,
	damon, kernel-team, linux-doc, linux-kernel, linux-mm

DAMOS_MIGRATE_{HOT,COLD} action can migrate pages to only single node.
It could be useful to allow it migrates pages to multiple nodes with
different weights.  A work for dynamic interleaving[1], which is in
progress, is an expected case.  We also discussed this could be useful
for memory tiering, e.g., when we want to move pages to multiple noes of
same tier.

Extend the API and ABI for specifying the multiple destination nodes and
their weights.

Note that this RFC is a prototype of the interface change for Bijan's
interleaving work[1].  Hence this patch series is only implementing the
interface part, not the real implementation of the migration behavior.

[1] https://lore.kernel.org/20250620180458.5041-1-bijan311@gmail.com
[2] https://lore.kernel.org/20240408175228.91414-1-sj@kernel.org

Changes from RFC
(https://lore.kernel.org/20250621173131.23917-1-sj@kernel.org)
- Add documentation patches
- Wordsmith commit messages
- Rebase on latest mm-new

SeongJae Park (6):
  mm/damon: add struct damos_migrate_dest
  mm/damon/core: add damos->migrate_dest field
  mm/damon/sysfs-schemes: implement DAMOS action destinations directory
  mm/damon/sysfs-schemes: set damos->migrate_dest
  Docs/ABI/damon: document schemes dests directory
  Docs/admin-guide/mm/damon/usage: document dests directory

 .../ABI/testing/sysfs-kernel-mm-damon         |  22 ++
 Documentation/admin-guide/mm/damon/usage.rst  |  33 ++-
 include/linux/damon.h                         |  29 +-
 mm/damon/core.c                               |   4 +
 mm/damon/sysfs-schemes.c                      | 253 +++++++++++++++++-
 5 files changed, 333 insertions(+), 8 deletions(-)


base-commit: 8a6d44984fa3076b444a6ddd8a8898b6ba254d25
-- 
2.39.5


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-07-02  5:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-02  5:15 [RFC PATCH v2 0/6] mm/damon: add DAMOS_MIGRATE_{HOT,COLD} destination nodes and weights SeongJae Park
2025-07-02  5:15 ` [RFC PATCH v2 1/6] mm/damon: add struct damos_migrate_dest SeongJae Park
2025-07-02  5:15 ` [RFC PATCH v2 2/6] mm/damon/core: add damos->migrate_dest field SeongJae Park
2025-07-02  5:15 ` [RFC PATCH v2 3/6] mm/damon/sysfs-schemes: implement DAMOS action destinations directory SeongJae Park
2025-07-02  5:15 ` [RFC PATCH v2 4/6] mm/damon/sysfs-schemes: set damos->migrate_dest SeongJae Park
2025-07-02  5:15 ` [RFC PATCH v2 5/6] Docs/ABI/damon: document schemes dests directory SeongJae Park
2025-07-02  5:15 ` [RFC PATCH v2 6/6] Docs/admin-guide/mm/damon/usage: document " SeongJae Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox