diff options
author | Nick Piggin <npiggin@suse.de> | 2008-10-18 23:26:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-20 11:52:31 -0400 |
commit | 5344b7e648980cc2ca613ec03a56a8222ff48820 (patch) | |
tree | f9f8773ae8e38fb91aec52ca9ad2bd81f039b565 /fs/proc | |
parent | ba470de43188cdbff795b5da43a1474523c6c2fb (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 'fs/proc')
-rw-r--r-- | fs/proc/proc_misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index 6dd60eaea997..61b25f4eabe6 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c | |||
@@ -176,6 +176,7 @@ static int meminfo_read_proc(char *page, char **start, off_t off, | |||
176 | "Inactive(file): %8lu kB\n" | 176 | "Inactive(file): %8lu kB\n" |
177 | #ifdef CONFIG_UNEVICTABLE_LRU | 177 | #ifdef CONFIG_UNEVICTABLE_LRU |
178 | "Unevictable: %8lu kB\n" | 178 | "Unevictable: %8lu kB\n" |
179 | "Mlocked: %8lu kB\n" | ||
179 | #endif | 180 | #endif |
180 | #ifdef CONFIG_HIGHMEM | 181 | #ifdef CONFIG_HIGHMEM |
181 | "HighTotal: %8lu kB\n" | 182 | "HighTotal: %8lu kB\n" |
@@ -217,6 +218,7 @@ static int meminfo_read_proc(char *page, char **start, off_t off, | |||
217 | K(pages[LRU_INACTIVE_FILE]), | 218 | K(pages[LRU_INACTIVE_FILE]), |
218 | #ifdef CONFIG_UNEVICTABLE_LRU | 219 | #ifdef CONFIG_UNEVICTABLE_LRU |
219 | K(pages[LRU_UNEVICTABLE]), | 220 | K(pages[LRU_UNEVICTABLE]), |
221 | K(global_page_state(NR_MLOCK)), | ||
220 | #endif | 222 | #endif |
221 | #ifdef CONFIG_HIGHMEM | 223 | #ifdef CONFIG_HIGHMEM |
222 | K(i.totalhigh), | 224 | K(i.totalhigh), |