Skip to contentSkip to conversation

cgroup: Add documentation for missing zswap memory.stat

PATCH Applied Usama Arif 5 participants 6 messages May 2, 2024 – May 9, 2024

Subsystems (3)
lore
Share & tools
lore

Usama Arif

author
#0 lore raw

v2 cover cgroup: Add documentation for missing zswap memory.stat

This includes zswpin, zswpout and zswpwb.

v1 -> v2:
- Move doc location according to output ordering in memory.stat (Johannes Weiner)

Usama Arif (1):
cgroup: Add documentation for missing zswap memory.stat

 Documentation/admin-guide/cgroup-v2.rst | 9 +++++++++
 1 file changed, 9 insertions(+)
Signature · 1 line
2.43.0
author
#1 lore raw

PATCH v2 1/1 cgroup: Add documentation for missing zswap memory.stat

This includes zswpin, zswpout and zswpwb.

---
 Documentation/admin-guide/cgroup-v2.rst | 9 +++++++++
 1 file changed, 9 insertions(+)
Documentation/admin-guide/cgroup-v2.rst +9 -0
index 17e6e9565156..eaf9e66e472a 100644
@@ -1572,6 +1572,15 @@ PAGE_SIZE multiple when read back.
 	  pglazyfreed (npn)
 		Amount of reclaimed lazyfree pages
 
+	  zswpin
+		Number of pages moved in to memory from zswap.
+
+	  zswpout
+		Number of pages moved out of memory to zswap.
+
+	  zswpwb
+		Number of pages written from zswap to swap.
+
 	  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
Signature · 1 line
2.43.0
Acked-by on v2 1/1
#2 lore raw
Quoted 13 lines · Usama Arif

This includes zswpin, zswpout and zswpwb.

---
 Documentation/admin-guide/cgroup-v2.rst | 9 +++++++++
 1 file changed, 9 insertions(+)
Documentation/admin-guide/cgroup-v2.rst +0 -0
index 17e6e9565156..eaf9e66e472a 100644

Documentation/admin-guide/cgroup-v2.rst PAGE_SIZE multiple when read back. · line 1576

Quoted 5 lines
Documentation/admin-guide/cgroup-v2.rst +2 -0
@@ -1572,6 +1572,15 @@ PAGE_SIZE multiple when read back.
          pglazyfreed (npn)
                Amount of reclaimed lazyfree pages
 
+         zswpin
+               Number of pages moved in to memory from zswap.

nit: into?

Quoted 11 lines
Documentation/admin-guide/cgroup-v2.rst +7 -1
+
+         zswpout
+               Number of pages moved out of memory to zswap.
+
+         zswpwb
+               Number of pages written from zswap to swap.
+
          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
--
Quoted 2 lines

2.43.0

That very small nit aside, LGTM. Thanks for completing the documentation.

Reviewed-by on v2 1/1
#3 lore raw
In reply to Usama Arif
Quoted 10 lines · Usama Arif
Documentation/admin-guide/cgroup-v2.rst +2 -0
index 17e6e9565156..eaf9e66e472a 100644
@@ -1572,6 +1572,15 @@ PAGE_SIZE multiple when read back.
 	  pglazyfreed (npn)
 		Amount of reclaimed lazyfree pages
 
+	  zswpin
+		Number of pages moved in to memory from zswap.

Documentation/admin-guide/cgroup-v2.rst PAGE_SIZE multiple when read back. · line 1586

Quoted 10 lines
Documentation/admin-guide/cgroup-v2.rst +7 -0
+
+	  zswpout
+		Number of pages moved out of memory to zswap.
+
+	  zswpwb
+		Number of pages written from zswap to swap.
+
 	  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

LGTM, thanks!

Signature · 1 line
An old man doll... just what I always wanted! - Clara
maintainer Applied
#5 lore raw
In reply to Usama Arif
Quoted 14 lines · Usama Arif

This includes zswpin, zswpout and zswpwb.

---
 Documentation/admin-guide/cgroup-v2.rst | 9 +++++++++
 1 file changed, 9 insertions(+)
Documentation/admin-guide/cgroup-v2.rst +0 -0
index 17e6e9565156..eaf9e66e472a 100644
@@ -1572,6 +1572,15 @@ PAGE_SIZE multiple when read back.
 	  pglazyfreed (npn)
 		Amount of reclaimed lazyfree pages

Documentation/admin-guide/cgroup-v2.rst PAGE_SIZE multiple when read back. · line 1583

Quoted 10 lines
Documentation/admin-guide/cgroup-v2.rst +9 -0
 
+	  zswpin
+		Number of pages moved in to memory from zswap.
+
+	  zswpout
+		Number of pages moved out of memory to zswap.
+
+	  zswpwb
+		Number of pages written from zswap to swap.
+

Applied, thanks.

jon