Re: [PATCH v2] mm/damon/stat: monitor all System RAM resources
From: SeongJae Park
Date: Mon Mar 16 2026 - 15:35:02 EST
On Mon, 16 Mar 2026 10:25:39 -0700 Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Sun, 15 Mar 2026 09:27:15 -0700 SeongJae Park <sj@xxxxxxxxxx> wrote:
>
> > DAMON_STAT usage document (Documentation/admin-guide/mm/damon/stat.rst)
> > says it monitors the system's entire physical memory. But, it is
> > monitoring only the biggest System RAM resource of the system. When
> > there are multiple System RAM resources, this results in monitoring only
> > an unexpectedly small fraction of the physical memory. For example,
> > suppose the system has a 500 GiB System RAM, 10 MiB non-System RAM, and
> > 500 GiB System RAM resources in order on the physical address space.
> > DAMON_STAT will monitor only the first 500 GiB System RAM. This
> > situation is particularly common on NUMA systems.
> >
> > Select a physical address range that covers all System RAM areas of the
> > system, to fix this issue and make it work as documented.
> >
> > Fixes: 369c415e6073 ("mm/damon: introduce DAMON_STAT module")
> > Cc: <stable@xxxxxxxxxxxxxxx> # 6.17.x
>
> This doesn't apply to current mainline?
Ah, you're right. Sorry for this noise.
I will rebase it to mm-hotfixes-unstable and post it as v3, by tonight. If you
prefer mainline or another tree other than mm-hotfixes-unsable as the baseline
of v3, please let me know.
Thanks,
SJ