Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Docs/mm/damon/design: update for max_nr_snapshots

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 <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: "Masami Hiramatsu (Google)" <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

SeongJae Park and committed by
Andrew Morton
64aa87f0 204ab9ab

+5
+5
Documentation/mm/damon/design.rst
··· 720 720 - ``qt_exceeds``: Total number of times the quota of the scheme has exceeded. 721 721 - ``nr_snapshots``: Total number of DAMON snapshots that the scheme is tried to 722 722 be applied. 723 + - ``max_nr_snapshots``: Upper limit of ``nr_snapshots``. 723 724 724 725 "A scheme is tried to be applied to a region" means DAMOS core logic determined 725 726 the region is eligible to apply the scheme's :ref:`action ··· 741 740 to exclude anonymous pages and the region has only anonymous pages, or if the 742 741 action is ``pageout`` while all pages of the region are unreclaimable, applying 743 742 the action to the region will fail. 743 + 744 + Unlike normal stats, ``max_nr_snapshots`` is set by users. If it is set as 745 + non-zero and ``nr_snapshots`` be same to or greater than ``nr_snapshots``, the 746 + scheme is deactivated. 744 747 745 748 To know how user-space can read the stats via :ref:`DAMON sysfs interface 746 749 <sysfs_interface>`, refer to :ref:s`stats <sysfs_stats>` part of the