Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Docs/mm/damon/design: document 'address unit' parameter

Add 'addr_unit' parameter description on DAMON design document.

Link: https://lkml.kernel.org/r/20250828171242.59810-9-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Quanmin Yan <yanquanmin1@huawei.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: David Hildenbrand <david@redhat.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: ze zuo <zuoze1@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

SeongJae Park and committed by
Andrew Morton
7b06c471 540a2aeb

+13 -1
+13 -1
Documentation/mm/damon/design.rst
··· 67 67 Also, if some architectures or devices support special optimized access check 68 68 features, those will be easily configurable. 69 69 70 - DAMON currently provides below three operation sets. Below two subsections 70 + DAMON currently provides below three operation sets. Below three subsections 71 71 describe how those work. 72 72 73 73 - vaddr: Monitor virtual address spaces of specific processes ··· 135 135 conflict with the reclaim logic using ``PG_idle`` and ``PG_young`` page flags, 136 136 as Idle page tracking does. 137 137 138 + Address Unit 139 + ------------ 140 + 141 + DAMON core layer uses ``unsinged long`` type for monitoring target address 142 + ranges. In some cases, the address space for a given operations set could be 143 + too large to be handled with the type. ARM (32-bit) with large physical 144 + address extension is an example. For such cases, a per-operations set 145 + parameter called ``address unit`` is provided. It represents the scale factor 146 + that need to be multiplied to the core layer's address for calculating real 147 + address on the given address space. Support of ``address unit`` parameter is 148 + up to each operations set implementation. ``paddr`` is the only operations set 149 + implementation that supports the parameter. 138 150 139 151 .. _damon_core_logic: 140 152