cvs commit: src/usr.bin/vmstat Makefile vmstat.8 vmstat.c

Pieter de Goeje pieter at degoeje.nl
Fri Jan 18 12:42:43 PST 2008


On Thursday 13 December 2007, Peter Wemm wrote:
> peter       2007-12-13 02:36:11 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     usr.bin/vmstat       Makefile vmstat.8 vmstat.c
>   Log:
>   Add the -H, -h and -P flags to vmstat.  -P causes per-cpu output of
>   user/system/idle stats.  -h feeds the memory column through
>   humanize_number() to reduce the amount of column overflowing.  -H turns
>   this off.  -h is turned on by default if stdout is a tty.
>
>   Revision  Changes    Path
>   1.13      +2 -2      src/usr.bin/vmstat/Makefile
>   1.37      +9 -1      src/usr.bin/vmstat/vmstat.8
>   1.99      +196 -17   src/usr.bin/vmstat/vmstat.c

I noticed vmstat dumps stats from all kern.smp.maxcpus CPUs on screen when 
using -P. Attached patch fixes the problem.

Cheers,
Pieter de Goeje
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vmstat.patch
Type: text/x-diff
Size: 830 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-all/attachments/20080118/6109e4ef/vmstat.bin


More information about the cvs-all mailing list