diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2016-07-26 18:26:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-07-26 19:19:19 -0400 |
commit | 65c453778aea374a46597f4d9826274d1eaf7338 (patch) | |
tree | 4210852e253bcea95da5b2973d7be93a535ee3a1 /mm/vmstat.c | |
parent | fc127da085c26beb89f83ad804cf73422c3b6855 (diff) |
mm, rmap: account shmem thp pages
Let's add ShmemHugePages and ShmemPmdMapped fields into meminfo and
smaps. It indicates how many times we allocate and map shmem THP.
NR_ANON_TRANSPARENT_HUGEPAGES is renamed to NR_ANON_THPS.
Link: http://lkml.kernel.org/r/1466021202-61880-27-git-send-email-kirill.shutemov@linux.intel.com
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmstat.c')
-rw-r--r-- | mm/vmstat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c index cff2f4ec9cce..7997f52935c9 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -733,6 +733,8 @@ const char * const vmstat_text[] = { | |||
733 | "workingset_activate", | 733 | "workingset_activate", |
734 | "workingset_nodereclaim", | 734 | "workingset_nodereclaim", |
735 | "nr_anon_transparent_hugepages", | 735 | "nr_anon_transparent_hugepages", |
736 | "nr_shmem_hugepages", | ||
737 | "nr_shmem_pmdmapped", | ||
736 | "nr_free_cma", | 738 | "nr_free_cma", |
737 | 739 | ||
738 | /* enum writeback_stat_item counters */ | 740 | /* enum writeback_stat_item counters */ |