]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Show more stats in the sysrq-M output
authorAndrew Morton <akpm@osdl.org>
Thu, 1 Apr 2004 05:52:31 +0000 (21:52 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 1 Apr 2004 05:52:31 +0000 (21:52 -0800)
Display number of slab, mapped and pagetable pages in the sysrq-M output.

mm/page_alloc.c

index dbdd232a49e094f60f8a368c748154a83064894d..5d035d836c154de4de4483e2360883553ee85b35 100644 (file)
@@ -1044,13 +1044,16 @@ void show_free_areas(void)
                K(nr_free_highpages()));
 
        printk("Active:%lu inactive:%lu dirty:%lu writeback:%lu "
-               "unstable:%lu free:%u\n",
+               "unstable:%lu free:%u slab:%lu mapped:%lu pagetables:%lu\n",
                active,
                inactive,
                ps.nr_dirty,
                ps.nr_writeback,
                ps.nr_unstable,
-               nr_free_pages());
+               nr_free_pages(),
+               ps.nr_slab,
+               ps.nr_mapped,
+               ps.nr_page_table_pages);
 
        for_each_zone(zone) {
                show_node(zone);