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 9AC153612CE for ; Wed, 21 Jan 2026 03:27:57 +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=1768966077; cv=none; b=bT6FXc2kYwu6MU/Fsvtt0gl4kwRvEXvVgYlqJSjAO92tmlA329s6qvTxke88OL1g8TaJ6hykVFhPRpXzK2jXELy/cJocZZrJ251s05LCaoqw4pW+kppaa0bjOefsvoSVH42BjxXa8gTg4df8x7NpLHc4lBeWErdEtRnfnadzaLk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768966077; c=relaxed/simple; bh=cJGyFUz2Uw5vreONxc1JDuHvkeimOTDynSInxi2Z6kM=; h=Date:To:From:Subject:Message-Id; b=ZeJv/QHYGnlJv3Zlv8SyA9G/nNH83t+D0VollMWxnjnianS/SA98zzqI8hoV37sqBK7PLCRI1Jx5DLlqi8WvtzJHQaVBKNgNPnCVRHHNnO4MxNg6kQ//YIxDDBO0rDjKRWeecAQ0VLaGc9yT3DpOslinZ5v6pvZRsLVWcL0ZAJA= 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=gSnBf1o4; 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="gSnBf1o4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A163C16AAE; Wed, 21 Jan 2026 03:27:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1768966077; bh=cJGyFUz2Uw5vreONxc1JDuHvkeimOTDynSInxi2Z6kM=; h=Date:To:From:Subject:From; b=gSnBf1o4S4ySM6Dmrj6dr9nzYqCd/3TGzNraMmL0Se0/MyqIC4tYYjYZ8uU8XfpB2 lu5h+LM6HlGwp2PtkMc7ivBg0M0O+U+fHwml9jne8mnP0mMknYmTTPQfWdKnrBXvMI +qT4tPK/vsndj33lKD7IQ6hZE8Ik7tHEqcrUw6Gk= Date: Tue, 20 Jan 2026 19:27:56 -0800 To: mm-commits@vger.kernel.org,vbabka@suse.cz,surenb@google.com,rppt@kernel.org,rostedt@goodmis.org,mhocko@suse.com,mhiramat@kernel.org,mathieu.desnoyers@efficios.com,lorenzo.stoakes@oracle.com,liam.howlett@oracle.com,corbet@lwn.net,sj@kernel.org,akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-stable] docs-mm-damon-design-update-for-max_nr_snapshots.patch removed from -mm tree Message-Id: <20260121032757.5A163C16AAE@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The quilt patch titled Subject: Docs/mm/damon/design: update for max_nr_snapshots has been removed from the -mm tree. Its filename was docs-mm-damon-design-update-for-max_nr_snapshots.patch This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: SeongJae Park Subject: Docs/mm/damon/design: update for max_nr_snapshots Date: Tue, 16 Dec 2025 00:01:22 -0800 Update DAMON design document for the newly added snapshot level DAMOS deactivation feature, max_nr_snapshots. Link: https://lkml.kernel.org/r/20251216080128.42991-10-sj@kernel.org Signed-off-by: SeongJae Park Cc: Jonathan Corbet Cc: Liam Howlett Cc: Lorenzo Stoakes Cc: "Masami Hiramatsu (Google)" Cc: Mathieu Desnoyers Cc: Michal Hocko Cc: Mike Rapoport Cc: Steven Rostedt Cc: Suren Baghdasaryan Cc: Vlastimil Babka Signed-off-by: Andrew Morton --- Documentation/mm/damon/design.rst | 5 +++++ 1 file changed, 5 insertions(+) --- a/Documentation/mm/damon/design.rst~docs-mm-damon-design-update-for-max_nr_snapshots +++ a/Documentation/mm/damon/design.rst @@ -720,6 +720,7 @@ scheme's execution. - ``qt_exceeds``: Total number of times the quota of the scheme has exceeded. - ``nr_snapshots``: Total number of DAMON snapshots that the scheme is tried to be applied. +- ``max_nr_snapshots``: Upper limit of ``nr_snapshots``. "A scheme is tried to be applied to a region" means DAMOS core logic determined the region is eligible to apply the scheme's :ref:`action @@ -741,6 +742,10 @@ to exclude anonymous pages and the regio action is ``pageout`` while all pages of the region are unreclaimable, applying the action to the region will fail. +Unlike normal stats, ``max_nr_snapshots`` is set by users. If it is set as +non-zero and ``nr_snapshots`` be same to or greater than ``nr_snapshots``, the +scheme is deactivated. + To know how user-space can read the stats via :ref:`DAMON sysfs interface `, refer to :ref:s`stats ` part of the documentation. _ Patches currently in -mm which might be from sj@kernel.org are mm-damon-core-introduce-active-memory-ratio-damos-quota-goal-metric.patch mm-damon-sysfs-schemes-support-damos_quota_active_mem_bp.patch docs-mm-damon-design-document-damos_quota_active_mem_bp.patch mm-damon-paddr-activate-damos_lru_prio-targets-instead-of-marking-accessed.patch mm-damon-lru_sort-consider-age-for-quota-prioritization.patch mm-damon-lru_sort-support-young-page-filters.patch docs-admin-guide-mm-damon-lru_sort-document-filter_young_pages.patch mm-damon-lru_sort-support-active-inactive-memory-ratio-based-auto-tuning.patch mm-damon-lru_sort-support-active-inactive-memory-ratio-based-auto-tuning-fix.patch docs-admin-guide-mm-damon-lru_sort-document-active_mem_bp-parameter.patch mm-damon-lru_sort-add-monitoring-intervals-auto-tuning-parameter.patch docs-admin-guide-mm-damon-lru_sort-document-intervals-autotuning.patch mm-damon-core-implement-damon_kdamond_pid.patch mm-damon-sysfs-use-damon_kdamond_pid.patch mm-damon-lru_sort-use-damon_kdamond_pid.patch mm-damon-reclaim-use-damon_kdamond_pid.patch mm-damon-hide-kdamond-and-kdamond_lock-of-damon_ctx.patch mm-vma-temporary-build-fix.patch selftests-damon-sysfs_memcg_path_leaksh-use-kmemleak.patch selftests-damon-wss_estimation-test-for-up-to-160-mib-working-set-size.patch selftests-damon-access_memory-add-repeat-mode.patch selftests-damon-wss_estimation-ensure-number-of-collected-wss.patch selftests-damon-wss_estimation-deduplicate-failed-samples-output.patch mm-damon-remove-damon_operations-cleanup.patch mm-damon-core-cleanup-targets-and-regions-at-once-on-kdamond-termination.patch mm-damon-core-cancel-damos_walk-before-damon_ctx-kdamond-reset.patch mm-damon-core-process-damon_call_control-requests-on-a-local-list.patch mm-damon-document-damon_call_control-dealloc_on_cancel-repeat-behavior.patch mm-damon-core-rename-damos_filter_out-to-damos_core_filter_out.patch mm-damon-rename-damon_min_region-to-damon_min_region_sz.patch mm-damon-rename-min_sz_region-of-damon_ctx-to-min_region_sz.patch docs-mm-damon-index-simplify-the-intro.patch docs-mm-damon-design-link-repology-instead-of-fedora-package.patch docs-mm-damon-design-document-damon-sample-modules.patch docs-mm-damon-design-add-reference-to-damon_stat-usage.patch docs-admin-guide-mm-damon-usage-introduce-damon-modules-at-the-beginning.patch docs-admin-guide-mm-damon-usage-update-stats-update-process-for-refresh_ms.patch docs-mm-damon-maintainer-profile-fix-wrong-maitnainers-section-name.patch docs-mm-damon-maintainer-profile-remove-damon-tests-perf-suggestion.patch