Skip to contentSkip to conversation

mm, THP, doc: Add document for thp_swpout/thp_swpout_fallback

PATCH Applied Huang, Ying 2 participants 2 messages May 9, 2018 – May 10, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm, THP, doc: Add document for thp_swpout/thp_swpout_fallback

From: Huang Ying <[email protected]>

Add document for newly added thp_swpout, thp_swpout_fallback fields in /proc/vmstat.

Cc "Kirill A. Shutemov" <[email protected]>
Cc Andrea Arcangeli <[email protected]>
Cc Johannes Weiner <[email protected]>
---
 Documentation/vm/transhuge.rst | 9 +++++++++
 1 file changed, 9 insertions(+)
Documentation/vm/transhuge.rst +9 -0
index 569d182cc973..2c6867fca6ff 100644
@@ -355,6 +355,15 @@ thp_zero_page_alloc_failed
 	is incremented if kernel fails to allocate
 	huge zero page and falls back to using small pages.
 
+thp_swpout
+	is incremented every time a huge page is swapout in one
+	piece without splitting.
+
+thp_swpout_fallback
+	is incremented if a huge page has to be split before swapout.
+	Usually because failed to allocate some continuous swap space
+	for the huge page.
+
 As the system ages, allocating huge pages may be expensive as the
 system uses memory compaction to copy data around memory to free a
 huge page for use. There are some counters in ``/proc/vmstat`` to help
Signature · 1 line
2.16.1