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 5C9123E49F7; Sun, 27 Sep 2026 12:06:01 +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=1790510762; cv=none; b=iBKA7fcRorof0Bwa8aMGpx8w3tqvqV9CZpNAwTnl4kHqzpnz6CI9vg2vKhO0mwkkkeXZE1pgMs+yuGoeolFvCdmL2fKx7sGr/VbezIZw7CaKs8n3+oapoWWOFhmv9zA8Y7EgW4Q0GlWUeD+KZfmTzfw6syd/JI0SUWl/oGuOBmk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790510762; c=relaxed/simple; bh=gZY0WC5GuA2NKx7eNcJuwSntEMh4sHKln3KfjzFkkBk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FpO7y4Vew10LdpKUY/WDZLrXoyJX3Hv+fSpWn8F8h+p/8zdQSBLVj1mMjMeyrmIAwTv7yb7u68kGwteW3DC5xhvVA/jkKlf40csxk7pty3WaQPPRlERB8loz+WkkKiPs5fbCUDIceYB+OihjYrZQgT5TP2m6vRyArhyypiixOQI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H0GqcVCk; 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="H0GqcVCk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7628E1F000FF; Sun, 27 Sep 2026 12:05:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790510761; bh=E1gVvDIreHP8ao0G8tKQqDlYq/j2WrsMakNo62d+qXY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=H0GqcVCk2VyB18B47rOkzjOJvAqWtuVDdR65tyOxAUPOMYP5cfuu8IALwgPhgxgPO oVe50yWpdaKZowdTvhm08iLQBtG9o0klkSwjJKDC8+yeD7CdFWSsF9SAsC9slH+ZBm OYe6Xfis1fjBqg1htJK1i3PmtA4rU6HyNuDPfx1HPq+RoTlZDEkCM3GU4Tq1QCMa+/ l/W+2PxZPROPb6JmO1bwfggGRUvz+ZOO13akfFj+O2g1E3K1O51GfwsUx4snuHxvk0 VLgbjto0imKQSpah8qRVbx/HYhRN4lxkuNnSoK4y0dl13Sk4TtMbgEE6SG7o+wqerK TFSvCtiwI30Ag== From: SJ Park To: Cc: SJ Park , "Liam R. Howlett" , Andrew Morton , David Hildenbrand , Jonathan Corbet , Lorenzo Stoakes , Michal Hocko , Mike Rapoport , Randy Dunlap , 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 v4 6/7] Docs/admin-guide/mm/damon/usage: update for quota goal complement file Date: Sun, 27 Sep 2026 05:05:30 -0700 Message-ID: <20260927120533.50484-7-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260927120533.50484-1-sj@kernel.org> References: <20260927120533.50484-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 the newly added quota goal metric complement sysfs file. Signed-off-by: SJ Park --- Documentation/admin-guide/mm/damon/usage.rst | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst index ba4725544856..3d43954c7046 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -98,7 +98,8 @@ comma (","). │ │ │ │ │ │ │ fail_charge_num,fail_charge_denom │ │ │ │ │ │ │ │ weights/sz_permil,nr_accesses_permil,age_permil │ │ │ │ │ │ │ │ :ref:`goals `/nr_goals - │ │ │ │ │ │ │ │ │ 0/target_metric,target_value,current_value,nid,path + │ │ │ │ │ │ │ │ │ 0/target_metric,complement,target_value, + │ │ │ │ │ │ │ │ │ current_value,nid,path │ │ │ │ │ │ │ :ref:`watermarks `/metric,interval_us,high,mid,low │ │ │ │ │ │ │ :ref:`{core_,ops_,}filters `/nr_filters │ │ │ │ │ │ │ │ 0/type,matching,allow,memcg_path,addr_start,addr_end,damon_target_idx,min,max @@ -492,12 +493,12 @@ number (``N``) to the file creates the number of child directories named ``0`` to ``N-1``. Each directory represents each goal and current achievement. Among the multiple feedback, the best one is used. -Each goal directory contains five files, namely ``target_metric``, -``target_value``, ``current_value``, ``nid``, and ``path``. Users can set and -get the five parameters for the quota auto-tuning goals that specified on the -:ref:`design doc ` by writing to and -reading from each of the files. Because the kernel does not update -``current_value``, reading it only makes sense when ``target_metric`` is +Each goal directory contains six files, namely ``target_metric``, +``complement``, ``target_value``, ``current_value``, ``nid``, and ``path``. +Users can set and get the six parameters for the quota auto-tuning goals that +specified on the :ref:`design doc ` by +writing to and reading from each of the files. Because the kernel does not +update ``current_value``, reading it only makes sense when ``target_metric`` is ``user_input``. Note that users should further write ``commit_schemes_quota_goals`` to the ``state`` file of the :ref:`kdamond directory ` to pass the feedback to DAMON. -- 2.47.3