Monitoring CPU time
    Matthew Dillon 
    dillon at apollo.backplane.com
       
    Mon Apr  5 09:24:27 PDT 2010
    
    
  
:...
:> >
:> there might be a better way to do this - but you can snag that 
:> particular set of data from vmstat -c 1 ..
:
:Thanks for the tip, it's almost what I want.
:
:FreeBSD:
:$ sysctl kern.cp_time
:kern.cp_time: 1797279 579339 1349174 128959 811149589
:
:DragonFly:
:$ vmstat -c 1 | tail -n 1 | awk '{ print $14,$15,$16 }'
:675875492 705365686 1527141678
:
:Unfortunately, there's no data for nice or interrupt. Time to dig into top
:sources...
:
:-- 
:Francois Tigeot
    systat -pv 1
    In terms of extracting it in a script... I dunno about that.
					-Matt
					Matthew Dillon 
					<dillon at backplane.com>
    
    
More information about the Users
mailing list