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

Configure Feed

Select the types of activity you want to include in your feed.

Docs/admin-guide/mm/damon/usage: document hugepage_size filter type

This includes both the 'hugepage_size' filter type and the min/max files
used to decide range of sizes to filter on.

Link: https://lkml.kernel.org/r/20250211124437.278873-5-usamaarif642@gmail.com
Signed-off-by: Usama Arif <usamaarif642@gmail.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: David Hildenbrand <david@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Usama Arif and committed by
Andrew Morton
4ddb2092 807db03c

+9 -8
+9 -8
Documentation/admin-guide/mm/damon/usage.rst
··· 83 83 │ │ │ │ │ │ │ │ │ 0/target_metric,target_value,current_value 84 84 │ │ │ │ │ │ │ :ref:`watermarks <sysfs_watermarks>`/metric,interval_us,high,mid,low 85 85 │ │ │ │ │ │ │ :ref:`filters <sysfs_filters>`/nr_filters 86 - │ │ │ │ │ │ │ │ 0/type,matching,allow,memcg_path,addr_start,addr_end,target_idx 86 + │ │ │ │ │ │ │ │ 0/type,matching,allow,memcg_path,addr_start,addr_end,target_idx,min,max 87 87 │ │ │ │ │ │ │ :ref:`stats <sysfs_schemes_stats>`/nr_tried,sz_tried,nr_applied,sz_applied,sz_ops_filter_passed,qt_exceeds 88 88 │ │ │ │ │ │ │ :ref:`tried_regions <sysfs_schemes_tried_regions>`/total_bytes 89 89 │ │ │ │ │ │ │ │ 0/start,end,nr_accesses,age,sz_filter_passed ··· 406 406 to ``N-1``. Each directory represents each filter. The filters are evaluated 407 407 in the numeric order. 408 408 409 - Each filter directory contains seven files, namely ``type``, ``matching``, 410 - ``allow``, ``memcg_path``, ``addr_start``, ``addr_end``, and ``target_idx``. 411 - To ``type`` file, you can write one of five special keywords: ``anon`` for 412 - anonymous pages, ``memcg`` for specific memory cgroup, ``young`` for young 413 - pages, ``addr`` for specific address range (an open-ended interval), or 414 - ``target`` for specific DAMON monitoring target filtering. Meaning of the 415 - types are same to the description on the :ref:`design doc 409 + Each filter directory contains nine files, namely ``type``, ``matching``, 410 + ``allow``, ``memcg_path``, ``addr_start``, ``addr_end``, ``min``, ``max`` 411 + and ``target_idx``. To ``type`` file, you can write one of six special 412 + keywords: ``anon`` for anonymous pages, ``memcg`` for specific memory cgroup, 413 + ``young`` for young pages, ``addr`` for specific address range (an open-ended 414 + interval), ``hugepage_size`` for large folios of a specific size range [``min``, 415 + ``max``] or ``target`` for specific DAMON monitoring target filtering. Meaning 416 + of the types are same to the description on the :ref:`design doc 416 417 <damon_design_damos_filters>`. 417 418 418 419 In case of the memory cgroup filtering, you can specify the memory cgroup of