blob: cec67ecc4850542f57245d88153ca91d93c49db8 [file] [log] [blame]
From: Andrew Morton <akpm@linux-foundation.org>
Subject: mm-ksm-document-smart-scan-mode-fix
Date: Tue Sep 26 05:48:29 PM PDT 2023
document that smart_scan defaults to on
Cc: David Hildenbrand <david@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: Stefan Roesch <shr@devkernel.io>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
Documentation/admin-guide/mm/ksm.rst | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/Documentation/admin-guide/mm/ksm.rst~mm-ksm-document-smart-scan-mode-fix-2
+++ a/Documentation/admin-guide/mm/ksm.rst
@@ -156,12 +156,12 @@ stable_node_chains_prune_millisecs
``max_page_sharing`` yet.
smart_scan
- By default KSM checks every candidate page for each scan. It does
- not take into account historic information. When smart scan is
+ 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 disabled. The ``pages_skipped`` metric shows how
+ 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/``:
_