samples-damon-mtier-add-parameters-for-node0-memory-usage.patch removed from -mm tree
The quilt patch titled
Subject: samples/damon/mtier: add parameters for node0 memory usage
has been removed from the -mm tree. Its filename was
samples-damon-mtier-add-parameters-for-node0-memory-usage.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Yunjeong Mun <[email protected]>
Subject: samples/damon/mtier: add parameters for node0 memory usage
Date: Fri, 27 Jun 2025 09:33:29 -0700
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/[email protected]/
---
samples/damon/mtier.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
samples/damon/mtier.c renamed from samples/damon/mtier.c~samples-damon-mtier-add-parameters-for-node0-memory-usage +7 -1
@@ -24,6 +24,12 @@ module_param(node1_start_addr, ulong, 06static unsigned long node1_end_addr__read_mostly ;module_param (node1_end_addr, ulong,0600 ); +static unsigned long node0_mem_used_bp__read_mostly =9970 ; +module_param (node0_mem_used_bp, ulong,0600 ); + +static unsigned long node0_mem_free_bp__read_mostly =50 ; +module_param (node0_mem_free_bp, ulong,0600 ); +static int damon_sample_mtier_enable_store (const char *val,const struct kernel_param *kp);
@@ -112,7 +118,7 @@ static struct damon_ctx *damon_sample_mt quota_goal =damos_new_quota_goal ( promote ?DAMOS_QUOTA_NODE_MEM_USED_BP :DAMOS_QUOTA_NODE_MEM_FREE_BP , - promote ?9970 :50 ); + promote ? node0_mem_used_bp : node0_mem_free_bp);if (!quota_goal) goto free_out; quota_goal->nid =0 ;
_
Patches currently in -mm which might be from [email protected] are
samples-damon-support-automatic-node-address-detection.patch