aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/node.c
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2008-10-18 23:26:51 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-20 11:52:31 -0400
commit5344b7e648980cc2ca613ec03a56a8222ff48820 (patch)
treef9f8773ae8e38fb91aec52ca9ad2bd81f039b565 /drivers/base/node.c
parentba470de43188cdbff795b5da43a1474523c6c2fb (diff)
vmstat: mlocked pages statistics
Add NR_MLOCK zone page state, which provides a (conservative) count of mlocked pages (actually, the number of mlocked pages moved off the LRU). Reworked by lts to fit in with the modified mlock page support in the Reclaim Scalability series. [kosaki.motohiro@jp.fujitsu.com: fix incorrect Mlocked field of /proc/meminfo] [lee.schermerhorn@hp.com: mlocked-pages: add event counting with statistics] Signed-off-by: Nick Piggin <npiggin@suse.de> 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> 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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/base/node.c b/drivers/base/node.c
index 11a9a05cf554..fb45d88a2446 100644
--- a/drivers/base/node.c
+++ b/drivers/base/node.c
@@ -71,7 +71,8 @@ static ssize_t node_read_meminfo(struct sys_device * dev,
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 73#ifdef CONFIG_UNEVICTABLE_LRU
74 "Node %d Noreclaim: %8lu kB\n" 74 "Node %d Unevictable: %8lu kB\n"
75 "Node %d Mlocked: %8lu kB\n"
75#endif 76#endif
76#ifdef CONFIG_HIGHMEM 77#ifdef CONFIG_HIGHMEM
77 "Node %d HighTotal: %8lu kB\n" 78 "Node %d HighTotal: %8lu kB\n"
@@ -104,6 +105,7 @@ static ssize_t node_read_meminfo(struct sys_device * dev,
104 nid, K(node_page_state(nid, NR_INACTIVE_FILE)), 105 nid, K(node_page_state(nid, NR_INACTIVE_FILE)),
105#ifdef CONFIG_UNEVICTABLE_LRU 106#ifdef CONFIG_UNEVICTABLE_LRU
106 nid, K(node_page_state(nid, NR_UNEVICTABLE)), 107 nid, K(node_page_state(nid, NR_UNEVICTABLE)),
108 nid, K(node_page_state(nid, NR_MLOCK)),
107#endif 109#endif
108#ifdef CONFIG_HIGHMEM 110#ifdef CONFIG_HIGHMEM
109 nid, K(i.totalhigh), 111 nid, K(i.totalhigh),