Skip to content

Commit 465d0eb

Browse files
ryncsnJonathan Corbet
authored andcommitted
Docs/admin-guide/mm/damon/usage: fix the example code snip
The workflow example code is not working since it got the file names wrong. So fix this. Fixes: b184027 ("Docs/admin-guide/mm/damon/usage: document DAMON sysfs interface") Reviewed-by: SeongJae Park <sj@kernel.org> Signed-off-by: Kairui Song <kasong@tencent.com> Link: https://lore.kernel.org/r/20220823114053.53305-1-ryncsn@gmail.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 602684a commit 465d0eb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ For a short example, users can monitor the virtual address space of a given
5050
workload as below. ::
5151

5252
# cd /sys/kernel/mm/damon/admin/
53-
# echo 1 > kdamonds/nr && echo 1 > kdamonds/0/contexts/nr
53+
# echo 1 > kdamonds/nr_kdamonds && echo 1 > kdamonds/0/contexts/nr_contexts
5454
# echo vaddr > kdamonds/0/contexts/0/operations
55-
# echo 1 > kdamonds/0/contexts/0/targets/nr
56-
# echo $(pidof <workload>) > kdamonds/0/contexts/0/targets/0/pid
55+
# echo 1 > kdamonds/0/contexts/0/targets/nr_targets
56+
# echo $(pidof <workload>) > kdamonds/0/contexts/0/targets/0/pid_target
5757
# echo on > kdamonds/0/state
5858

5959
Files Hierarchy
@@ -366,12 +366,12 @@ memory rate becomes larger than 60%, or lower than 30%". ::
366366
# echo 1 > kdamonds/0/contexts/0/schemes/nr_schemes
367367
# cd kdamonds/0/contexts/0/schemes/0
368368
# # set the basic access pattern and the action
369-
# echo 4096 > access_patterns/sz/min
370-
# echo 8192 > access_patterns/sz/max
371-
# echo 0 > access_patterns/nr_accesses/min
372-
# echo 5 > access_patterns/nr_accesses/max
373-
# echo 10 > access_patterns/age/min
374-
# echo 20 > access_patterns/age/max
369+
# echo 4096 > access_pattern/sz/min
370+
# echo 8192 > access_pattern/sz/max
371+
# echo 0 > access_pattern/nr_accesses/min
372+
# echo 5 > access_pattern/nr_accesses/max
373+
# echo 10 > access_pattern/age/min
374+
# echo 20 > access_pattern/age/max
375375
# echo pageout > action
376376
# # set quotas
377377
# echo 10 > quotas/ms

0 commit comments

Comments
 (0)