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: update stats update process for refresh_ms

DAMOS stats on sysfs was only manually updated. Recent addition of
'refresh_ms' knob enabled periodic and automated updates of the stats.
The document for stats update process is not updated for the change,
however. Update.

Link: https://lkml.kernel.org/r/20260118180305.70023-7-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: David Hildenbrand <david@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

SeongJae Park and committed by
Andrew Morton
652fd06d e7df7a0b

+7 -4
+7 -4
Documentation/admin-guide/mm/damon/usage.rst
··· 549 549 The statistics can be retrieved by reading the files under ``stats`` directory 550 550 (``nr_tried``, ``sz_tried``, ``nr_applied``, ``sz_applied``, 551 551 ``sz_ops_filter_passed``, ``qt_exceeds``, ``nr_snapshots`` and 552 - ``max_nr_snapshots``), respectively. The files are not updated in real time, 553 - so you should ask DAMON sysfs interface to update the content of the files for 554 - the stats by writing a special keyword, ``update_schemes_stats`` to the 555 - relevant ``kdamonds/<N>/state`` file. 552 + ``max_nr_snapshots``), respectively. 553 + 554 + The files are not updated in real time by default. Users should ask DAMON 555 + sysfs interface to periodically update those using ``refresh_ms``, or do a one 556 + time update by writing a special keyword, ``update_schemes_stats`` to the 557 + relevant ``kdamonds/<N>/state`` file. Refer to :ref:`kdamond directory 558 + <sysfs_kdamond>` for more details. 556 559 557 560 .. _sysfs_schemes_tried_regions: 558 561