Messages in this thread | | | From | KOSAKI Motohiro <> | Subject | Re: [PATCH 4/5] add isolate pages vmstat | Date | Thu, 9 Jul 2009 11:19:06 +0900 (JST) |
| |
> On Tue, 7 Jul 2009, KOSAKI Motohiro wrote: > > > +++ b/include/linux/mmzone.h > > @@ -100,6 +100,8 @@ enum zone_stat_item { > > NR_BOUNCE, > > NR_VMSCAN_WRITE, > > NR_WRITEBACK_TEMP, /* Writeback using temporary buffers */ > > + NR_ISOLATED_ANON, /* Temporary isolated pages from anon lru */ > > + NR_ISOLATED_FILE, /* Temporary isolated pages from file lru */ > > LRU counters are rarer in use then the counters used for dirty pages etc. > > Could you move the counters for reclaim into a separate cacheline? >
Current definition is here.
dirty pages and other frequently used counter stay in first cache line. NR_ISOLATED_(ANON|FILE) and other unfrequently used counter stay in second cache line.
Do you mean we shouldn't use zone_stat_item for it?
--------------------------------------------------------- enum zone_stat_item { /* First 128 byte cacheline (assuming 64 bit words) */ NR_FREE_PAGES, NR_LRU_BASE, NR_INACTIVE_ANON = NR_LRU_BASE, /* must match order of LRU_[IN]ACTIVE */ NR_ACTIVE_ANON, /* " " " " " */ NR_INACTIVE_FILE, /* " " " " " */ NR_ACTIVE_FILE, /* " " " " " */ NR_UNEVICTABLE, /* " " " " " */ NR_MLOCK, /* mlock()ed pages found and moved off LRU */ NR_ANON_PAGES, /* Mapped anonymous pages */ NR_FILE_MAPPED, /* pagecache pages mapped into pagetables. only modified from process context */ NR_FILE_PAGES, NR_FILE_DIRTY, NR_WRITEBACK, NR_SLAB_RECLAIMABLE, NR_SLAB_UNRECLAIMABLE, NR_PAGETABLE, /* used for pagetables */ NR_KERNEL_STACK, /* Second 128 byte cacheline */ NR_UNSTABLE_NFS, /* NFS unstable pages */ NR_BOUNCE, NR_VMSCAN_WRITE, NR_WRITEBACK_TEMP, /* Writeback using temporary buffers */ NR_ISOLATED_ANON, /* Temporary isolated pages from anon lru */ NR_ISOLATED_FILE, /* Temporary isolated pages from file lru */ NR_SHMEM, /* shmem pages (included tmpfs/GEM pages) */ #ifdef CONFIG_NUMA NUMA_HIT, /* allocated in intended node */ NUMA_MISS, /* allocated in non intended node */ NUMA_FOREIGN, /* was intended here, hit elsewhere */ NUMA_INTERLEAVE_HIT, /* interleaver preferred this zone */ NUMA_LOCAL, /* allocation from local node */ NUMA_OTHER, /* allocation from other node */ #endif NR_VM_ZONE_STAT_ITEMS };
| |