From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 40F4528F949; Fri, 10 Jul 2026 13:47:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783691227; cv=none; b=JfP/dTiOgCDo1dLQN20OZyfvMC3eNf9bp/+lErkIgVsYqZWgfyeQJ7BnqdshHUGgX+bb9v91EINqKBhsumRBRbF6f565W7mdPpu3U4Rc/aX4joBvEwceRD1yQF6b9/N7WWq+t0OJl4SVNKrWpsroC9tGbSi9Rxz+Fb+QaIDojS8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783691227; c=relaxed/simple; bh=kSvPkTqUMQuNngP9MOjUUXHc6wov0cmX2dXhh/hqB5M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Fxc3ZHn4c3NVk8JOXFidHDR1U+xfsfseGD+O6cbVHwiNcD9b/PRKCJJiSWETMtCUnCwSivLmRpH7zko/S+U6zTYpITRzkxHCxhP/JmIOXSBaQ5cvB+WdTv344oITBY8oVCBSR0wdfMXWSNFp7oRIAlMa7NCrZmux+7EZC4tdJAM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DXrXk6Ms; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DXrXk6Ms" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB2031F00A3D; Fri, 10 Jul 2026 13:47:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783691226; bh=8LCoQX0bHg1OYdjWEvzo4RN1ftxPbEZ5h4yD4yU742Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=DXrXk6MsdFELcxNQ56FkZImn/zeom2zo3+oNJIEExxO5fnl51GzBBhviAI62KHZcS VvKhN9dlzVqP19mmS/OrTcxeMvL+7RLl1qkRsTokHwUZPXEJvbeODKgQVAHr+iKUFG HcDnzLI5hzMJ10+VBVk+tz3UUbptmOJmliAVAd2lh2+x8DEUtkVjysYRVL/9ndyxDo frZnxii0FJ6AMG4yjpQjW/h3D4mvddEdzzspVLwNm8jn6ASMC8EZWkXmRu87fTze/Z tKT9fp/HsjEIZj3qIOQlpnyw/JdNkx4enYM9V7RV5wm3aP92SWPPf29MpxABdUcfdF Ab8/syLuxVcow== From: SJ Park To: Andrew Morton Cc: SJ Park , "Liam R. Howlett" , David Hildenbrand , Jonathan Corbet , Lorenzo Stoakes , Michal Hocko , Mike Rapoport , Shuah Khan , Suren Baghdasaryan , Vlastimil Babka , damon@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 17/19] Docs/mm/damon/design: document attrs-only monitoring Date: Fri, 10 Jul 2026 06:46:46 -0700 Message-ID: <20260710134651.18084-18-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260710134651.18084-1-sj@kernel.org> References: <20260710134651.18084-1-sj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Update DAMON design document for the attributes only monitoring mode. Signed-off-by: SJ Park --- Documentation/mm/damon/design.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/design.rst index 457d6e8bc7878..6d79e7d69be84 100644 --- a/Documentation/mm/damon/design.rst +++ b/Documentation/mm/damon/design.rst @@ -316,6 +316,26 @@ Another way to do this for higher accuracy is using :ref:`DAMOS filter information in page level. But, because it is operated in page level, the overhead is proportional to the size of the memory. +Data Attributes-only Monitoring +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Data access is the primary monitoring information for DAMON. Hence it +:ref:`adjusts ` regions using the access +:ref:`counter ` (``nr_accesses``). In some +use cases, however, users may want some of :ref:`attributes +` to be the primary information. + +Data attributes-only monitoring mode supports this use case. For the mode, +each attribute probe has their priority weight value. Users can describe by +what combination of the attributes the primary information is decided, by +setting the priority weight value. If the total sum of the weights is not +zero, the mode is enabled. The regions adjustment mechanism uses the weighted +sum of the :ref:`probe hit counts ` instead +of ``nr_accesses`` in the case. When the mode is enabled, access monitoring is +automatically turned off. The access counter (``nr_accesses``) will always be +zero and not updated. Hence the mode is called Data Attributes "only" +monitoring. + Dynamic Target Space Updates Handling ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- 2.47.3