From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0421119E7E2 for ; Fri, 22 Aug 2025 23:37:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755905835; cv=none; b=WnTJzYPQKx3IaulJfY+ROUdhvcnuKwZkJDAhdy/yRDteMqI/MSm4YaZFVI8M/h4YW/e6fMsp62SfjswK+5Z4RqhLNACzeke2rCTYgT1P1w1t2AaVeM9uDWnEeuEQlOM2qqIiZG+BySDQ+l5xXQ2NBSahwhcpm9OTbTCyv0gG57E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755905835; c=relaxed/simple; bh=QzXUzRcOaAmOooZhk9pPaTIxbid2YyKOS5pS9ehx72E=; h=Date:To:From:Subject:Message-Id; b=UENWXq00QN9XfSi4S7jkEg3XN8ML7+CYf0kc4xG+vZLV6ZL9FbrCULL4CQcVgICmfG/qPmzesizmqTqqAUfTMVeUtIfxoCS0cwQnevrq+AhIKDkJIytPA12jGQdBWQ/PUVglqMyRbVgcnlz1HgrmT+omtUOC0gFzFWFZoxI6/ck= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=dwMpdRYU; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="dwMpdRYU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F2CEC4CEED; Fri, 22 Aug 2025 23:37:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1755905834; bh=QzXUzRcOaAmOooZhk9pPaTIxbid2YyKOS5pS9ehx72E=; h=Date:To:From:Subject:From; b=dwMpdRYUTLD2kyEBI8W6bZd/88CaimdAqWldeDu4dFMYX5CpajQFZIxzAR96TbdLA rXr5Hzyu1JcYfv41iz15AP6qPmE68xaNk2vP6woDKKdxDvInbdxZheAdKZ4eqBQqnh 6OdcJXNc8BHqwf/H5S8oe1ScSEBvljk3n148cHV8= Date: Fri, 22 Aug 2025 16:37:14 -0700 To: mm-commits@vger.kernel.org,zuoze1@huawei.com,yanquanmin1@huawei.com,wangkefeng.wang@huawei.com,sj@kernel.org,akpm@linux-foundation.org From: Andrew Morton Subject: + docs-mm-damon-design-document-address-unit-parameter.patch added to mm-new branch Message-Id: <20250822233714.8F2CEC4CEED@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: Docs/mm/damon/design: document 'address unit' parameter has been added to the -mm mm-new branch. Its filename is docs-mm-damon-design-document-address-unit-parameter.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/docs-mm-damon-design-document-address-unit-parameter.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: SeongJae Park Subject: Docs/mm/damon/design: document 'address unit' parameter Date: Fri, 22 Aug 2025 17:34:16 +0800 Add 'addr_unit' parameter description on DAMON design document. Link: https://lkml.kernel.org/r/20250822093420.2103803-9-yanquanmin1@huawei.com Signed-off-by: SeongJae Park Signed-off-by: Quanmin Yan Reviewed-by: SeongJae Park Cc: Kefeng Wang Cc: ze zuo Signed-off-by: Andrew Morton --- Documentation/mm/damon/design.rst | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) --- a/Documentation/mm/damon/design.rst~docs-mm-damon-design-document-address-unit-parameter +++ a/Documentation/mm/damon/design.rst @@ -67,7 +67,7 @@ processes, NUMA nodes, files, and backin 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 o 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: _ Patches currently in -mm which might be from sj@kernel.org are mm-zswap-store-page_size-compression-failed-page-as-is.patch mm-zswap-store-page_size-compression-failed-page-as-is-fix.patch mm-zswap-store-page_size-compression-failed-page-as-is-v5.patch mm-damon-core-add-damon_ctx-addr_unit.patch mm-damon-paddr-support-addr_unit-for-access-monitoring.patch mm-damon-paddr-support-addr_unit-for-damos_pageout.patch mm-damon-paddr-support-addr_unit-for-damos_lru_prio.patch mm-damon-paddr-support-addr_unit-for-migrate_hotcold.patch mm-damon-paddr-support-addr_unit-for-damos_stat.patch mm-damon-sysfs-implement-addr_unit-file-under-context-dir.patch docs-mm-damon-design-document-address-unit-parameter.patch docs-admin-guide-mm-damon-usage-document-addr_unit-file.patch docs-abi-damon-document-addr_unit-file.patch