Re: [RFC PATCH -next 11/16] mm/damon: add addr_unit for DAMON_RECLAIM and LRU_SORT

From: Quanmin Yan
Date: Thu Aug 14 2025 - 09:00:20 EST



在 2025/8/14 0:36, SeongJae Park 写道:
On Wed, 13 Aug 2025 13:07:01 +0800 Quanmin Yan <yanquanmin1@xxxxxxxxxx> wrote:

In module DAMON_RECLAIM and DAMON_LRU_SORT, the damon_ctx is
independent of the core, necessitating dedicated addr_unit
integration for these features.
Additionally, if the input monitor_region_start and monitor_region_end
are both 0 while addr_unit is set to a non-zero valuethe default
system RAM range should be divided by addr_unit.
Do you plan to, and need to use DAMON_RECLAIM and DAMON_LRU_SORT on LPAE-ARM32
environments? Can't you use DAMON sysfs interface instead? If need to use the
modules, this change looks good to me in high level. But if not, I'd like to
skip this change, and wait until someone requests it.

I'll review the code change in depth after the above question is answered.

Hi SJ,

Yes, we need to use these modules in an LPAE-ARM32 environment. The modular
approach often provides more flexibility in our workflow, so we would greatly
appreciate it if you could take some time to review the code!🙂

Thanks,
Quanmin Yan


Thanks,
SJ

[...]