Skip to content

Commit e6d7e4c

Browse files
sjp38hailmo-amzn
authored andcommitted
Docs/admin-guide/mm/damon/start: update DAMOS example command
DAMON user-space tool, damo, has deprecated[1] its old DAMOS schemes specification format. However, an example of DAMON documentation is still using it. Update the example to use one of the alternative options. [1] awslabs/damo@e9950ae68f6c Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: SeongJae Park <[email protected]> Cc: Jonathan Corbet <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 2db6c3d commit e6d7e4c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ set size has chronologically changed.::
119119
Data Access Pattern Aware Memory Management
120120
===========================================
121121

122-
Below three commands make every memory region of size >=4K that doesn't
123-
accessed for >=60 seconds in your workload to be swapped out. ::
122+
Below command makes every memory region of size >=4K that has not accessed for
123+
>=60 seconds in your workload to be swapped out. ::
124124

125-
$ echo "#min-size max-size min-acc max-acc min-age max-age action" > test_scheme
126-
$ echo "4K max 0 0 60s max pageout" >> test_scheme
127-
$ damo schemes -c test_scheme <pid of your workload>
125+
$ sudo damo schemes --damos_access_rate 0 0 --damos_sz_region 4K max \
126+
--damos_age 60s max --damos_action pageout \
127+
<pid of your workload>

0 commit comments

Comments
 (0)