aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation/admin-guide/mm
diff options
context:
space:
mode:
authorStefan Roesch <shr@devkernel.io>2023-08-11 12:36:55 -0700
committerAndrew Morton <akpm@linux-foundation.org>2023-08-21 13:38:02 -0700
commitb348b5fe2b5f14ac8bb64fe271d7a027db8cc674 (patch)
treecf5763397ef785757026521d9014225da3b483a8 /Documentation/admin-guide/mm
parentmm: allow fault_dirty_shared_page() to be called under the VMA lock (diff)
downloadwireguard-linux-b348b5fe2b5f14ac8bb64fe271d7a027db8cc674.tar.xz
wireguard-linux-b348b5fe2b5f14ac8bb64fe271d7a027db8cc674.zip
mm/ksm: add pages scanned metric
ksm currently maintains several statistics, which let you determine how successful KSM is at sharing pages. However it does not contain a metric to determine how much work it does. This commit adds the pages scanned metric. This allows the administrator to determine how many pages have been scanned over a period of time. Link: https://lkml.kernel.org/r/20230811193655.2518943-1-shr@devkernel.io Signed-off-by: Stefan Roesch <shr@devkernel.io> Acked-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>
Diffstat (limited to 'Documentation/admin-guide/mm')
-rw-r--r--Documentation/admin-guide/mm/ksm.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/admin-guide/mm/ksm.rst b/Documentation/admin-guide/mm/ksm.rst
index 5c5be7bd84b8..776f244bdae4 100644
--- a/Documentation/admin-guide/mm/ksm.rst
+++ b/Documentation/admin-guide/mm/ksm.rst
@@ -159,6 +159,8 @@ The effectiveness of KSM and MADV_MERGEABLE is shown in ``/sys/kernel/mm/ksm/``:
general_profit
how effective is KSM. The calculation is explained below.
+pages_scanned
+ how many pages are being scanned for ksm
pages_shared
how many shared pages are being used
pages_sharing