• Andrew Morton's avatar
    [PATCH] add /proc/vmstat (start of /proc/stat cleanup) · 15e19695
    Andrew Morton authored
    Moves the VM accounting out of /proc/stat and into /proc/vmstat.
    
    The VM accounting is now per-cpu.
    
    It also moves kstat.pgpgin and kstat.pgpgout into /proc/vmstat.
    Which is a bit of a duplication of /proc/diskstats (SARD), but it's
    easy, super-cheap and makes life a lot easier for all the system
    monitoring applications which we just broke.
    
    We now require procps 2.0.9.
    
    Updated versions of top and vmstat are available at http://surriel.com
    and the Cygnus CVS is uptodate for these changes.  (Rik has the CVS
    info at the above site).
    
    This tidies up kernel_stat quite a lot - it now only contains CPU
    things (interrupts and CPU loads) and disk things.  So we now have:
    
    /proc/stat:	CPU things and disk things
    /proc/vmstat:	VM things	(plus pgpgin, pgpgout)
    
    The SARD patch removes the disk things from /proc/stat as well.
    15e19695
vmscan.c 22.2 KB