* [merged mm-stable] mm-ksm-document-smart-scan-mode.patch removed from -mm tree
@ 2023-10-06 21:49 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2023-10-06 21:49 UTC (permalink / raw)
To: mm-commits, riel, hannes, david, shr, akpm
The quilt patch titled
Subject: mm/ksm: document smart scan mode
has been removed from the -mm tree. Its filename was
mm-ksm-document-smart-scan-mode.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: Stefan Roesch <shr@devkernel.io>
Subject: mm/ksm: document smart scan mode
Date: Mon, 25 Sep 2023 21:09:38 -0700
This adds documentation for the smart scan mode of KSM.
[akpm@linux-foundation.org: fix typo]
[akpm@linux-foundation.org: document that smart_scan defaults to on]
Link: https://lkml.kernel.org/r/20230926040939.516161-4-shr@devkernel.io
Signed-off-by: Stefan Roesch <shr@devkernel.io>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Rik van Riel <riel@surriel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
Documentation/admin-guide/mm/ksm.rst | 9 +++++++++
1 file changed, 9 insertions(+)
--- a/Documentation/admin-guide/mm/ksm.rst~mm-ksm-document-smart-scan-mode
+++ a/Documentation/admin-guide/mm/ksm.rst
@@ -155,6 +155,15 @@ stable_node_chains_prune_millisecs
scan. It's a noop if not a single KSM page hit the
``max_page_sharing`` yet.
+smart_scan
+ Historically KSM checked every candidate page for each scan. It did
+ not take into account historic information. When smart scan is
+ enabled, pages that have previously not been de-duplicated get
+ skipped. How often these pages are skipped depends on how often
+ de-duplication has already been tried and failed. By default this
+ optimization is enabled. The ``pages_skipped`` metric shows how
+ effective the setting is.
+
The effectiveness of KSM and MADV_MERGEABLE is shown in ``/sys/kernel/mm/ksm/``:
general_profit
_
Patches currently in -mm which might be from shr@devkernel.io are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-06 21:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-06 21:49 [merged mm-stable] mm-ksm-document-smart-scan-mode.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.