]> Gentwo Git Trees - linux/.git/commit
mm/damon/core: add DAMOS quota gaol metric for per-memcg per-numa free memory
authorSeongJae Park <sj@kernel.org>
Fri, 17 Oct 2025 21:26:58 +0000 (14:26 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Nov 2025 01:28:08 +0000 (17:28 -0800)
commit98fdce76fb7ed7070df21afbee46a4b36cb6a7c6
tree9b4dcbe2631a3ba17d77fd4d40ff47c7218325cf
parenta1d1df78acb3b038d72f97a66b8f5e01af021b7c
mm/damon/core: add DAMOS quota gaol metric for per-memcg per-numa free memory

Add a variant of DAMOS_QUOTA_NODE_MEMCG_USED_BP, for the free memory
portion.  The value of the metric is implemented as the entire memory of
the given NUMA node subtracted by the given cgroup's usage.  So from a
perspective, "unused" could be a better term than "free".  But arguably it
is not very clear what is better, so use the term "free".

Link: https://lkml.kernel.org/r/20251017212706.183502-7-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/damon.h
mm/damon/core.c