lkml.org 
[lkml]   [2008]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[Patch] 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>


--- linux-2.6.23/mm/page_alloc.c.orig 2008-01-07 13:26:00.228823000 -0500
+++ linux-2.6.23/mm/page_alloc.c 2008-01-07 13:33:18.105448000 -0500
@@ -1644,6 +1644,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();
}
\
 
 \ /
  Last update: 2008-01-07 20:17    [W:0.026 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site