Re: [RFC PATCH v2 3/4] mm/damon: introduce DAMON_HUGEPAGE for hot region hugepage collapsing

From: SeongJae Park

Date: Sat May 23 2026 - 13:29:33 EST


On Fri, 22 May 2026 14:55:17 +0000 <gutierrez.asier@xxxxxxxxxxxxxxxxxxx> wrote:

> From: Asier Gutierrez <gutierrez.asier@xxxxxxxxxxxxxxxxxxx>
>
> This patch introduces a new DAMON module (DAMON_HUGEPAGE) which
> collapses hot regions into huge pages.
>
> DAMON_HUGEPAGE operates in the virtual memory space, for a specific
> task. The user is expected to supply the PID of the task that is going
> to be monitored through the monitored_pid module variable.
>
> DAMON_HUGEPAGE uses the hugepage auto-tune mechanism to increase or
> decrease the aggressiveness of page collapsing. User autotuning is
> also available for additional tuning aggressiveness control.
>
> The module also includes changes to the DAMON compilation, so that the
> module can be enabled or disabled.
>
> Signed-off-by: Asier Gutierrez <gutierrez.asier@xxxxxxxxxxxxxxxxxxx>
> ---
> mm/damon/Kconfig | 7 +
> mm/damon/Makefile | 1 +
> mm/damon/hugepage.c (new) | 343 ++++++++++++++++++++++++++++++++++++++

If there is no clear use case of this module and this is only for a
demonstration, I'd suggest to make this as a simpler sample module.


Thanks,
SJ

[...]