Add a node-scoped "system bp" goal metric for PA-based migration control. This metric represents basis points (bp, 1/10,000) for (scheme-eligible bytes on node nid) / (system total bytes) Signed-off-by: Ravi Jonnalagadda --- include/linux/damon.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/damon.h b/include/linux/damon.h index 3813373a9200..ec5ed1a217fc 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -155,6 +155,7 @@ enum damos_action { * @DAMOS_QUOTA_NODE_MEM_FREE_BP: MemFree ratio of a node. * @DAMOS_QUOTA_NODE_MEMCG_USED_BP: MemUsed ratio of a node for a cgroup. * @DAMOS_QUOTA_NODE_MEMCG_FREE_BP: MemFree ratio of a node for a cgroup. + * @DAMOS_QUOTA_NODE_SYS_BP: Scheme-eligible bytes ratio of a node. * @NR_DAMOS_QUOTA_GOAL_METRICS: Number of DAMOS quota goal metrics. * * Metrics equal to larger than @NR_DAMOS_QUOTA_GOAL_METRICS are unsupported. @@ -166,6 +167,7 @@ enum damos_quota_goal_metric { DAMOS_QUOTA_NODE_MEM_FREE_BP, DAMOS_QUOTA_NODE_MEMCG_USED_BP, DAMOS_QUOTA_NODE_MEMCG_FREE_BP, + DAMOS_QUOTA_NODE_SYS_BP, NR_DAMOS_QUOTA_GOAL_METRICS, }; -- 2.43.0