Re: [PATCH v5 1/1] mm/damon: add node_eligible_mem_bp and node_ineligible_mem_bp goal metrics

From: SeongJae Park

Date: Sat Apr 04 2026 - 16:02:15 EST


On Fri, 3 Apr 2026 18:22:15 -0700 Ravi Jonnalagadda <ravis.opensrc@xxxxxxxxx> wrote:

> Add new quota goal metrics for memory tiering that track scheme-eligible
> memory distribution across NUMA nodes:
>
> - DAMOS_QUOTA_NODE_ELIGIBLE_MEM_BP: ratio of eligible memory on a node
> - DAMOS_QUOTA_NODE_INELIGIBLE_MEM_BP: ratio of ineligible memory on a
> node
>
> These complementary metrics enable push-pull migration schemes that
> maintain a target memory distribution across different NUMA nodes
> representing different memory tiers, based on access patterns defined
> by each scheme.
>
> The metrics iterate scheme-eligible regions and use damon_get_folio()
> to determine NUMA node placement of each folio, calculating the ratio
> of eligible memory on the specified node versus total eligible memory.
>
> The implementation is guarded by CONFIG_DAMON_PADDR since damon_get_folio()
> is only available when physical address space monitoring is enabled.
>
> Suggested-by: SeongJae Park <sj@xxxxxxxxxx>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202603251034.978zcsQ2-lkp@xxxxxxxxx/

I think you don't need to add the Reported-by: and Closes: for bug that found
before this patch is merged. Could you please drop those?

> Signed-off-by: Ravi Jonnalagadda <ravis.opensrc@xxxxxxxxx>
> ---
> include/linux/damon.h | 6 ++
> mm/damon/core.c | 186 ++++++++++++++++++++++++++++++++++++---
> mm/damon/sysfs-schemes.c | 12 +++
> 3 files changed, 190 insertions(+), 14 deletions(-)
[...]

The code changes look good to me. But, as I replied to the cover letter, I'd
like to get sashiko review before giving my Reviewed-by:. Could you please
rebase this to the latest mm-new and repost for getting the sashiko review?


Thanks,
SJ