mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-27 19:53:15 -04:00
Docs/admin-guide/mm/damon/usage: document weight sysfs file
Update DAMON usage document for newly added probe weight file. Link: https://lore.kernel.org/20260710134651.18084-19-sj@kernel.org Signed-off-by: SJ Park <sj@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
@@ -73,9 +73,10 @@ comma (",").
|
||||
│ │ │ │ │ │ │ intervals_goal/access_bp,aggrs,min_sample_us,max_sample_us
|
||||
│ │ │ │ │ │ nr_regions/min,max
|
||||
│ │ │ │ │ │ :ref:`probes <damon_usage_sysfs_probes>`/nr_probes
|
||||
│ │ │ │ │ │ │ 0/filters/nr_filters
|
||||
│ │ │ │ │ │ │ │ 0/type,matching,allow,path
|
||||
│ │ │ │ │ │ │ │ ...
|
||||
│ │ │ │ │ │ │ 0/weight
|
||||
│ │ │ │ │ │ │ │ filters/nr_filters
|
||||
│ │ │ │ │ │ │ │ │ 0/type,matching,allow,path
|
||||
│ │ │ │ │ │ │ │ │ ...
|
||||
│ │ │ │ │ │ │ ...
|
||||
│ │ │ │ │ :ref:`targets <sysfs_targets>`/nr_targets
|
||||
│ │ │ │ │ │ :ref:`0 <sysfs_target>`/pid_target,obsolete_target
|
||||
@@ -286,6 +287,10 @@ In each probe directory, one directory, ``filters`` exists. The directory
|
||||
contains files for installing filters for the probe, that is used to determine
|
||||
the data attribute for the probe.
|
||||
|
||||
Each probe directory also contains ``weight`` file. Reading from and writing
|
||||
to the file gets and sets the :ref:`attributes-only monitoring
|
||||
<damon_design_attrs_only_monitoring>` weight for the attribute of the probe.
|
||||
|
||||
In the beginning, ``filters`` directory has only one file, ``nr_filters``.
|
||||
Writing a number (``N``) to the file creates the number of child directories
|
||||
named ``0`` to ``N-1``. Each directory represents each filter and works in a
|
||||
|
||||
@@ -316,6 +316,8 @@ Another way to do this for higher accuracy is using :ref:`DAMOS filter
|
||||
information in page level. But, because it is operated in page level, the
|
||||
overhead is proportional to the size of the memory.
|
||||
|
||||
.. _damon_design_attrs_only_monitoring:
|
||||
|
||||
Data Attributes-only Monitoring
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -336,6 +338,9 @@ automatically turned off. The access counter (``nr_accesses``) will always be
|
||||
zero and not updated. Hence the mode is called Data Attributes "only"
|
||||
monitoring.
|
||||
|
||||
Refer to the :ref:`admin guide <damon_usage_sysfs_probes>` to know how users
|
||||
can use the mode.
|
||||
|
||||
Dynamic Target Space Updates Handling
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user