From nobody Thu Oct 2 18:36:29 2025 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [160.30.148.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45B7038FA3; Sun, 14 Sep 2025 10:09:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=160.30.148.35 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757844572; cv=none; b=M42s/Duo8YRv3jKK4FowlvFnn0zvKf5UxbBiCO/K8Tznzs/4tvLFaQRfboAAKi2KVu8ERbxBtm9AIhnmuabZYELmbapwkHDETzRxAC8I+cL0xt8HywOhtKiNfHAGo0ZiCSEIsnjFSsqdO8K+Br7TohI9eUinaKSJUWBUqNEL9xo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757844572; c=relaxed/simple; bh=M2ThSKpzt7GdA/27mjv6ElG3/dqKz2T0xkiCRUebYSo=; h=Date:Message-ID:In-Reply-To:References:Mime-Version:From:To:Cc: Subject:Content-Type; b=RgbPQhGaHR+VSN+5pcVKIMmxh9gRPCpbDGzzAox+bHrfbb72TlHQIOggTtSRJvcVsJX4axIbrpFtSvH2LwQvzelYagkAAqqHjtm4tvi6YxmFujZgFZr8NvuhCE3LE4p5Kr0eBVEEElr1FklJGzTzs7Dof55iEKJH9o3+vjt5G8I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zte.com.cn; spf=pass smtp.mailfrom=zte.com.cn; arc=none smtp.client-ip=160.30.148.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zte.com.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zte.com.cn Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4cPkRB344fz8Xs6y; Sun, 14 Sep 2025 18:09:26 +0800 (CST) Received: from xaxapp04.zte.com.cn ([10.99.98.157]) by mse-fl2.zte.com.cn with SMTP id 58EA9Mnv094684; Sun, 14 Sep 2025 18:09:22 +0800 (+08) (envelope-from xu.xin16@zte.com.cn) Received: from mapi (xaxapp01[null]) by mapi (Zmail) with MAPI id mid32; Sun, 14 Sep 2025 18:09:23 +0800 (CST) Date: Sun, 14 Sep 2025 18:09:23 +0800 (CST) X-Zmail-TransId: 2af968c69453eea-683f6 X-Mailer: Zmail v1.0 Message-ID: <202509141809235737ZDUkOKaORJCGqQOQhM9q@zte.com.cn> In-Reply-To: <20250914180031197jk6ngo5pQjpXkNtNsjzSo@zte.com.cn> References: 20250914180031197jk6ngo5pQjpXkNtNsjzSo@zte.com.cn Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 From: To: Cc: , , , , , , , , , , , Subject: =?UTF-8?B?W1BBVENIIHYyIDUvNV0gRG9jdW1lbnRhdGlvbjogYWRkIEtTTSBzdGF0aXN0aWMgY291bnRlcnMgZGVzY3JpcHRpb24gaW4gY2dyb3VwLXYyLnJzdA==?= X-MAIL: mse-fl2.zte.com.cn 58EA9Mnv094684 X-TLS: YES X-SPF-DOMAIN: zte.com.cn X-ENVELOPE-SENDER: xu.xin16@zte.com.cn X-SPF: None X-SOURCE-IP: 10.5.228.133 unknown Sun, 14 Sep 2025 18:09:26 +0800 X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 68C69456.000/4cPkRB344fz8Xs6y Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: xu xin This add KSM-related statistic counters description in cgroup-v2.rst, including "ksm_rmap_items", "ksm_zero_pages", "ksm_merging_pages" and "ksm_profit". Signed-off-by: xu xin --- Documentation/admin-guide/cgroup-v2.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-= guide/cgroup-v2.rst index a1e3d431974c..c8c4faa4e3fd 100644 --- a/Documentation/admin-guide/cgroup-v2.rst +++ b/Documentation/admin-guide/cgroup-v2.rst @@ -1776,6 +1776,23 @@ The following nested keys are defined. up if hugetlb usage is accounted for in memory.current (i.e. cgroup is mounted with the memory_hugetlb_accounting option). + ksm_rmap_items + Number of ksm_rmap_item structures in use. The structure + ksm_rmap_item stores the reverse mapping information for virtual + addresses. KSM will generate a ksm_rmap_item for each + ksm-scanned page of the process. + + ksm_zero_pages + Number of empty pages are merged with kernel zero pages by KSM, + which is only useful when /sys/kernel/mm/ksm/use_zero_pages. + + ksm_merging_pages + Number of pages of this process are involved in KSM merging + (not including ksm_zero_pages). + + ksm_profit + Amount of profitable memory that KSM brings (Saved bytes). + memory.numa_stat A read-only nested-keyed file which exists on non-root cgroups. --=20 2.25.1