Skip to content

Commit

Permalink
mm, THP, doc: Add document for thp_swpout/thp_swpout_fallback
Browse files Browse the repository at this point in the history
Add document for newly added thp_swpout, thp_swpout_fallback fields in
/proc/vmstat.

Signed-off-by: "Huang, Ying" <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Johannes Weiner <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
  • Loading branch information
yhuang-intel authored and Jonathan Corbet committed May 10, 2018
1 parent 9167b94 commit 8d420f6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Documentation/vm/transhuge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d420f6

Please sign in to comment.