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 addr_unit file

Document addr_unit DAMON sysfs file on DAMON usage document.

Link: https://lkml.kernel.org/r/20250828171242.59810-10-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Quanmin Yan <yanquanmin1@huawei.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: David Hildenbrand <david@redhat.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: ze zuo <zuoze1@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

SeongJae Park and committed by
Andrew Morton
e0c72545 7b06c471

+9 -4
+7 -4
Documentation/admin-guide/mm/damon/usage.rst
··· 61 61 │ :ref:`kdamonds <sysfs_kdamonds>`/nr_kdamonds 62 62 │ │ :ref:`0 <sysfs_kdamond>`/state,pid,refresh_ms 63 63 │ │ │ :ref:`contexts <sysfs_contexts>`/nr_contexts 64 - │ │ │ │ :ref:`0 <sysfs_context>`/avail_operations,operations 64 + │ │ │ │ :ref:`0 <sysfs_context>`/avail_operations,operations,addr_unit 65 65 │ │ │ │ │ :ref:`monitoring_attrs <sysfs_monitoring_attrs>`/ 66 66 │ │ │ │ │ │ intervals/sample_us,aggr_us,update_us 67 67 │ │ │ │ │ │ │ intervals_goal/access_bp,aggrs,min_sample_us,max_sample_us ··· 188 188 contexts/<N>/ 189 189 ------------- 190 190 191 - In each context directory, two files (``avail_operations`` and ``operations``) 192 - and three directories (``monitoring_attrs``, ``targets``, and ``schemes``) 193 - exist. 191 + In each context directory, three files (``avail_operations``, ``operations`` 192 + and ``addr_unit``) and three directories (``monitoring_attrs``, ``targets``, 193 + and ``schemes``) exist. 194 194 195 195 DAMON supports multiple types of :ref:`monitoring operations 196 196 <damon_design_configurable_operations_set>`, including those for virtual address ··· 204 204 You can set and get what type of monitoring operations DAMON will use for the 205 205 context by writing one of the keywords listed in ``avail_operations`` file and 206 206 reading from the ``operations`` file. 207 + 208 + ``addr_unit`` file is for setting and getting the :ref:`address unit 209 + <damon_design_addr_unit>` parameter of the operations set. 207 210 208 211 .. _sysfs_monitoring_attrs: 209 212
+2
Documentation/mm/damon/design.rst
··· 135 135 conflict with the reclaim logic using ``PG_idle`` and ``PG_young`` page flags, 136 136 as Idle page tracking does. 137 137 138 + .. _damon_design_addr_unit: 139 + 138 140 Address Unit 139 141 ------------ 140 142