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 65FE928C2BF; Fri, 10 Jul 2026 00:24:05 +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=1783643046; cv=none; b=O0C7gEYfo1Q7dIHqRMoJ0aRiHoniris/he6ki0E2CWV8kIROJ3tgpvRofg+3nx3ps4KE35vyWntnVJhPYADmBkin1vK/9RpiSJEj3QjsolQ4a+2/MAkDGr6gOhjiIi96A7t6hkqLvOOsy2zPZrhJClbBZFXLlRpfFRwcePRjknc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783643046; c=relaxed/simple; bh=TLs1sYIl6XDuSQdKZPBscGAxeps+1GHv3mJ2ZEZb9QU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=UggtLamHK3J2MrtpbYc1ybsjAK6mAQz336kWe60cMX3BBFz51EYCE5UAzV9KpiFD4tWYZKHShj1VseeSuPUV0iNkaIuLOw6Ma6OCs/oSlaLh0teLbS15dNeh9DIZggTarOc4y5NKk0gseHfzNEr6bJX1lAfzYtl9JVA58sf3qKQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BPGETswp; 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="BPGETswp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C54331F000E9; Fri, 10 Jul 2026 00:24:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783643045; bh=CCjb58wtAAk5F9PdDMQvKlFN0DE7q9fXquVywqvC5OU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=BPGETswpdavwH1kNHlT7mPx7fdNU54dpfWQvbgNXMTAeozjaUoVtHHbRejB82lKTT 97+CWRkM6amMegglrhwsovFFOr7sun1LNqC2Q3kHvIGQptkVmPh2tfzwUUque9jYc3 sXROnxxfJ7r9AHITK0j2cY1oxxHJuGl0cQ+0b06UT0rjaIsiqhlDyj8T+p1kYg2j+G 4SXGm3oxSC0cS9tJFvsGhE5rhRXY/50O7Xqbyd8csx3wBDjrO6gVZqcruCWzyaeJt+ nwa4LAk+iWlp91Zm8kKla1J6VliFv3j7AvluzVug/ypIZ5gei2aJkLFtm5wVt35S6R w2OU/rZp0cYog== 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.3 18/19] Docs/admin-guide/mm/damon/usage: document weight sysfs file Date: Thu, 9 Jul 2026 17:23:44 -0700 Message-ID: <20260710002349.111414-19-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260710002349.111414-1-sj@kernel.org> References: <20260710002349.111414-1-sj@kernel.org> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update DAMON usage document for newly added probe weight file. Signed-off-by: SJ Park --- Documentation/admin-guide/mm/damon/usage.rst | 11 ++++++++--- Documentation/mm/damon/design.rst | 5 +++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst index b2649ea011f93..da5f9afd08aef 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -73,9 +73,10 @@ comma (","). │ │ │ │ │ │ │ intervals_goal/access_bp,aggrs,min_sample_us,max_sample_us │ │ │ │ │ │ nr_regions/min,max │ │ │ │ │ │ :ref:`probes `/nr_probes - │ │ │ │ │ │ │ 0/filters/nr_filters - │ │ │ │ │ │ │ │ 0/type,matching,allow,path - │ │ │ │ │ │ │ │ ... + │ │ │ │ │ │ │ 0/weight + │ │ │ │ │ │ │ │ filters/nr_filters + │ │ │ │ │ │ │ │ │ 0/type,matching,allow,path + │ │ │ │ │ │ │ │ │ ... │ │ │ │ │ │ │ ... │ │ │ │ │ :ref:`targets `/nr_targets │ │ │ │ │ │ :ref:`0 `/pid_target,obsolete_target @@ -286,6 +287,10 @@ In each probe directory, one directory, ``filters`` exists. The directory contains files for installing filters for the probe, that is used to determine the data attribute for the probe. +Each probe directory also contains ``weight`` file. Reading from and writing +to the file gets and sets the :ref:`attributes-only monitoring +` weight for the attribute of the probe. + In the beginning, ``filters`` directory has only one file, ``nr_filters``. Writing a number (``N``) to the file creates the number of child directories named ``0`` to ``N-1``. Each directory represents each filter and works in a diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/design.rst index 6d79e7d69be84..aed6cb1cf4831 100644 --- a/Documentation/mm/damon/design.rst +++ b/Documentation/mm/damon/design.rst @@ -316,6 +316,8 @@ 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. +.. _damon_design_attrs_only_monitoring: + Data Attributes-only Monitoring ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -336,6 +338,9 @@ automatically turned off. The access counter (``nr_accesses``) will always be zero and not updated. Hence the mode is called Data Attributes "only" monitoring. +Refer to the :ref:`admin guide ` to know how users +can use the mode. + Dynamic Target Space Updates Handling ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- 2.47.3