Skip to content

RFC mm/damon: add DAMOS_MIGRATE_{HOT,COLD} destination nodes and weights

SeongJae Park damon linux-doc linux-mm lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest6 patches 0 repliesNew
  2. v1 RFC4 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6mm/damon: add struct damos_migrate_destinclude/linux/damon.h+16 -00 replies
2/6mm/damon/core: add damos->migrate_dest fieldinclude/linux/damon.h mm/damon/core.c+14 -30 replies
3/6mm/damon/sysfs-schemes: implement DAMOS action destinations directorymm/damon/sysfs-schemes.c+224 -10 replies
4/6mm/damon/sysfs-schemes: set damos->migrate_destmm/damon/sysfs-schemes.c+28 -00 replies
5/6Docs/ABI/damon: document schemes dests directoryDocumentation/ABI/testing/sysfs-kernel-mm-damon+22 -00 replies
6/6Docs/admin-guide/mm/damon/usage: document dests directoryDocumentation/admin-guide/mm/damon/usage.rst+29 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC PATCH v2 0/6] mm/damon: add DAMOS_MIGRATE_{HOT,COLD} destination nodes and weights

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/[email protected]
[2] https://lore.kernel.org/[email protected]

Changes from RFC
(https://lore.kernel.org/[email protected])
- 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

Signature · 1 line
2.39.5