login
Header Space

 
 

iostat problem

July 17, 2008 - 2:43am
Submitted by foxc on July 17, 2008 - 2:43am.
Linux

Hi,all

if I input "iostat -dx" in shell, it will output the followings:

Linux 2.6.20 (genode003) 07/17/2008

Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
sda 0.02 0.68 0.10 0.28 2.34 7.71 1.17 3.85 26.05 0.01 14.26 1.48 0.06

I want to get the %util field in kernel space, what can i do? or how can I calculate this value by other means?

Thanks!

speck-geostationary