]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - Documentation/admin-guide/mm/ksm.rst
Merge tag 'docs-6.4-2' of git://git.lwn.net/linux
[thirdparty/linux.git] / Documentation / admin-guide / mm / ksm.rst
index ca0c3a384f857b6af95943b3694931afde8c80b3..7626392fe82cb5d02e9ecd57fb6d7ed80fdc1053 100644 (file)
@@ -157,6 +157,8 @@ stable_node_chains_prune_millisecs
 
 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_shared
         how many shared pages are being used
 pages_sharing
@@ -207,7 +209,8 @@ several times, which are unprofitable memory consumed.
                          ksm_rmap_items * sizeof(rmap_item).
 
    where ksm_merging_pages is shown under the directory ``/proc/<pid>/``,
-   and ksm_rmap_items is shown in ``/proc/<pid>/ksm_stat``.
+   and ksm_rmap_items is shown in ``/proc/<pid>/ksm_stat``. The process profit
+   is also shown in ``/proc/<pid>/ksm_stat`` as ksm_process_profit.
 
 From the perspective of application, a high ratio of ``ksm_rmap_items`` to
 ``ksm_merging_pages`` means a bad madvise-applied policy, so developers or