diff options
author | Larry Woodman <lwoodman@redhat.com> | 2008-02-04 22:29:30 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 09:44:19 -0800 |
commit | e6f3602d2c58815775b2a293cec6650622236169 (patch) | |
tree | 84721b0074e745474c7e71f53d58b6211cf30c40 | |
parent | a2b345642f530054a92b8d2b5108436225a8093e (diff) |
Include count of pagecache pages in show_mem() output
The show_mem() output does not include the total number of pagecache
pages. This would be helpful when analyzing the debug information in
the /var/log/messages file after OOM kills occur.
This patch includes the total pagecache pages in that output.
Signed-off-by: Larry Woodman <lwoodman@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/page_alloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index d73c133fdbe..37576b822f0 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1874,6 +1874,8 @@ void show_free_areas(void) printk("= %lukB\n", K(total)); } + printk("%ld total pagecache pages\n", global_page_state(NR_FILE_PAGES)); + show_swap_cache_info(); } |