[PATCH] Docs/admin-guide/cgroup-v2: add missing npn tags to zswap stats
From: Yu Miao
Date: Tue Nov 17 2026 - 01:27:02 EST
The zswap, zswapped and zswap_incomp entries never show up in
memory.numa_stat, so add the 'npn' tag to all three. Also move
zswap_incomp, currently listed between the zswpwb and thp_fault_alloc
counters, next to the zswap and zswapped entries it belongs with.
Signed-off-by: Yu Miao <yumiao@xxxxxxxxxx>
---
Documentation/admin-guide/cgroup-v2.rst | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst
index 9e3c67b02ae2..3f698f109d89 100644
--- a/Documentation/admin-guide/cgroup-v2.rst
+++ b/Documentation/admin-guide/cgroup-v2.rst
@@ -1608,12 +1608,18 @@ The following nested keys are defined.
Amount of cached filesystem data that is swap-backed,
such as tmpfs, shm segments, shared anonymous mmap()s
- zswap
+ zswap (npn)
Amount of memory consumed by the zswap compression backend.
- zswapped
+ zswapped (npn)
Amount of application memory swapped out to zswap.
+ zswap_incomp (npn)
+ Amount of memory used by incompressible pages currently
+ stored in zswap without compression. These pages could not
+ be compressed to a size smaller than PAGE_SIZE, so they are
+ stored as-is.
+
file_mapped
Amount of cached filesystem data mapped with mmap(). Note
that some kernel configurations might account complete
@@ -1765,11 +1771,6 @@ The following nested keys are defined.
zswpwb
Number of pages written from zswap to swap.
- zswap_incomp
- Amount of memory used by incompressible pages currently stored in zswap
- without compression. These pages could not be compressed to
- a size smaller than PAGE_SIZE, so they are stored as-is.
-
thp_fault_alloc (npn)
Number of transparent hugepages which were allocated to satisfy
a page fault. This counter is not present when CONFIG_TRANSPARENT_HUGEPAGE
--
2.43.0