Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Docs/mm/damon/design: categorize DAMOS filter types based on handling layer

On what DAMON layer a DAMOS filter is handled is important to expect in
what order filters will be evaluated. Re-organize the DAMOS filter types
list on the design doc to categorize types based on the handling layer, to
let users more easily understand the handling order.

Link: https://lkml.kernel.org/r/20250218223708.53437-6-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

SeongJae Park and committed by
Andrew Morton
edab6ffd 4a4d8e79

+15 -19
+15 -19
Documentation/mm/damon/design.rst
··· 602 602 603 603 Below ``type`` of filters are currently supported. 604 604 605 - - anon 606 - - Applied to pages that containing data that not stored in files. 607 - - Handled by operations set layer. Supported by only ``paddr`` set. 608 - - memcg 609 - - Applied to pages that belonging to a given cgroup. 610 - - Handled by operations set layer. Supported by only ``paddr`` set. 611 - - young 612 - - Applied to pages that are accessed after the last access check from the 613 - scheme. 614 - - Handled by operations set layer. Supported by only ``paddr`` set. 615 - - hugepage_size 616 - - Applied to pages that managed in a given size range. 617 - - Handled by operations set layer. Supported by only ``paddr`` set. 618 - - addr 619 - - Applied to pages that belonging to a given address range. 620 - - Handled by the core logic. 621 - - target 622 - - Applied to pages that belonging to a given DAMON monitoring target. 623 - - Handled by the core logic. 605 + - Core layer handled 606 + - addr 607 + - Applied to pages that belonging to a given address range. 608 + - target 609 + - Applied to pages that belonging to a given DAMON monitoring target. 610 + - Operations layer handled, supported by only ``paddr`` operations set. 611 + - anon 612 + - Applied to pages that containing data that not stored in files. 613 + - memcg 614 + - Applied to pages that belonging to a given cgroup. 615 + - young 616 + - Applied to pages that are accessed after the last access check from the 617 + scheme. 618 + - hugepage_size 619 + - Applied to pages that managed in a given size range. 624 620 625 621 To know how user-space can set the filters via :ref:`DAMON sysfs interface 626 622 <sysfs_interface>`, refer to :ref:`filters <sysfs_filters>` part of the