blob: 249948dc888651238531d59bc964fa0fa194068f [file] [log] [blame]
From: xu xin <xu.xin16@zte.com.cn>
Subject: Documentation: add ksm_stat description in cgroup-v2.rst
Date: Thu, 1 May 2025 04:17:39 +0000
This updates ksm_stat description in cgroup-v2.rst.
Link: https://lkml.kernel.org/r/20250501041739.3324672-1-xu.xin16@zte.com.cn
Signed-off-by: xu xin <xu.xin16@zte.com.cn>
Cc: David Hildenbrand <david@redhat.com>
Cc: Haonan Chen <chen.haonan2@zte.com.cn>
Cc: Wang Yaxin <wang.yaxin@zte.com.cn>
Cc: Yang Yang <yang.yang29@zte.com.cn>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
Documentation/admin-guide/cgroup-v2.rst | 12 ++++++++++++
1 file changed, 12 insertions(+)
--- a/Documentation/admin-guide/cgroup-v2.rst~documentation-add-ksm_stat-description-in-cgroup-v2rst
+++ a/Documentation/admin-guide/cgroup-v2.rst
@@ -1739,6 +1739,18 @@ The following nested keys are defined.
The entries can refer to the memory.stat.
+ memory.ksm_stat
+ A read-only nested-keyed file.
+
+ The file can be used to observe the ksm merging status of the
+ processes within an memory cgroup. There are four items
+ including "ksm_rmap_items", "ksm_zero_pages", "ksm_merging_pages"
+ and "ksm_profit".
+
+ See
+ :ref:`Documentation/admin-guide/cgroup-v1/memory.rst ksm_stat <memcg_ksm_stat>`
+ for details.
+
memory.swap.current
A read-only single value file which exists on non-root
cgroups.
_