Docs/admin-guide/mm/damon: Minor fixes
Subsystems (4)
cover Docs/admin-guide/mm/damon: Minor fixes
This small patch series fixes various typos, copy-paste mistakes, and an incorrect command syntax in the DAMON documentation files.
Adrian Huang (Lenovo) (3):
Docs/admin-guide/mm/damon: Fix various typos Docs/admin-guide/mm/damon/lru_sort: Fix copy-paste mistakes Docs/admin-guide/mm/damon/usage: Fix incorrect option syntax in perf
example
Documentation/admin-guide/mm/damon/lru_sort.rst | 6 +++--- Documentation/admin-guide/mm/damon/reclaim.rst | 4 ++-- Documentation/admin-guide/mm/damon/start.rst | 6 +++--- Documentation/admin-guide/mm/damon/stat.rst | 2 +- Documentation/admin-guide/mm/damon/usage.rst | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-)
Signature · 1 line
2.43.0
PATCH 1/3 Docs/admin-guide/mm/damon: Fix various typos
Fix several spelling mistakes found while reading the DAMON documentation:
* trusworthy -> trustworthy
* DAMON_RCLAIM -> DAMON_RECLAIM
* charget -> charge
* hetmap -> heatmap
* colun -> column
* evelenth -> eleventh
* idlee -> idle
--- Documentation/admin-guide/mm/damon/lru_sort.rst | 2 +- Documentation/admin-guide/mm/damon/reclaim.rst | 4 ++-- Documentation/admin-guide/mm/damon/start.rst | 6 +++--- Documentation/admin-guide/mm/damon/stat.rst | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-)
Documentation/admin-guide/mm/damon/lru_sort.rst +1 -1
@@ -7,7 +7,7 @@ DAMON-based LRU-lists Sorting DAMON-based LRU-lists Sorting (DAMON_LRU_SORT) is a static kernel module that aimed to be used for proactive and lightweight data access pattern based (de)prioritization of pages on their LRU-lists for making LRU-lists a more -trusworthy data access pattern source. +trustworthy data access pattern source. Where Proactive LRU-lists Sorting is Required? ==============================================
Documentation/admin-guide/mm/damon/reclaim.rst +2 -2
@@ -55,7 +55,7 @@ enabled Enable or disable DAMON_RECLAIM. -You can enable DAMON_RCLAIM by setting the value of this parameter as ``Y``. +You can enable DAMON_RECLAIM by setting the value of this parameter as ``Y``. Setting it as ``N`` disables DAMON_RECLAIM. Note that DAMON_RECLAIM could do no real monitoring and reclamation due to the watermarks-based activation condition. Refer to below descriptions for the watermarks parameter for this.
@@ -125,7 +125,7 @@ quota_reset_interval_ms The time/size quota charge reset interval in milliseconds. -The charget reset interval for the quota of time (quota_ms) and size +The charge reset interval for the quota of time (quota_ms) and size (quota_sz). That is, DAMON_RECLAIM does not try reclamation for more than quota_ms milliseconds or quota_sz bytes within quota_reset_interval_ms milliseconds.
Documentation/admin-guide/mm/damon/start.rst +3 -3
@@ -69,16 +69,16 @@ monitored access pattern of the process from DAMON and shows the pattern in a human readable format. The first line of the output shows the relative access temperature (hotness) of -the regions in a single row hetmap format. Each column on the heatmap +the regions in a single row heatmap format. Each column on the heatmap represents regions of same size on the monitored virtual address space. The -position of the colun on the row and the number on the column represents the +position of the column on the row and the number on the column represents the relative location and access temperature of the region. ``[...]`` means unmapped huge regions on the virtual address spaces. The second line shows additional information for better understanding the heatmap. Each line of the output from the third line shows which virtual address range (``addr XX size XX``) of the process is how frequently (``access XX %``) -accessed for how long time (``age XX``). For example, the evelenth region of +accessed for how long time (``age XX``). For example, the eleventh region of ~9.5 MiB size is being most frequently accessed for last 3.7 seconds. Finally, the fourth command stops DAMON.
Documentation/admin-guide/mm/damon/stat.rst +1 -1
@@ -81,7 +81,7 @@ Per-byte idle time (milliseconds) percentiles of the system. DAMON_STAT calculates how long each byte of the memory was not accessed until now (idle time), based on the current DAMON results snapshot. For regions having access frequency (nr_accesses) larger than zero, how long the current -access frequency level was kept multiplied by ``-1`` becomes the idlee time of +access frequency level was kept multiplied by ``-1`` becomes the idle time of every byte of the region. If a region has zero access frequency (nr_accesses), how long the region was keeping the zero access frequency (age) becomes the idle time of every byte of the region. Then, DAMON_STAT exposes the
Signature · 1 line
2.43.0
[email protected]
AI reviewRe: [PATCH 1/3] Docs/admin-guide/mm/damon: Fix various typos
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 11 lines
Fix several spelling mistakes found while reading the DAMON documentation:
* trusworthy -> trustworthy
*DAMON_RCLAIM->DAMON_RECLAIM
* charget -> charge
* hetmap -> heatmap
* colun -> column
* evelenth -> eleventh
* idlee -> idleSigned-off-by Adrian Huang (Lenovo) <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Re: [PATCH 1/3] Docs/admin-guide/mm/damon: Fix various typos
In reply to Adrian Huang (Lenovo)Quoted 9 lines · On Tue, 6 Oct 2026 14:15:47 +0800 "Adrian Huang (Lenovo)"…
Fix several spelling mistakes found while reading the DAMON documentation:
* trusworthy -> trustworthy
*DAMON_RCLAIM->DAMON_RECLAIM
* charget -> charge
* hetmap -> heatmap
* colun -> column
* evelenth -> eleventh
* idlee -> idle
Thank you for finding fixing these, Adrian!
Quoted 2 lines
Signed-off-by Adrian Huang (Lenovo) <[email protected]>
Thanks,
SJ
[...]
Re: [PATCH 1/3] Docs/admin-guide/mm/damon: Fix various typos
In reply to Adrian Huang (Lenovo)Hi Adrian,
I have read your patch and the affected files. I have found a lot of issues, non in your patch.
This got kinda big, so if you don't want add it to your series let me know, then I'll make a patch on top of yours.
Thanks
Manuel
Quoted 4 lines · Adrian Huang (Lenovo)
Fix several spelling mistakes found while reading the DAMON documentation:
* trusworthy -> trustworthy
*DAMON_RCLAIM->DAMON_RECLAIM
There's one more in in a comment in mm/damon/reclaim.c .
Quoted 9 lines
* charget -> charge
* hetmap -> heatmap
* colun -> column
* evelenth -> eleventh
* idlee -> idleSigned-off-by Adrian Huang (Lenovo) <[email protected]>---
Documentation/admin-guide/mm/damon/lru_sort.rst | 2 +-
DAMON-based LRU-lists Sorting (DAMON_LRU_SORT) is a static kernel module that
-aimed to be used for proactive and lightweight data access pattern based +aims to be ...
-situations including reclamation target pages selection under sudden memory
+situations including reclamation of target pages selection under sudden memory
pressure.
-DAMON_LRU_SORT finds hot pages (pages of memory regions that showing access +DAMON_LRU_SORT finds hot pages (pages of memory regions that show access
rates that higher than a user-specified threshold) and cold pages (pages of memory regions that showing no access for a time that longer than a
-You can enable DAMON_LRU_SORT by setting the value of this parameter as ``Y``. -Setting it as ``N`` disables DAMON_LRU_SORT. Note that DAMON_LRU_SORT could do +You can enable DAMON_LRU_SORT by setting the value of this parameter to ``Y``. +Setting it to ``N`` disables DAMON_LRU_SORT. Note that DAMON_LRU_SORT could do
-condition. Refer to below descriptions for the watermarks parameter for this. +condition. Refer to below descriptions of the watermarks parameter for this.
set as -> set to, a couple more times
there is '(de)prioritization', '[de]prioritizations' and '[in]active' -> unify
-interval 5 milliseconds in minimum, and 10 seconds in maximum. +interval to 5 milliseconds in minimum, and to 10 seconds in maximum.
-monitoring. This can be used to set upper-bound of the monitoring overhead. +monitoring. This can be used to set the upper-bound of the monitoring overhead.
nr_lru_sort_tried_hot_regions
-----------------------------
-Number of hot memory regions that tried to be LRU-sorted. +Number of hot memory regions that try to be LRU-sorted.
bytes_lru_sort_tried_hot_regions
--------------------------------
-Total bytes of hot memory regions that tried to be LRU-sorted. +Total bytes of hot memory regions that try to be LRU-sorted.
nr_lru_sorted_hot_regions
-------------------------
-Number of hot memory regions that successfully be LRU-sorted. +Number of hot memory regions that are successfull LRU-sorted.
-Total bytes of hot memory regions that successfully be LRU-sorted. +Total bytes of hot memory regions that are successfully LRU-sorted.
Quoted 1 line
Documentation/admin-guide/mm/damon/reclaim.rst | 4 ++--
aimed -> aims x2
-DAMON_RECLAIM finds memory regions that didn’t accessed for specific +DAMON_RECLAIM finds memory regions that weren't accessed for a specific
-out memory regions that didn't accessed longer time first. System +out memory regions that weren't accessed longer time first. System
-automatically activated and deactivated with three memory pressure watermarks. +automatically be activated and deactivated with three memory pressure watermarks.
Thanks again
Manuel
Quoted 76 lines
Documentation/admin-guide/mm/damon/start.rst | 6 +++--- Documentation/admin-guide/mm/damon/stat.rst | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)Documentation/admin-guide/mm/damon/lru_sort.rst +0
-0@@ -7,7 +7,7 @@ DAMON-based LRU-lists SortingDAMON-based LRU-lists Sorting (
DAMON_LRU_SORT) is a static kernel module that aimed to be used for proactive and lightweight data access pattern based (de)prioritization of pages on their LRU-lists for making LRU-lists a moreDocumentation/admin-guide/mm/damon/lru_sort.rst +1
-1-trusworthy data access pattern source. +trustworthy data access pattern source.
Where Proactive LRU-lists Sorting is Required?
==============================================Documentation/admin-guide/mm/damon/reclaim.rst +0
-0@@ -55,7 +55,7 @@ enabled
Enable or disableDAMON_RECLAIM.Documentation/admin-guide/mm/damon/reclaim.rst +1
-1-You can enable DAMON_RCLAIM by setting the value of this parameter as ``Y``. +You can enable DAMON_RECLAIM by setting the value of this parameter as ``Y``.Setting it as ``N`` disables DAMON_RECLAIM. Note that
DAMON_RECLAIMcould do no real monitoring and reclamation due to the watermarks-based activation condition. Refer to below descriptions for the watermarks parameter for this.Documentation/admin-guide/mm/damon/reclaim.rst +0
-0@@ -125,7 +125,7 @@ quota_reset_interval_ms
The time/size quota charge reset interval in milliseconds.Documentation/admin-guide/mm/damon/reclaim.rst +1
-1-The charget reset interval for the quota of time (quota_ms) and size +The charge reset interval for the quota of time (quota_ms) and size(quota_sz). That is,
DAMON_RECLAIMdoes not try reclamation for more thanquota_msmilliseconds orquota_szbytes withinquota_reset_interval_msmilliseconds.Documentation/admin-guide/mm/damon/start.rst +0
-0@@ -69,16 +69,16 @@ monitored access pattern of the process from DAMON and shows the pattern in ahuman readable format.
The first line of the output shows the relative access temperature (hotness) ofDocumentation/admin-guide/mm/damon/start.rst +1
-1-the regions in a single row hetmap format. Each column on the heatmap +the regions in a single row heatmap format. Each column on the heatmaprepresents regions of same size on the monitored virtual address space. The
Documentation/admin-guide/mm/damon/start.rst +1
-1-position of the colun on the row and the number on the column represents the +position of the column on the row and the number on the column represents therelative location and access temperature of the region. ``[...]`` means unmapped huge regions on the virtual address spaces. The second line shows additional information for better understanding the heatmap.
Each line of the output from the third line shows which virtual address range (``addr XX size XX``) of the process is how frequently (``access XX %``)Documentation/admin-guide/mm/damon/start.rst +1
-1-accessed for how long time (``age XX``). For example, the evelenth region of +accessed for how long time (``age XX``). For example, the eleventh region of~9.5 MiB size is being most frequently accessed for last 3.7 seconds. Finally, the fourth command stops DAMON.
Documentation/admin-guide/mm/damon/stat.rst +0
-0@@ -81,7 +81,7 @@ Per-byte idle time (milliseconds) percentiles of the system.DAMON_STAT calculates how long each byte of the memory was not accessed until now (idle time), based on the current DAMON results snapshot. For regions having access frequency (
nr_accesses) larger than zero, how long the currentDocumentation/admin-guide/mm/damon/stat.rst +1
-1-access frequency level was kept multiplied by ``-1`` becomes the idlee time of +access frequency level was kept multiplied by ``-1`` becomes the idle time ofevery byte of the region. If a region has zero access frequency (
nr_accesses), how long the region was keeping the zero access frequency (age) becomes the idle time of every byte of the region. Then,DAMON_STATexposes the
Re: [PATCH 1/3] Docs/admin-guide/mm/damon: Fix various typos
Hi Manuel,
Quoted 8 lines · Manuel Ebner
Hi Adrian,
I have read your patch and the affected files. I have found a lot of issues, non in your patch.
This got kinda big, so if you don't want add it to your series let me know, then I'll make a patch on top of yours.
Since you found those typos and grammatical errors, I think you’re the best person to submit another patch. The credit should go to you. ;-).
Also, as SJ suggested in the previous email, please post another patch to fix those issues.
Thanks.
-- Adrian
SJ Park
maintainerRe: [PATCH 1/3] Docs/admin-guide/mm/damon: Fix various typos
Hello Manuel,
Quoted 9 lines · On Wed, 7 Oct 2026 19:53:18 +0800 Huang Adrian <[email protected]>…
Hi Manuel,
Quoted 6 lines · Manuel Ebner
Hi Adrian,
I have read your patch and the affected files. I have found a lot of issues, non in your patch.
Quoted 8 lines
Quoted 2 lines
This got kinda big, so if you don't want add it to your series let me know, then I'll make a patch on top of yours.
Since you found those typos and grammatical errors, I think you’re the best person to submit another patch. The credit should go to you. ;-).
Also, as SJ suggested in the previous email, please post another patch to fix those issues.
I agree to Adrian. Coule you please send fixes as your patch?
Thanks,
SJ
[...]
PATCH 2/3 Docs/admin-guide/mm/damon/lru_sort: Fix copy-paste mistakes
In reply to Adrian Huang (Lenovo)The DAMON_LRU_SORT documentation mistakenly refers to DAMON_RECLAIM in a few places.
Fix these copy-paste mistakes to correctly refer to DAMON_LRU_SORT.
--- Documentation/admin-guide/mm/damon/lru_sort.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/admin-guide/mm/damon/lru_sort.rst +2 -2
@@ -264,7 +264,7 @@ addr_unit A scale factor for memory addresses and bytes. This parameter is for setting and getting the :ref:`address unit -<damon_design_addr_unit>` parameter of the DAMON instance for DAMON_RECLAIM. +<damon_design_addr_unit>` parameter of the DAMON instance for DAMON_LRU_SORT. ``monitor_region_start`` and ``monitor_region_end`` should be provided in this unit. For example, let's suppose ``addr_unit``, ``monitor_region_start`` and
@@ -347,7 +347,7 @@ memory regions that not accessed for 120 seconds. The prioritization and deprioritization is limited to be done using only up to 1% CPU time to avoid DAMON_LRU_SORT consuming too much CPU time for the (de)prioritization. It also asks DAMON_LRU_SORT to do nothing if the system's free memory rate is more than -50%, but start the real works if it becomes lower than 40%. If DAMON_RECLAIM +50%, but start the real works if it becomes lower than 40%. If DAMON_LRU_SORT doesn't make progress and therefore the free memory rate becomes lower than 20%, it asks DAMON_LRU_SORT to do nothing again, so that we can fall back to the LRU-list based page granularity reclamation. ::
Signature · 1 line
2.43.0
[email protected]
AI reviewRe: [PATCH 2/3] Docs/admin-guide/mm/damon/lru_sort: Fix copy-paste mistakes
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 6 lines
The
DAMON_LRU_SORTdocumentation mistakenly refers toDAMON_RECLAIMin a few places.Fix these copy-paste mistakes to correctly refer to
DAMON_LRU_SORT.Signed-off-by Adrian Huang (Lenovo) <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Re: [PATCH 2/3] Docs/admin-guide/mm/damon/lru_sort: Fix copy-paste mistakes
In reply to Adrian Huang (Lenovo)Quoted 4 lines · On Tue, 6 Oct 2026 14:15:48 +0800 "Adrian Huang (Lenovo)"…
The
DAMON_LRU_SORTdocumentation mistakenly refers toDAMON_RECLAIMin a few places.Fix these copy-paste mistakes to correctly refer to
DAMON_LRU_SORT.
Good eyes, thank you!
Quoted 2 lines
Signed-off-by Adrian Huang (Lenovo) <[email protected]>
Thanks,
SJ
[...]
PATCH 3/3 Docs/admin-guide/mm/damon/usage: Fix incorrect option syntax in perf example
In reply to Adrian Huang (Lenovo)The kill command in the DAMON documentation uses an incorrect option syntax in the perf example.
Use kill -9 instead of kill 9 to correctly send SIGKILL to the perf process.
--- Documentation/admin-guide/mm/damon/usage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/admin-guide/mm/damon/usage.rst +1 -1
@@ -749,7 +749,7 @@ show results using tracepoint supporting tools like ``perf``. For example:: # echo on > kdamonds/0/state # perf record -e damon:damon_aggregated & # sleep 5 - # kill 9 $(pidof perf) + # kill -9 $(pidof perf) # echo off > kdamonds/0/state # perf script kdamond.0 46568 [027] 79357.842179: damon:damon_aggregated: target_id=0 nr_regions=11 122509119488-135708762112: 0 864
Signature · 1 line
2.43.0
[email protected]
AI reviewRe: [PATCH 3/3] Docs/admin-guide/mm/damon/usage: Fix incorrect option syntax in perf example
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 7 lines
The kill command in the DAMON documentation uses an incorrect option syntax in the perf example.
Use kill -9 instead of kill 9 to correctly send SIGKILL to the perf process.
Signed-off-by Adrian Huang (Lenovo) <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
Re: [PATCH 3/3] Docs/admin-guide/mm/damon/usage: Fix incorrect option syntax in perf example
In reply to Adrian Huang (Lenovo)Quoted 5 lines · On Tue, 6 Oct 2026 14:15:49 +0800 "Adrian Huang (Lenovo)"…
The kill command in the DAMON documentation uses an incorrect option syntax in the perf example.
Use kill -9 instead of kill 9 to correctly send SIGKILL to the perf process.
Nice catch, thank you Adrian.
Quoted 2 lines
Signed-off-by Adrian Huang (Lenovo) <[email protected]>
Thanks,
SJ
[...]
SJ Park
maintainerQuoted 8 lines · On Tue, 6 Oct 2026 14:15:46 +0800 "Adrian Huang (Lenovo)"…
This small patch series fixes various typos, copy-paste mistakes, and an incorrect command syntax in the DAMON documentation files.
Adrian Huang (Lenovo) (3):
Docs/admin-guide/mm/damon: Fix various typos Docs/admin-guide/mm/damon/lru_sort: Fix copy-paste mistakes Docs/admin-guide/mm/damon/usage: Fix incorrect option syntax in perf
example
Looks good to me, thank you.
I applied this series to damon/next [1] tree. We are now quite close to next merge window. I'd like us (mm and damon community) to focus on making mm.git more stabilized and therefore ready for the next merge window, rather than adding more changes that are not really urgent. I understand this series is not really urgent. Hence, Andrew might not add this patch until next -rc1 release. In the case, I will request adding this to mm.git after next -rc1 release. So, no action from your side is needed for now. Let me know if I'm missing something.
[1] https://origin.kernel.org/doc/html/latest/mm/damon/maintainer-profile.html#scm-trees
Thanks,
SJ
[...]