Docs/admin-guide/mm/damon/reclaim: improve language
Subsystems (4)
PATCH v3 1/1 Docs/admin-guide/mm/damon/reclaim: improve language
Fix upper case. Fix tenses. Replace 'set as' with 'set to'. Add space after sentence to make it double space. Rewrite and refine complex sentences.
---
That's the final version.
[v3]
Combine both patches into one
Incorporate SJ's feedback
[v2]
https://lore.kernel.org/all/[email protected]/
Include suggestions from SJ and Aveline
Split [v1] into
[1/2 v2] Docs/admin-guide/mm/damon/reclaim: improve grammar and style [2/2 v2] Docs/admin-guide/mm/damon/reclaim: rewrite complex parts
Fixed an upper case and a missing double space -> [1/2 v2]
[v1]
https://lore.kernel.org/all/[email protected]/
--- .../admin-guide/mm/damon/reclaim.rst | 43 ++++++++++--------- 1 file changed, 22 insertions(+), 21 deletions(-)
Documentation/admin-guide/mm/damon/reclaim.rst +22 -21
@@ -4,7 +4,7 @@ DAMON-based Reclamation ======================= -DAMON-based Reclamation (DAMON_RECLAIM) is a static kernel module that aimed to +DAMON-based reclamation (DAMON_RECLAIM) is a static kernel module that aimes to be used for proactive and lightweight reclamation under light memory pressure. It doesn't aim to replace the LRU-list based page_granularity reclamation, but to be selectively used for different level of memory pressure and requirements.
@@ -30,12 +30,13 @@ guests could mitigate this problem. How It Works? ============= -DAMON_RECLAIM finds memory regions that didn't accessed for specific time -duration and page out. To avoid it consuming too much CPU for the paging out -operation, a speed limit can be configured. Under the speed limit, it pages -out memory regions that didn't accessed longer time first. System -administrators can also configure under what situation this scheme should -automatically activated and deactivated with three memory pressure watermarks. +DAMON_RECLAIM finds memory regions that have not been accessed for a +specified period and attempts to page out those. To avoid it consuming +too much CPU for the paging out operation, a speed limit can be configured. +Within the configured speed limit, it prioritizes regions that have been +idle longer for reclamation. System administrators can also configure under +what situation this scheme should automatically be activated and deactivated +with three memory pressure watermarks. Interface: Module Parameters ============================
@@ -55,10 +56,10 @@ enabled Enable or disable DAMON_RECLAIM. -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 +You can enable DAMON_RECLAIM by setting the value of this parameter to ``Y``. +Setting it to ``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. +condition. Refer to below descriptions of the watermarks parameter for this. commit_inputs -------------
@@ -66,9 +67,9 @@ commit_inputs Make DAMON_RECLAIM reads the input parameters again, except ``enabled``. Input parameters that updated while DAMON_RECLAIM is running are not applied -by default. Once this parameter is set as ``Y``, DAMON_RECLAIM reads values +by default. Once this parameter is set to ``Y``, DAMON_RECLAIM reads values of parameters except ``enabled`` again. Once the re-reading is done, this -parameter is set as ``N``. If invalid parameters are found while the +parameter is set to ``N``. If invalid parameters are found while the re-reading, DAMON_RECLAIM will be disabled. Once ``Y`` is written to this parameter, the user must not write to any
@@ -88,7 +89,7 @@ identifies the region as cold, and reclaims it. autotune_monitoring_intervals ----------------------------- -If this parameter is set as ``Y``, DAMON_RECLAIM automatically tunes DAMON's +If this parameter is set to ``Y``, DAMON_RECLAIM automatically tunes DAMON's sampling and aggregation intervals. The auto-tuning aims to capture meaningful amount of access events in each DAMON-snapshot, while keeping the sampling interval 5 milliseconds in minimum, and 10 seconds in maximum. Setting this as
@@ -113,10 +114,10 @@ quota_sz Limit of size of memory for the reclamation in bytes. -DAMON_RECLAIM charges amount of memory which it tried to reclaim within a time -window (quota_reset_interval_ms) and makes no more than this limit is tried. -This can be used for limiting consumption of CPU and IO. If this value is -zero, the limit is disabled. +DAMON_RECLAIM charges the amount of memory which it tried to reclaim within a time +window (quota_reset_interval_ms) and stops trying to reclaim memory when this limit +is reached. This can be used for limiting consumption of CPU and IO. If this value +is zero, the limit is disabled. 128 MiB by default.
@@ -137,7 +138,7 @@ quota_mem_pressure_us Desired level of memory pressure-stall time in microseconds. -While keeping the caps that set by other quotas, DAMON_RECLAIM automatically +While keeping the caps that are set by other quotas, DAMON_RECLAIM automatically increases and decreases the effective level of the quota aiming this level of memory pressure is incurred. System-wide ``some`` memory PSI in microseconds per quota reset interval (``quota_reset_interval_ms``) is collected and
@@ -219,7 +220,7 @@ monitoring. This can be used to set lower-bound of the monitoring quality. But, setting this too high could result in increased monitoring overhead. Please refer to the DAMON documentation (:doc:`usage`) for more detail. -Note that this must be 3 or higher. Please refer to the :ref:`Monitoring +Note that this must be 3 or higher. Please refer to the :ref:`Monitoring <damon_design_monitoring>` section of the design document for the rationale behind this lower bound.
@@ -263,7 +264,7 @@ This parameter is for setting and getting the :ref:`address unit ``monitor_region_start`` and ``monitor_region_end`` should be provided in this unit. For example, let's suppose ``addr_unit``, ``monitor_region_start`` and -``monitor_region_end`` are set as ``1024``, ``0`` and ``10``, respectively. +``monitor_region_end`` are set to ``1024``, ``0`` and ``10``, respectively. Then DAMON_RECLAIM will work for 10 KiB length of physical address range that starts from address zero (``[0 * 1024, 10 * 1024)`` in bytes).
@@ -280,7 +281,7 @@ skip_anon Skip anonymous pages reclamation. -If this parameter is set as ``Y``, DAMON_RECLAIM does not reclaim anonymous +If this parameter is set to ``Y``, DAMON_RECLAIM does not reclaim anonymous pages. By default, ``N``.
Signature · 1 line
2.55.0
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] Docs/mm/damon: typo 'aimes' introduced in reclaim.rst --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Docs/mm/damon: typo 'aimes' introduced in reclaim.rst
--
commit 553db5dbc4617619eacc8a4470aca6b0504960ff
Author: Manuel Ebner <[email protected]>
Docs/admin-guide/mm/damon/reclaim: improve language
This commit improves the grammar, tense consistency, and phrasing in the DAMON_RECLAIM administration guide documentation.
Documentation/admin-guide/mm/damon/reclaim.rst line 10
Quoted 13 lines
Documentation/admin-guide/mm/damon/reclaim.rst +1
-1@@ -4,7 +4,7 @@ DAMON-based Reclamation ======================= -DAMON-based Reclamation (DAMON_RECLAIM) is a static kernel module that aimed to +DAMON-based reclamation (DAMON_RECLAIM) is a static kernel module that aimes to be used for proactive and lightweight reclamation under light memory pressure. It doesn't aim to replace the LRU-list based page_granularity reclamation, but to be selectively used for different level of memory pressure and requirements.
[Severity: Low]
In the DAMON-based Reclamation introduction in Documentation/admin-guide/mm/damon/reclaim.rst, "aimes" is a typo. Should this be "aims" instead?
[ ... ]
Quoted 10 lines
Documentation/admin-guide/mm/damon/reclaim.rst +1
-1@@ -88,7 +89,7 @@ identifies the region as cold, and reclaims it. autotune_monitoring_intervals ----------------------------- -If this parameter is set as ``Y``, DAMON_RECLAIM automatically tunes DAMON's +If this parameter is set to ``Y``, DAMON_RECLAIM automatically tunes DAMON's sampling and aggregation intervals. The auto-tuning aims to capture meaningful amount of access events in each DAMON-snapshot, while keeping the sampling interval 5 milliseconds in minimum, and 10 seconds in maximum. Setting this as@@ -113,10 +114,10 @@ quota_sz
[ ... ]
Documentation/admin-guide/mm/damon/reclaim.rst quota_mem_pressure_us · line 144
Quoted 9 lines
Documentation/admin-guide/mm/damon/reclaim.rst +1
-1@@ -137,7 +138,7 @@ quota_mem_pressure_us Desired level of memory pressure-stall time in microseconds. -While keeping the caps that set by other quotas, DAMON_RECLAIM automatically +While keeping the caps that are set by other quotas, DAMON_RECLAIM automatically increases and decreases the effective level of the quota aiming this level of memory pressure is incurred. System-wide ``some`` memory PSI in microseconds per quota reset interval (``quota_reset_interval_ms``) is collected and
Also, this isn't a bug, but in the autotune_monitoring_intervals section just above:
Setting this as ``N`` disables the auto-tuning.
and in the quota_autotune_feedback section just below quota_mem_pressure_us:
While keeping the caps that set by other quotas, DAMON_RECLAIM automatically
should those also be updated to "Setting this to" and "that are set by" to match the changes in this patch?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Hello Manuel,
Quoted 1 line · On Tue, 3 Nov 2026 13:00:42 +0100 Manuel Ebner <[email protected]>…
Fix upper case. Fix tenses. Replace 'set as' with 'set to'. Add space after
Please wrap lines for 75 chars per line, from the next time. Otherwise, checkpatch.pl will warn like below:
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
Quoted 6 lines
sentence to make it double space. Rewrite and refine complex sentences.
CC Aveline Noir <[email protected]>Signed-off-by Manuel Ebner <[email protected]>---
That's the final version.
Thank you for revisioning.
[...]
Documentation/admin-guide/mm/damon/reclaim.rst line 7
Quoted 8 lines
Documentation/admin-guide/mm/damon/reclaim.rst +1
-1@@ -4,7 +4,7 @@ DAMON-based Reclamation ======================= -DAMON-based Reclamation (DAMON_RECLAIM) is a static kernel module that aimed to +DAMON-based reclamation (DAMON_RECLAIM) is a static kernel module that aimes to
Sashiko suggested [1] s/aimes/aims/ ?
[...]
Documentation/admin-guide/mm/damon/reclaim.rst identifies the region as cold, and reclaims it. · line 95
Quoted 9 lines
Documentation/admin-guide/mm/damon/reclaim.rst +1
-1@@ -88,7 +89,7 @@ identifies the region as cold, and reclaims it. autotune_monitoring_intervals ----------------------------- -If this parameter is set as ``Y``, DAMON_RECLAIM automatically tunes DAMON's +If this parameter is set to ``Y``, DAMON_RECLAIM automatically tunes DAMON's sampling and aggregation intervals. The auto-tuning aims to capture meaningful amount of access events in each DAMON-snapshot, while keeping the sampling interval 5 milliseconds in minimum, and 10 seconds in maximum. Setting this as
Sashiko also suggested [1] to update above 'Setting this as' to 'Setting this to'.
Other than above two,
Assuming you don't mind accepting above two Sashiko suggestions, I applied this patch with the suggested changes to damon/next [1] tree. I will repost it soon (~1 week) as an mm.git merge request. So, no action from your side is needed for now.
[1] https://lore.kernel.org
[2] https://origin.kernel.org/doc/html/latest/mm/damon/maintainer-profile.html#scm-trees
Thanks,
SJ
[...]