aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/vm/transhuge.txt
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>2012-12-12 16:51:09 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-12 20:38:32 -0500
commitd8a8e1f0da3d29d7268b3300c96a059d63901b76 (patch)
tree46bd195f1cf4fd66c87f7d16c6bf043ad7fda9ff /Documentation/vm/transhuge.txt
parent97ae17497e996ff09bf97b6db3b33f7fd4029092 (diff)
thp, vmstat: implement HZP_ALLOC and HZP_ALLOC_FAILED events
hzp_alloc is incremented every time a huge zero page is successfully allocated. It includes allocations which where dropped due race with other allocation. Note, it doesn't count every map of the huge zero page, only its allocation. hzp_alloc_failed is incremented if kernel fails to allocate huge zero page and falls back to using small pages. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: "H. Peter Anvin" <hpa@linux.intel.com> Cc: Mel Gorman <mel@csn.ul.ie> Cc: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/vm/transhuge.txt')
-rw-r--r--Documentation/vm/transhuge.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/vm/transhuge.txt b/Documentation/vm/transhuge.txt
index 8f5b41db314..60aeedd5461 100644
--- a/Documentation/vm/transhuge.txt
+++ b/Documentation/vm/transhuge.txt
@@ -197,6 +197,14 @@ thp_split is incremented every time a huge page is split into base
197 pages. This can happen for a variety of reasons but a common 197 pages. This can happen for a variety of reasons but a common
198 reason is that a huge page is old and is being reclaimed. 198 reason is that a huge page is old and is being reclaimed.
199 199
200thp_zero_page_alloc is incremented every time a huge zero page is
201 successfully allocated. It includes allocations which where
202 dropped due race with other allocation. Note, it doesn't count
203 every map of the huge zero page, only its allocation.
204
205thp_zero_page_alloc_failed is incremented if kernel fails to allocate
206 huge zero page and falls back to using small pages.
207
200As the system ages, allocating huge pages may be expensive as the 208As the system ages, allocating huge pages may be expensive as the
201system uses memory compaction to copy data around memory to free a 209system uses memory compaction to copy data around memory to free a
202huge page for use. There are some counters in /proc/vmstat to help 210huge page for use. There are some counters in /proc/vmstat to help