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 C8C173ACA7A; Sun, 5 Jul 2026 20:58:00 +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=1783285082; cv=none; b=BkZUiBapiG5Tjgyu2dDFZLiOLFVv3Ded0DaBkZ6/puWJbmn85nuJiKEp42JW7IIQDmWLTI29ugMsjY2M8o8EZsqHNlM8AuCDfkEAauwgLDbIcBBs6+Jzh14Xfr6lbbhDIkdTBkL1th07yxqrB4DcYHzaBWyYrRIHnJMgOEVaxlY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783285082; c=relaxed/simple; bh=0ubiYGPNCk+K9B7P6+XvXPSgOOBy4HT+FRHs6I3zxF0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=AmyWDdZ41exbtWC14IL9rtN8u6uzPRJ2W75j+dJDH0Av8YoznlKirqbXHsLk+w8uVzC2WrPmajE2Nx+q/d36fi/PRsaqsPEVMm3YgG0I51ZPRiyUA1/VtjS2/tgcKNoHTwoB0EiKXyFU5eDwHAS2qEnxDb2OukgfMWga9Xxmghk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E6FGoKgk; 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="E6FGoKgk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39DCF1F00A3A; Sun, 5 Jul 2026 20:58:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783285080; bh=0NoyLCIR3yIVxPsNQ0U34NNtrpBp7vJ0B/hA1hhw6GI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=E6FGoKgkUqB+o08nv3OiX3Uuy6tIQJ9shevx1C9BcgbsxI4VR4DXnzt1JnS2w1vuA SDVAH8yAJCu53sJ+tCaU0/caWs1ijvDoUsN2swy+3/c24qMYSo1Ren7XzksWZ+F0tS 5jkIOGwuXBEkyRg5mRcqd88LwAinyxjRxJGpClPxWDT1dcJ3XgIxS09eMm5nYU5T5r pVwaRrUfa9RLj4vdyGSwW8O01dYUPqeS0SiHh4Jume5ufGQ2z9xVO3+87WRiAJfwiV Stod8uM6Yk5HzqTJOklUn/WJ7L3Lbvbp3bxsWcW5tIF+RQMYQF++o9CFfDSDccReZ5 9hJe+E6T1Ypuw== 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 15/16] Docs/admin-guide/mm/damon/usage: document weight sysfs file Date: Sun, 5 Jul 2026 13:57:37 -0700 Message-ID: <20260705205743.98656-16-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260705205743.98656-1-sj@kernel.org> References: <20260705205743.98656-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-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..4515088eba968 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:`atttributes-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 67398e2133036..129acb1da4e19 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