linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Quanmin Yan <yanquanmin1@huawei.com>
To: <sj@kernel.org>
Cc: <akpm@linux-foundation.org>, <damon@lists.linux.dev>,
	<linux-kernel@vger.kernel.org>, <linux-mm@kvack.org>,
	<yanquanmin1@huawei.com>, <wangkefeng.wang@huawei.com>,
	<zuoze1@huawei.com>
Subject: [PATCH 08/11] Docs/mm/damon/design: document 'address unit' parameter
Date: Thu, 21 Aug 2025 18:51:56 +0800	[thread overview]
Message-ID: <20250821105159.2503894-9-yanquanmin1@huawei.com> (raw)
In-Reply-To: <20250821105159.2503894-1-yanquanmin1@huawei.com>

From: SeongJae Park <sj@kernel.org>

Add 'addr_unit' parameter description on DAMON design document.

Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Quanmin Yan <yanquanmin1@huawei.com>
---
 Documentation/mm/damon/design.rst | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/design.rst
index 2f6ba5c7f4c7..d9d5baa1ec87 100644
--- a/Documentation/mm/damon/design.rst
+++ b/Documentation/mm/damon/design.rst
@@ -67,7 +67,7 @@ processes, NUMA nodes, files, and backing memory devices would be supportable.
 Also, if some architectures or devices support special optimized access check
 features, those will be easily configurable.
 
-DAMON currently provides below three operation sets.  Below two subsections
+DAMON currently provides below three operation sets.  Below three subsections
 describe how those work.
 
  - vaddr: Monitor virtual address spaces of specific processes
@@ -135,6 +135,18 @@ the interference is the responsibility of sysadmins.  However, it solves the
 conflict with the reclaim logic using ``PG_idle`` and ``PG_young`` page flags,
 as Idle page tracking does.
 
+Address Unit
+------------
+
+DAMON core layer uses ``unsinged long`` type for monitoring target address
+ranges.  In some cases, the address space for a given operations set could be
+too large to be handled with the type.  ARM (32-bit) with large physical
+address extension is an example.  For such cases, a per-operations set
+parameter called ``address unit`` is provided.  It represents the scale factor
+that need to be multiplied to the core layer's address for calculating real
+address on the given address space.  Support of ``address unit`` parameter is
+up to each operations set implementation.  ``paddr`` is the only operations set
+implementation that supports the parameter.
 
 .. _damon_core_logic:
 
-- 
2.43.0



  parent reply	other threads:[~2025-08-21 11:06 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-21 10:51 [PATCH 00/11] mm/damon: support ARM32 with LPAE Quanmin Yan
2025-08-21 10:51 ` [PATCH 01/11] mm/damon/core: add damon_ctx->addr_unit Quanmin Yan
2025-08-21 17:10   ` SeongJae Park
2025-08-21 10:51 ` [PATCH 02/11] mm/damon/paddr: support addr_unit for access monitoring Quanmin Yan
2025-08-21 17:12   ` SeongJae Park
2025-08-21 10:51 ` [PATCH 03/11] mm/damon/paddr: support addr_unit for DAMOS_PAGEOUT Quanmin Yan
2025-08-21 17:14   ` SeongJae Park
2025-08-21 10:51 ` [PATCH 04/11] mm/damon/paddr: support addr_unit for DAMOS_LRU_[DE]PRIO Quanmin Yan
2025-08-21 17:16   ` SeongJae Park
2025-08-21 10:51 ` [PATCH 05/11] mm/damon/paddr: support addr_unit for MIGRATE_{HOT,COLD} Quanmin Yan
2025-08-21 17:18   ` SeongJae Park
2025-08-21 10:51 ` [PATCH 06/11] mm/damon/paddr: support addr_unit for DAMOS_STAT Quanmin Yan
2025-08-21 17:19   ` SeongJae Park
2025-08-21 10:51 ` [PATCH 07/11] mm/damon/sysfs: implement addr_unit file under context dir Quanmin Yan
2025-08-21 17:21   ` SeongJae Park
2025-08-21 10:51 ` Quanmin Yan [this message]
2025-08-21 17:22   ` [PATCH 08/11] Docs/mm/damon/design: document 'address unit' parameter SeongJae Park
2025-08-21 10:51 ` [PATCH 09/11] Docs/admin-guide/mm/damon/usage: document addr_unit file Quanmin Yan
2025-08-21 17:23   ` SeongJae Park
2025-08-21 10:51 ` [PATCH 10/11] Docs/ABI/damon: " Quanmin Yan
2025-08-21 17:24   ` SeongJae Park
2025-08-21 10:51 ` [PATCH 11/11] mm/damon: add damon_ctx->min_region Quanmin Yan
2025-08-21 17:33   ` SeongJae Park
2025-08-22  1:29     ` Quanmin Yan
2025-08-22 18:03       ` 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=20250821105159.2503894-9-yanquanmin1@huawei.com \
    --to=yanquanmin1@huawei.com \
    --cc=akpm@linux-foundation.org \
    --cc=damon@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=sj@kernel.org \
    --cc=wangkefeng.wang@huawei.com \
    --cc=zuoze1@huawei.com \
    /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