diff options
Diffstat (limited to 'arch/i386/mm/pgtable.c')
-rw-r--r-- | arch/i386/mm/pgtable.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/i386/mm/pgtable.c b/arch/i386/mm/pgtable.c index 80c84cdf22ef..270c59f099a4 100644 --- a/arch/i386/mm/pgtable.c +++ b/arch/i386/mm/pgtable.c | |||
@@ -30,6 +30,7 @@ void show_mem(void) | |||
30 | struct page *page; | 30 | struct page *page; |
31 | pg_data_t *pgdat; | 31 | pg_data_t *pgdat; |
32 | unsigned long i; | 32 | unsigned long i; |
33 | struct page_state ps; | ||
33 | 34 | ||
34 | printk("Mem-info:\n"); | 35 | printk("Mem-info:\n"); |
35 | show_free_areas(); | 36 | show_free_areas(); |
@@ -53,6 +54,13 @@ void show_mem(void) | |||
53 | printk("%d reserved pages\n",reserved); | 54 | printk("%d reserved pages\n",reserved); |
54 | printk("%d pages shared\n",shared); | 55 | printk("%d pages shared\n",shared); |
55 | printk("%d pages swap cached\n",cached); | 56 | printk("%d pages swap cached\n",cached); |
57 | |||
58 | get_page_state(&ps); | ||
59 | printk("%lu pages dirty\n", ps.nr_dirty); | ||
60 | printk("%lu pages writeback\n", ps.nr_writeback); | ||
61 | printk("%lu pages mapped\n", ps.nr_mapped); | ||
62 | printk("%lu pages slab\n", ps.nr_slab); | ||
63 | printk("%lu pages pagetables\n", ps.nr_page_table_pages); | ||
56 | } | 64 | } |
57 | 65 | ||
58 | /* | 66 | /* |