* [PATCH v2 6/7] Docs/mm/damon/design: update for probe_hits_wsum DAMOS core filter
2026-09-11 13:55 [PATCH v2 0/7] mm/damon: introduce probe_hits_wsum DAMOS core filter SJ Park
@ 2026-09-11 13:55 ` SJ Park
2026-09-11 13:55 ` [PATCH v2 7/7] Docs/admin-guide/mm/damon/usage: update for probe_hits_wsum DAMOS filter SJ Park
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: SJ Park @ 2026-09-11 13:55 UTC (permalink / raw)
To: Andrew Morton
Cc: SJ Park, Liam R. Howlett, David Hildenbrand, Jonathan Corbet,
Lorenzo Stoakes, Michal Hocko, Mike Rapoport, Randy Dunlap,
Shuah Khan, Suren Baghdasaryan, Vlastimil Babka, damon, linux-doc,
linux-kernel, linux-mm
Update DAMON design document for the newly added probe hits weighted sum
based DAMOS core filter type.
Signed-off-by: SJ Park <sj@kernel.org>
---
Documentation/mm/damon/design.rst | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/design.rst
index 22b785cd11dfe..cb116a82ff20b 100644
--- a/Documentation/mm/damon/design.rst
+++ b/Documentation/mm/damon/design.rst
@@ -823,6 +823,9 @@ Below ``type`` of filters are currently supported.
- Applied to pages that belonging to a given address range.
- target
- Applied to pages that belonging to a given DAMON monitoring target.
+ - probe_hits_wsum
+ - Matches to monitoring regions having a given range of :ref:`probe
+ hits weighted sum <damon_design_attrs_only_monitoring>` value.
- Operations layer handled, supported by only ``paddr`` operations set.
- anon
- Applied to pages that containing data that not stored in files.
--
2.47.3
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH v2 7/7] Docs/admin-guide/mm/damon/usage: update for probe_hits_wsum DAMOS filter
2026-09-11 13:55 [PATCH v2 0/7] mm/damon: introduce probe_hits_wsum DAMOS core filter SJ Park
2026-09-11 13:55 ` [PATCH v2 6/7] Docs/mm/damon/design: update for " SJ Park
@ 2026-09-11 13:55 ` SJ Park
2026-09-11 14:28 ` [PATCH v2 0/7] mm/damon: introduce probe_hits_wsum DAMOS core filter SJ Park
2026-09-11 23:19 ` Andrew Morton
3 siblings, 0 replies; 5+ messages in thread
From: SJ Park @ 2026-09-11 13:55 UTC (permalink / raw)
To: Andrew Morton
Cc: SJ Park, Liam R. Howlett, David Hildenbrand, Jonathan Corbet,
Lorenzo Stoakes, Michal Hocko, Mike Rapoport, Randy Dunlap,
Shuah Khan, Suren Baghdasaryan, Vlastimil Babka, damon, linux-doc,
linux-kernel, linux-mm
Update DAMON usage document for the newly added probe hits weighted sum
based DAMOS core filter type.
Signed-off-by: SJ Park <sj@kernel.org>
---
Documentation/admin-guide/mm/damon/usage.rst | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst
index 023c6334024f8..d3e37400367bd 100644
--- a/Documentation/admin-guide/mm/damon/usage.rst
+++ b/Documentation/admin-guide/mm/damon/usage.rst
@@ -551,6 +551,10 @@ and ``damon_target_idx``. To ``type`` file, you can write the type of the
filter. Refer to :ref:`the design doc <damon_design_damos_filters>` for
available type names, their meaning and on what layer those are handled.
+For ``probe_hits_wsum`` type, you can specify the minimum and maximum probe
+hits weighted sum value for the filter to ``min`` and ``max`` files,
+respectively.
+
For ``memcg`` type, you can specify the memory cgroup of the interest by
writing the path of the memory cgroup from the cgroups mount point to
``memcg_path`` file. For ``addr`` type, you can specify the start and end
--
2.47.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 0/7] mm/damon: introduce probe_hits_wsum DAMOS core filter
2026-09-11 13:55 [PATCH v2 0/7] mm/damon: introduce probe_hits_wsum DAMOS core filter SJ Park
2026-09-11 13:55 ` [PATCH v2 6/7] Docs/mm/damon/design: update for " SJ Park
2026-09-11 13:55 ` [PATCH v2 7/7] Docs/admin-guide/mm/damon/usage: update for probe_hits_wsum DAMOS filter SJ Park
@ 2026-09-11 14:28 ` SJ Park
2026-09-11 23:19 ` Andrew Morton
3 siblings, 0 replies; 5+ messages in thread
From: SJ Park @ 2026-09-11 14:28 UTC (permalink / raw)
To: SJ Park
Cc: Andrew Morton, Liam R. Howlett, David Hildenbrand,
Jonathan Corbet, Lorenzo Stoakes, Michal Hocko, Mike Rapoport,
Randy Dunlap, Shuah Khan, Suren Baghdasaryan, Vlastimil Babka,
damon, linux-doc, linux-kernel, linux-mm
On Fri, 11 Sep 2026 06:55:02 -0700 SJ Park <sj@kernel.org> 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.
Sashiko found no blocker for this series but a minor documentation issue that
better to be clearified. Because it is too trivial for reposting entire series
in my opinion, I asked Andrew to pick a fixup [1] for that together.
Sashiko send its findings to damon@ mailing list [2], and I reply those if
anything needs to be clarified. Please refer to those for details.
[1] https://lore.kernel.org/20260911142522.98013-1-sj@kernel.org
[2] https://lore.kernel.org/damon/
Thanks,
SJ
[...]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 0/7] mm/damon: introduce probe_hits_wsum DAMOS core filter
2026-09-11 13:55 [PATCH v2 0/7] mm/damon: introduce probe_hits_wsum DAMOS core filter SJ Park
` (2 preceding siblings ...)
2026-09-11 14:28 ` [PATCH v2 0/7] mm/damon: introduce probe_hits_wsum DAMOS core filter SJ Park
@ 2026-09-11 23:19 ` Andrew Morton
3 siblings, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2026-09-11 23:19 UTC (permalink / raw)
To: SJ Park
Cc: Liam R. Howlett, David Hildenbrand, Jonathan Corbet,
Lorenzo Stoakes, Michal Hocko, Mike Rapoport, Randy Dunlap,
Shuah Khan, Suren Baghdasaryan, Vlastimil Babka, damon, linux-doc,
linux-kernel, linux-mm
On Fri, 11 Sep 2026 06:55:02 -0700 SJ Park <sj@kernel.org> 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].
^ permalink raw reply [flat|nested] 5+ messages in thread