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 72A1D3C1D4D; Wed, 23 Sep 2026 10:15:20 +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=1790158535; cv=none; b=n3vPYyNhUhx5njvEW4K9koNk8UmGWQc6tBsv9DovvijKw2khgj46IjyOIdVEa5oQj/tWL4u8m9/KIRJ7QDX/0767vYCvsITrIK4ZMXQaGm5enUpNaUetOa+1JOi0CqGmiCcRqaRJHmdf+eVtosLLBsDdRFNTwJskeklAenoUYCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790158535; c=relaxed/simple; bh=gZY0WC5GuA2NKx7eNcJuwSntEMh4sHKln3KfjzFkkBk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=RoUYbRoHZJRnPBadS7MCVqB83TDMOecivgCfJT0AtI/d0E2ZQ7rh18TPg/t17TEWfNcMm1o+64hHeKXgcpp5WuDiWuJrURFPxWTa02vyVw8kOuznL9x5ELf4zUl4txGv29i9nXMQSidoaVtVjQqIX/lzEqr8BBNASn6Tt1AkRow= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WXAMQy+E; 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="WXAMQy+E" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1E7B1F000FF; Wed, 23 Sep 2026 10:15:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790158519; bh=E1gVvDIreHP8ao0G8tKQqDlYq/j2WrsMakNo62d+qXY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=WXAMQy+ECbR9upWSg5m7sfptdxReQTIJ+VcV8tEJtuZHBX5pPtdQQpUtBNHBp0Doc tzioFXHYc4MDnaTQjR0PajdwPQJJomUI1kHaClLcMCwHuDpXHcecx0ULs5i16aTTIh IUGraDUXbnGj8gkxEIIxNRnKzw4keHrB3w/lRqMQgj07CVgVhT5vw8b9AtDU2Lp28g IP1JqzstB5ADjIPJFGYhQf8kSUKkKDYL1OjaCG2EyknvacasEJa0xvaUOmCYhpOtYg jguxHJo2h2mFKHLUqNcHypdy6g9MhMFgJVtFlE2wCxm4NSIWdjcXJeMXKIgP+wYjIo w68cHUpPMmaew== 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 v3 6/7] Docs/admin-guide/mm/damon/usage: update for quota goal complement file Date: Wed, 23 Sep 2026 03:14:51 -0700 Message-ID: <20260923101454.5748-7-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260923101454.5748-1-sj@kernel.org> References: <20260923101454.5748-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