[RFC PATCH 0/2] samples/damon: improve expression of target region in mtier

From: Yunjeong Mun
Date: Tue Jul 01 2025 - 04:54:45 EST


`mtier` module is a static module for migrating pages using
damos_action: DAMOS_MIGRATE_HOT and DAMOS_MIGRATE_COLD. Currently,
this module is built on the assumption that the system has two NUMA
nodes, where node0 is the fast-tier and node1 is slow-tier. This
patchset aims to make the expression of the migration target region
more user-friendly by : 1) allowing users to specify just the node id,
instead of physical address, and 2) adding two new knobs.

Patch 1 removes four knobs, `node#_start_addr` and `node#_end_addr`, which
previously required users to input the physical address of the region.
It introduces logic to conver NUMA node ids to physical address.

Patch 2 introduces two new knobs `migrate_hot` and `migrate_cold`, which
specify the source and destination node ids in a comma-separated format.

Yunjeong Mun (2):
samples/damon: convert node id to physical address
samples/damon: add `migrate_hot` and `migrate_cold` knobs

samples/damon/mtier.c | 108 ++++++++++++++++++++++++++++++++++++------
1 file changed, 93 insertions(+), 15 deletions(-)


base-commit: db16fe88cdf83a1e7fdf75de282025b6ad61d08f
--
2.34.1