]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
samples/damon/mtier: add parameters for node0 memory usage
authorYunjeong Mun <yunjeong.mun@sk.com>
Fri, 27 Jun 2025 16:33:29 +0000 (09:33 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 13 Jul 2025 23:38:19 +0000 (16:38 -0700)
commitc5e67d40a10234541e220750297304df79aaedd0
tree5e223b3908fbfe18c2bd4c838b9ee83ed9891bbe
parentd1554fb6302093d353c8bf4601f9bf994b836904
samples/damon/mtier: add parameters for node0 memory usage

Change the hard-coded quota goal metric values into sysfs knobs:
`node0_mem_used_bp` and `node0_mem_free_bp`.  These knobs represent the
used and free memory ratio of node0 in basis points (bp, where 1 bp =
0.01%).  As mentioned in [1], this patch is developed under the assumption
that node0 is always the fast-tier in a two-tiers memory setup.

[1] https://lore.kernel.org/linux-mm/20250420194030.75838-8-sj@kernel.org/

Link: https://lkml.kernel.org/r/20250627163329.50997-1-sj@kernel.org
Link: https://patch.msgid.link/20250619050313.1535-1-yunjeong.mun@sk.com
Signed-off-by: Yunjeong Mun <yunjeong.mun@sk.com>
Signed-off-by: SeongJae Park <sj@kernel.org>
Suggested-by: Honggyu Kim <honggyu.kim@sk.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
samples/damon/mtier.c