• Christoph Lameter's avatar
    [PATCH] Use Zoned VM Counters for NUMA statistics · ca889e6c
    Christoph Lameter authored
    The numa statistics are really event counters.  But they are per node and
    so we have had special treatment for these counters through additional
    fields on the pcp structure.  We can now use the per zone nature of the
    zoned VM counters to realize these.
    
    This will shrink the size of the pcp structure on NUMA systems.  We will
    have some room to add additional per zone counters that will all still fit
    in the same cacheline.
    
     Bits	Prior pcp size	  	Size after patch	We can add
     ------------------------------------------------------------------
     64	128 bytes (16 words)	80 bytes (10 words)	48
     32	 76 bytes (19 words)	56 bytes (14 words)	8 (64 byte cacheline)
    							72 (128 byte)
    
    Remove the special statistics for numa and replace them with zoned vm
    counters.  This has the side effect that global sums of these events now
    show up in /proc/vmstat.
    
    Also take the opportunity to move the zone_statistics() function from
    page_alloc.c into vmstat.c.
    
    Discussions:
    V2 http://marc.theaimsgroup.com/?t=115048227000002&r=1&w=2Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
    Acked-by: default avatarAndi Kleen <ak@suse.de>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    ca889e6c
page_alloc.c 62.4 KB