Re: [PATCH v2 0/7] mm/damon: introduce probe_hits_wsum DAMOS core filter

From: Andrew Morton

Date: Fri Sep 11 2026 - 19:23:03 EST


On Fri, 11 Sep 2026 06:55:02 -0700 SJ Park <sj@xxxxxxxxxx> wrote:

> DAMON can do flexible data attributes monitoring. The classical data
> access monitoring can also be done using the attributes monitoring. The
> access event is just one of the data attributes that DAMON supports.
> Users do monitoring to make some actions based on it. DAMOS is a
> feature for automating that. However, DAMOS cannot utilize the data
> attributes monitoring results. It is still Data "Access"
> Monitoring-based Operation Schemes. It requires users to set the target
> "access" pattern.
>
> DAMOS core filter is effectively the same as the target access pattern.
> It is just a more generalized and flexible way of describing the
> operation action target region. Introduce a new DAMOS core filter type,
> probe_hits_wsum. It specifies the filter target based on a range of the
> probe hits weighted sum. Using this, users can apply DAMOS actions to
> regions of specific data attributes pattern.
>
> Note that the classic target access pattern still works. Hence the
> target nr_accesses range should still be properly configured. The new
> filter would be used in only data attributes-only mode. In the mode,
> classic access monitoring is just turned off, and therefore nr_accesses
> of regions are always zero. Users could simply set the target
> nr_accesses range to include the zero nr_Accesses regions.

Thanks, added. Along with your -fix for [1/7].