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 3233542B732; Thu, 9 Jul 2026 14:06:10 +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=1783605971; cv=none; b=lxThwkIozr7ldnd/RqjjLIXMP5NiXjuHtuf2kw5Pvc3dDnUPJ2QN+3BIKT3yonTf32VvhxCz24aSA+sfAC01EmcXzy2lWohxEECHFG39TES43HdLxXlM/ZNoLCaWbyI+LBkL1asM8fskoODgBfj/NfrzMv1zDuG6Pk0SqX1mYpw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783605971; c=relaxed/simple; bh=kSvPkTqUMQuNngP9MOjUUXHc6wov0cmX2dXhh/hqB5M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LlAFOOfFLY/LxKJQBZ0ZomtOFA3fYLFEKkxusaoKAF7y6F5+KSrdb/OlC3HET51UAu45Dbf/upDDmCt0Ea/g9rD5xJ5xZX3kyOa8afDEYk+dkBbjcFOnEIju+bivv3yHyl8XJMfgEPi2HhWqNzuiRas+R4p6f6IjpdpzWq+IUfM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lcoLpowK; 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="lcoLpowK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44EE21F00A3D; Thu, 9 Jul 2026 14:06:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783605970; bh=8LCoQX0bHg1OYdjWEvzo4RN1ftxPbEZ5h4yD4yU742Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=lcoLpowKzXU4d91CEtNawIU5Mo+YzK9W4zgV+PrB3BxfG3k2K4DL4kg2KvZVEYoQU YSwwY8nDZ4tOLrNwWHIAcMZdyyIOCDsJoS7lWE8GS+8qjucCoc+S5fv03G9aDWHd/u 9Cyl7Lp2kFiC4dSu9KCO45kwLj6k+/GIQQR1/Jf0sq/f4LDqQBFdSmOre5KvuHUh8X 1bDdmjcil1EyvxGtE3SJ878y267uie/s01hdtwINYiZ3aYdy+SkTzvKQags22znDQ+ 7Eq33ZD4ZUt1mzEA03vE7b2PLPUnX7Wk3CTojYpcL/t0fimBC1MXn6ZWr9RKj4UzWT WGwpbJOLMUz/w== From: SJ Park To: Cc: SJ Park , "Liam R. Howlett" , Andrew Morton , 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: [RFC PATCH v1.2 17/19] Docs/mm/damon/design: document attrs-only monitoring Date: Thu, 9 Jul 2026 07:05:55 -0700 Message-ID: <20260709140600.90950-18-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260709140600.90950-1-sj@kernel.org> References: <20260709140600.90950-1-sj@kernel.org> Precedence: bulk X-Mailing-List: damon@lists.linux.dev 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