Unreclaimable pages: Add ZVC for file backed pages and unreclaimable anon pages. Add a ZVC for unreclaimable file backed pages and unreclaimable anonymous pages. Signed-off-by: Christoph Lameter Index: linux-2.6/include/linux/mmzone.h =================================================================== --- linux-2.6.orig/include/linux/mmzone.h 2007-07-31 18:43:17.000000000 -0700 +++ linux-2.6/include/linux/mmzone.h 2007-07-31 18:43:31.000000000 -0700 @@ -55,17 +55,17 @@ struct zone_padding { #endif enum zone_stat_item { - /* First 128 byte cacheline (assuming 64 bit words) */ NR_FREE_PAGES, NR_INACTIVE, NR_ACTIVE, - NR_ANON_PAGES, /* Mapped anonymous pages */ + NR_ANON_PAGES, /* Mapped anonymous pages */ + NR_ANON_UNRECLAIMABLE, /* Unreclaimable mlock? */ NR_FILE_MAPPED, /* pagecache pages mapped into pagetables. only modified from process context */ NR_FILE_PAGES, NR_FILE_DIRTY, + NR_FILE_UNRECLAIMABLE, /* Unreclaimable -> ramfs ? */ NR_WRITEBACK, - /* Second 128 byte cacheline */ NR_SLAB_RECLAIMABLE, NR_SLAB_UNRECLAIMABLE, NR_PAGETABLE, /* used for pagetables */ Index: linux-2.6/mm/vmstat.c =================================================================== --- linux-2.6.orig/mm/vmstat.c 2007-07-31 18:43:17.000000000 -0700 +++ linux-2.6/mm/vmstat.c 2007-07-31 18:43:31.000000000 -0700 @@ -481,8 +481,10 @@ static const char * const vmstat_text[] "nr_inactive", "nr_active", "nr_anon_pages", + "nr_anon_unreclaimable", "nr_mapped", "nr_file_pages", + "nr_file_unreclaimable", "nr_dirty", "nr_writeback", "nr_slab_reclaimable",