From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8C1EB3ED11C for ; Tue, 28 Apr 2026 14:49:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777387747; cv=none; b=cbaHDlh5oO5m45A5z8fKqoFWQEEQrTOgJQZriBbKk7KV86DwjalRFAPmLdNDcsAj3I+X5AhqdIgT8cN7n2UVsNO1DmC33adjsVcuqM4Hqv6ZszqtBnOEqzEymLYOVNQJ+tSPw81s14t2XjRgSC2otKukWUtvAmTrHs3ZgJzeueM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777387747; c=relaxed/simple; bh=2T+HEDH3ctMPWZC6UqwL7ijdtAo+cUJKaXovaaT6Ios=; h=Date:To:From:Subject:Message-Id; b=Db+1EQXIJddGgvcl11EoWTnHGeeDZ7sb0gnTChuh1hnhGLu2PNjUyLKbd88FVWrBBX09A2aG2XP8ohzzEPOzaqURtxCd2MhaFaMHUxCOV8Z9XuQm9dyXMpHFP0BEss+DqwYdy1h4VzgvcLiGr63OflCp1ly0pfVPaBU62jgyZY8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=f2z2jSV3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="f2z2jSV3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39CCAC2BCAF; Tue, 28 Apr 2026 14:49:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1777387747; bh=2T+HEDH3ctMPWZC6UqwL7ijdtAo+cUJKaXovaaT6Ios=; h=Date:To:From:Subject:From; b=f2z2jSV37ICr0c+v3DsKptZh3Dapql6P7Wag+flivQX7Y0NyTBp3WtMzZeLREuR5X 7VdBukCTXK6htBDv2aju9HPab/ZQyIfU/Yy13d6DJ2X2r2azwBXrjlEoOjtmImXoiZ VJy71+mYsrwaaoLvt0+JBagjTILjfLnHtBNJ8oFA= Date: Tue, 28 Apr 2026 07:49:06 -0700 To: mm-commits@vger.kernel.org,sj@kernel.org,akpm@linux-foundation.org From: Andrew Morton Subject: + docs-admin-guide-mm-damon-usage-document-fail_charge_numdenom-files.patch added to mm-new branch Message-Id: <20260428144907.39CCAC2BCAF@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: Docs/admin-guide/mm/damon/usage: document fail_charge_{num,denom} files has been added to the -mm mm-new branch. Its filename is docs-admin-guide-mm-damon-usage-document-fail_charge_numdenom-files.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/docs-admin-guide-mm-damon-usage-document-fail_charge_numdenom-files.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. The mm-new branch of mm.git is not included in linux-next If a few days of testing in mm-new is successful, the patch will me moved into mm.git's mm-unstable branch, which is included in linux-next Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via various branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there most days ------------------------------------------------------ From: SeongJae Park Subject: Docs/admin-guide/mm/damon/usage: document fail_charge_{num,denom} files Date: Mon, 27 Apr 2026 18:33:55 -0700 Update DAMON usage document for the DAMOS action failed regions quota charge ratio control sysfs files. Link: https://lore.kernel.org/20260428013402.115171-7-sj@kernel.org Signed-off-by: SeongJae Park Cc: Brendan Higgins Cc: David Hildenbrand Cc: Jonathan Corbet Cc: Liam R. Howlett Cc: Lorenzo Stoakes Cc: Michal Hocko Cc: Mike Rapoport Cc: Shuah Khan Cc: Suren Baghdasaryan Cc: Vlastimil Babka Signed-off-by: Andrew Morton --- Documentation/admin-guide/mm/damon/usage.rst | 18 +++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) --- a/Documentation/admin-guide/mm/damon/usage.rst~docs-admin-guide-mm-damon-usage-document-fail_charge_numdenom-files +++ a/Documentation/admin-guide/mm/damon/usage.rst @@ -84,7 +84,9 @@ comma (","). │ │ │ │ │ │ │ │ sz/min,max │ │ │ │ │ │ │ │ nr_accesses/min,max │ │ │ │ │ │ │ │ age/min,max - │ │ │ │ │ │ │ :ref:`quotas `/ms,bytes,reset_interval_ms,effective_bytes,goal_tuner + │ │ │ │ │ │ │ :ref:`quotas `/ms,bytes,reset_interval_ms, + │ │ │ │ │ │ │ effective_bytes,goal_tuner, + │ │ │ │ │ │ │ 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 @@ -381,9 +383,10 @@ schemes//quotas/ The directory for the :ref:`quotas ` of the given DAMON-based operation scheme. -Under ``quotas`` directory, five files (``ms``, ``bytes``, -``reset_interval_ms``, ``effective_bytes`` and ``goal_tuner``) and two -directories (``weights`` and ``goals``) exist. +Under ``quotas`` directory, seven files (``ms``, ``bytes``, +``reset_interval_ms``, ``effective_bytes``, ``goal_tuner``, ``fail_charge_num`` +and ``fail_charge_denom``) and two directories (``weights`` and ``goals``) +exist. You can set the ``time quota`` in milliseconds, ``size quota`` in bytes, and ``reset interval`` in milliseconds by writing the values to the three files, @@ -402,6 +405,13 @@ the background design of the feature and Refer to :ref:`goals directory ` for the goals setup. +You can set the action-failed memory quota charging ratio by writing the +numerator and the denominator for the ratio to ``fail_charge_num`` and +``fail_charge_denom`` files, respectively. Reading those files will return the +current set values. Refer to :ref:`design +` for more details of +the ratio feature. + The time quota is internally transformed to a size quota. Between the transformed size quota and user-specified size quota, smaller one is applied. Based on the user-specified :ref:`goal `, the _ Patches currently in -mm which might be from sj@kernel.org are mm-damon-sysfs-schemes-call-missing-mem_cgroup_iter_break.patch mm-damon-fix-damos_stat-tracepoint-format-for-sz_applied.patch mm-damon-core-make-charge_addr_from-aware-of-end-address-exclusivity.patch docs-mm-damon-maintainer-profile-add-ai-review-usage-guideline.patch mm-damon-core-introduce-damon_ctx-paused.patch mm-damon-sysfs-add-pause-file-under-context-dir.patch docs-mm-damon-design-update-for-context-pause-resume-feature.patch docs-admin-guide-mm-damon-usage-update-for-pause-file.patch docs-abi-damon-update-for-pause-sysfs-file.patch mm-damon-tests-core-kunit-test-pause-commitment.patch selftests-damon-_damon_sysfs-support-pause-file-staging.patch selftests-damon-drgn_dump_damon_status-dump-pause.patch selftests-damon-sysfspy-check-pause-on-assert_ctx_committed.patch selftests-damon-sysfspy-pause-damon-before-dumping-status.patch mm-damon-core-handle-min_region_sz-remaining-quota-as-empty.patch mm-damon-core-merge-regions-after-applying-damos-schemes.patch mm-damon-core-introduce-failed-region-quota-charge-ratio.patch mm-damon-sysfs-schemes-implement-fail_charge_numdenom-files.patch docs-mm-damon-design-document-fail_charge_numdenom.patch docs-admin-guide-mm-damon-usage-document-fail_charge_numdenom-files.patch docs-abi-damon-document-fail_charge_numdenom.patch mm-damon-tests-core-kunit-test-fail_charge_numdenom-committing.patch selftests-damon-_damon_sysfs-support-failed-region-quota-charge-ratio.patch selftests-damon-drgn_dump_damon_status-support-failed-region-quota-charge-ratio.patch selftests-damon-sysfspy-test-failed-region-quota-charge-ratio.patch