* + ksm-add-zero_pages_sharing-documentation.patch added to mm-unstable branch
@ 2022-12-30 22:01 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-12-30 22:01 UTC (permalink / raw)
To: mm-commits, yang.yang29, ran.xiaokai, jiang.xuexin, imbrenda,
david, xu.xin16, akpm
The patch titled
Subject: ksm: add zero_pages_sharing documentation
has been added to the -mm mm-unstable branch. Its filename is
ksm-add-zero_pages_sharing-documentation.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/ksm-add-zero_pages_sharing-documentation.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: xu xin <xu.xin16@zte.com.cn>
Subject: ksm: add zero_pages_sharing documentation
Date: Fri, 30 Dec 2022 09:17:28 +0800 (CST)
When enabling use_zero_pages, pages_sharing cannot represent how much
memory saved indeed. zero_pages_sharing + pages_sharing does. add the
description of zero_pages_sharing.
Link: https://lkml.kernel.org/r/202212300917284911971@zte.com.cn
Signed-off-by: xu xin <xu.xin16@zte.com.cn>
Cc: Xiaokai Ran <ran.xiaokai@zte.com.cn>
Cc: Yang Yang <yang.yang29@zte.com.cn>
Cc: Jiang Xuexin <jiang.xuexin@zte.com.cn>
Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
Cc: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
--- a/Documentation/admin-guide/mm/ksm.rst~ksm-add-zero_pages_sharing-documentation
+++ a/Documentation/admin-guide/mm/ksm.rst
@@ -173,6 +173,13 @@ stable_node_chains
the number of KSM pages that hit the ``max_page_sharing`` limit
stable_node_dups
number of duplicated KSM pages
+zero_pages_sharing
+ how many empty pages are sharing kernel zero page(s) instead of
+ with each other as it would happen normally. Only effective when
+ enabling ``use_zero_pages`` knob.
+
+When enabling ``use_zero_pages``, the sum of ``pages_sharing`` +
+``zero_pages_sharing`` represents how much really saved by KSM.
A high ratio of ``pages_sharing`` to ``pages_shared`` indicates good
sharing, but a high ratio of ``pages_unshared`` to ``pages_sharing``
_
Patches currently in -mm which might be from xu.xin16@zte.com.cn are
ksm-abstract-the-function-try_to_get_old_rmap_item.patch
ksm-support-unsharing-zero-pages-placed-by-ksm.patch
ksm-count-all-zero-pages-placed-by-ksm.patch
ksm-count-zero-pages-for-each-process.patch
ksm-add-zero_pages_sharing-documentation.patch
selftest-add-testing-unsharing-and-counting-ksm-zero-page.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-30 22:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-30 22:01 + ksm-add-zero_pages_sharing-documentation.patch added to mm-unstable branch 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.