DAMON development mailing list
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: gutierrez.asier@huawei-partners.com
Cc: damon@lists.linux.dev
Subject: Re: [RFC PATCH v1 4/4] Documentation/admin-guide/mm/damon: add DAMON-based Hugepage Management documentation
Date: Thu, 30 Apr 2026 15:46:33 +0000	[thread overview]
Message-ID: <20260430154634.2F429C2BCB3@smtp.kernel.org> (raw)
In-Reply-To: <20260430134139.2446417-5-gutierrez.asier@huawei-partners.com>

Thank you for your contribution! Sashiko AI review found 5 potential issue(s) to consider:
- [Medium] The commit message contradicts the documentation regarding the purpose of the feature.
- [Medium] The documentation contains misleading copy-paste artifacts from DAMON_RECLAIM.
- [Low] Module parameters `quota_sz`, `monitor_region_start`, and `monitor_region_end` are referenced but missing from the parameter list.
- [Low] ReStructuredText title underlines and overlines are shorter than the title text.
- [Low] Typographical and grammatical errors throughout the documentation.
--

commit 9b382ff592df88342968dca086c2635e151edeb9
Author: Asier Gutierrez <gutierrez.asier@huawei-partners.com>

Documentation/admin-guide/mm/damon: add DAMON-based Hugepage Management documentation

This commit adds documentation for the new DAMON-based Hugepage Management
(DAMON_HUGEPAGE) feature, outlining its operation, use cases, and configurable
module parameters.

> Add documentation for the DAMON-based Hugepage Management (DAMON_HUGEPAGE)
> feature, which automatically manages huge pages by identifying cold memory
> regions and collapsing them back to regular pages. The documentation covers

Is this description accurate? The documentation states the module aims to
"collapse hot regions into huge pages". The commit message seems to describe
the opposite behavior (finding cold regions to split into regular pages).

> diff --git a/Documentation/admin-guide/mm/damon/hugepage.rst b/Documentation/admin-guide/mm/damon/hugepage.rst
> new file mode 100644
> index 0000000000000..4e7a8dad765bd
> --- /dev/null
> +++ b/Documentation/admin-guide/mm/damon/hugepage.rst
> @@ -0,0 +1,258 @@
> +.. SPDX-License-Identifier: GPL-2.0
> +
> +=======================
> +DAMON-based huge page collapsing
> +=======================

This isn't a bug, but the underlines and overlines are shorter than the
title text (32 characters). This will trigger "Title underline too short"
warnings during the Sphinx documentation build.

> +
> +Where Proactive huge page collapsing is Required?
> +========================================

The same reST underline issue is present here.

> +
> +The amount of available memory grows faster than the amount of TLB entries.
> +This leads to higher amount of TLB misses and excesive cycle wastes. Huge

This isn't a bug, but there's a typo here ("excessive").

[ ... ]

> +commit_inputs
> +-------------
> +
> +Make DAMON_HUGEPAGE reads the input parameters again, except ``enabled``.
> +
> +Input parameters that updated while DAMON_HUGEPAGE is running are not applied
> +by default.  Once this parameter is set as ``Y``, DAMON_HUGEPAGE reads values
> +of parametrs except ``enabled`` again.  Once the re-reading is done, this

This isn't a bug, but there is a typo here ("parameters").

[ ... ]

> +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

This isn't a bug, but there is a typo here ("charge").

> +(quota_sz).  That is, DAMON_HUGEPAGE does not try collapsing for more than
> +quota_ms milliseconds or quota_sz bytes within quota_reset_interval_ms
> +milliseconds.

The parameter quota_sz is referenced here, but it appears to be missing
its own parameter definition section. Should it be added to the list?

[ ... ]

> +monitored_pid
> +----------------
> +
> +PID of the task that is going to be monitored for hot regions.
> +
> +quota_percentage_hugepage
> +----------------

This isn't a bug, but the underline is shorter than the title text
"quota_percentage_hugepage" (25 characters).

> +Huge page consumption to total memory anonymous memory consumption ratio goal
> +in bp ``(10,000)``. DAMON_HUGEPAGE automatically increases and decreases page
> +collapse aggressiveness in order to achieve the given value.
> +
> +sample_interval
> +---------------
> +
> +Sampling interval for the monitoring in microseconds.
> +
> +The sampling interval of DAMON for the cold memory monitoring.  Please refer to

Does DAMON_HUGEPAGE monitor for cold memory? The introduction states
it identifies hot regions. It looks like this description might be a
copy-paste artifact from DAMON_RECLAIM.

The same description of "cold memory monitoring" is repeated for
aggr_interval, min_nr_regions, and max_nr_regions below.

[ ... ]

> +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_HUGEPAGE.
> +
> +``monitor_region_start`` and ``monitor_region_end`` should be provided in this
> +unit.  For example, let's suppose ``addr_unit``, ``monitor_region_start`` and

Similar to quota_sz, the parameters monitor_region_start and
monitor_region_end are actively referenced here but lack their own
definition sections. Are they missing from the documentation?

[ ... ]

> +Example
> +=======
> +
> +Below runtime example commands make DAMON_HUGEPAGE to find memory regions of
> +the task with PID 1234 that have been accessed in the last 100 millseconds or

This isn't a bug, but there's a typo here ("milliseconds").

> +more and pages out. The pagecollapsing is limited to be done only up to 1 GiB

Does DAMON_HUGEPAGE page out memory? This looks like another copy-paste
artifact from DAMON_RECLAIM.

This isn't a bug, but there's also a typo here ("pagecollapsing" instead
of "page collapsing").

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260430134139.2446417-1-gutierrez.asier@huawei-partners.com?part=4

  reply	other threads:[~2026-04-30 15:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-30 13:41 [RFC PATCH v1 0/4] mm/damon: Introduce a huge page collapsing mechanism using auto tuning gutierrez.asier
2026-04-30 13:41 ` [RFC PATCH v1 1/4] mm/damon: Generalize ctx_target creation for damon_ops_id and add vaddr support gutierrez.asier
2026-04-30 13:41 ` [RFC PATCH v1 2/4] mm/damon: Introduce DAMOS_QUOTA_HUGEPAGE auto tuning gutierrez.asier
2026-04-30 14:31   ` sashiko-bot
2026-04-30 20:06     ` Gutierrez Asier
2026-05-01  0:48   ` SeongJae Park
2026-04-30 13:41 ` [RFC PATCH v1 3/4] mm/damon: introduce DAMON_HUGEPAGE for hot region hugepage collapsing gutierrez.asier
2026-04-30 15:43   ` sashiko-bot
2026-05-04 14:29     ` Gutierrez Asier
2026-05-01  0:54   ` SeongJae Park
2026-04-30 13:41 ` [RFC PATCH v1 4/4] Documentation/admin-guide/mm/damon: add DAMON-based Hugepage Management documentation gutierrez.asier
2026-04-30 15:46   ` sashiko-bot [this message]
2026-05-01  0:57   ` SeongJae Park
2026-05-01  0:41 ` [RFC PATCH v1 0/4] mm/damon: Introduce a huge page collapsing mechanism using auto tuning SeongJae Park
2026-05-04 13:52   ` Gutierrez Asier
2026-05-06 16:41     ` SeongJae Park

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260430154634.2F429C2BCB3@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=damon@lists.linux.dev \
    --cc=gutierrez.asier@huawei-partners.com \
    --cc=sashiko@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox