summaryrefslogtreecommitdiffstats
path: root/mm/vmstat.c
diff options
context:
space:
mode:
authorLee Schermerhorn2008-10-19 05:26:40 +0200
committerLinus Torvalds2008-10-20 17:50:26 +0200
commit7b854121eb3e5ba0241882ff939e2c485228c9c5 (patch)
treee553bc3b3c2be3b36cfcce5219b2ef85646ea495 /mm/vmstat.c
parentunevictable lru: add event counting with statistics (diff)
downloadkernel-qcow2-linux-7b854121eb3e5ba0241882ff939e2c485228c9c5.tar.gz
kernel-qcow2-linux-7b854121eb3e5ba0241882ff939e2c485228c9c5.tar.xz
kernel-qcow2-linux-7b854121eb3e5ba0241882ff939e2c485228c9c5.zip
Unevictable LRU Page Statistics
Report unevictable pages per zone and system wide. Kosaki Motohiro added support for memory controller unevictable statistics. [riel@redhat.com: fix printk in show_free_areas()] [akpm@linux-foundation.org: fix units in /proc/vmstats] Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com> Signed-off-by: Rik van Riel <riel@redhat.com> Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Debugged-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c
index 6cb08cdd4f03..6db2f6319313 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -623,6 +623,9 @@ static const char * const vmstat_text[] = {
"nr_active_anon",
"nr_inactive_file",
"nr_active_file",
+#ifdef CONFIG_UNEVICTABLE_LRU
+ "nr_unevictable",
+#endif
"nr_anon_pages",
"nr_mapped",
"nr_file_pages",