Skip to content

Commit adc286e

Browse files
sjp38akpm00
authored andcommitted
Docs/{ABI,admin-guide}/damon: Update for 'state' sysfs file input keyword, 'commit'
This commit documents the newly added 'state' sysfs file input keyword, 'commit', which allows online tuning of DAMON contexts. Link: https://lkml.kernel.org/r/20220429160606.127307-13-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent da87878 commit adc286e

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

Documentation/ABI/testing/sysfs-kernel-mm-damon

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ Date: Mar 2022
2323
Contact: SeongJae Park <sj@kernel.org>
2424
Description: Writing 'on' or 'off' to this file makes the kdamond starts or
2525
stops, respectively. Reading the file returns the keywords
26-
based on the current status. Writing 'update_schemes_stats' to
27-
the file updates contents of schemes stats files of the
28-
kdamond.
26+
based on the current status. Writing 'commit' to this file
27+
makes the kdamond reads the user inputs in the sysfs files
28+
except 'state' again. Writing 'update_schemes_stats' to the
29+
file updates contents of schemes stats files of the kdamond.
2930

3031
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/pid
3132
Date: Mar 2022

Documentation/admin-guide/mm/damon/usage.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,11 @@ In each kdamond directory, two files (``state`` and ``pid``) and one directory
121121

122122
Reading ``state`` returns ``on`` if the kdamond is currently running, or
123123
``off`` if it is not running. Writing ``on`` or ``off`` makes the kdamond be
124-
in the state. Writing ``update_schemes_stats`` to ``state`` file updates the
125-
contents of stats files for each DAMON-based operation scheme of the kdamond.
126-
For details of the stats, please refer to :ref:`stats section
127-
<sysfs_schemes_stats>`.
124+
in the state. Writing ``commit`` to the ``state`` file makes kdamond reads the
125+
user inputs in the sysfs files except ``state`` file again. Writing
126+
``update_schemes_stats`` to ``state`` file updates the contents of stats files
127+
for each DAMON-based operation scheme of the kdamond. For details of the
128+
stats, please refer to :ref:`stats section <sysfs_schemes_stats>`.
128129

129130
If the state is ``on``, reading ``pid`` shows the pid of the kdamond thread.
130131

0 commit comments

Comments
 (0)