diff options
author | Lee Schermerhorn <Lee.Schermerhorn@hp.com> | 2008-10-18 23:26:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-20 11:50:26 -0400 |
commit | 7b854121eb3e5ba0241882ff939e2c485228c9c5 (patch) | |
tree | e553bc3b3c2be3b36cfcce5219b2ef85646ea495 /drivers/base/node.c | |
parent | bbfd28eee9fbd73e780b19beb3dc562befbb94fa (diff) |
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 'drivers/base/node.c')
-rw-r--r-- | drivers/base/node.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/base/node.c b/drivers/base/node.c index fc7e9bf0cdbc..11a9a05cf554 100644 --- a/drivers/base/node.c +++ b/drivers/base/node.c | |||
@@ -70,6 +70,9 @@ static ssize_t node_read_meminfo(struct sys_device * dev, | |||
70 | "Node %d Inactive(anon): %8lu kB\n" | 70 | "Node %d Inactive(anon): %8lu kB\n" |
71 | "Node %d Active(file): %8lu kB\n" | 71 | "Node %d Active(file): %8lu kB\n" |
72 | "Node %d Inactive(file): %8lu kB\n" | 72 | "Node %d Inactive(file): %8lu kB\n" |
73 | #ifdef CONFIG_UNEVICTABLE_LRU | ||
74 | "Node %d Noreclaim: %8lu kB\n" | ||
75 | #endif | ||
73 | #ifdef CONFIG_HIGHMEM | 76 | #ifdef CONFIG_HIGHMEM |
74 | "Node %d HighTotal: %8lu kB\n" | 77 | "Node %d HighTotal: %8lu kB\n" |
75 | "Node %d HighFree: %8lu kB\n" | 78 | "Node %d HighFree: %8lu kB\n" |
@@ -99,6 +102,9 @@ static ssize_t node_read_meminfo(struct sys_device * dev, | |||
99 | nid, K(node_page_state(nid, NR_INACTIVE_ANON)), | 102 | nid, K(node_page_state(nid, NR_INACTIVE_ANON)), |
100 | nid, K(node_page_state(nid, NR_ACTIVE_FILE)), | 103 | nid, K(node_page_state(nid, NR_ACTIVE_FILE)), |
101 | nid, K(node_page_state(nid, NR_INACTIVE_FILE)), | 104 | nid, K(node_page_state(nid, NR_INACTIVE_FILE)), |
105 | #ifdef CONFIG_UNEVICTABLE_LRU | ||
106 | nid, K(node_page_state(nid, NR_UNEVICTABLE)), | ||
107 | #endif | ||
102 | #ifdef CONFIG_HIGHMEM | 108 | #ifdef CONFIG_HIGHMEM |
103 | nid, K(i.totalhigh), | 109 | nid, K(i.totalhigh), |
104 | nid, K(i.freehigh), | 110 | nid, K(i.freehigh), |