how to count %util from iostat ?



Hi
If someone know how to count %util value from iostat will be nice if
you share this informaction with me.
What I know ?
util=S_VALUE( ioj->ticks, ioi->tot_ticks, itv )
S_VALUE (ioj->ticks - ioi->tot_ticks / itv * 100)

and here is my problem, I don't know what is ioi->tot_ticks and from
where to taki it ?

tot_ticks - of ticks total (for this device ) for I/O

From where I will be know which disk will be counting ??
and from where i have to takie ticks for this device ??
/proc/diskstats /proc/stat ???

Thx
.



Relevant Pages

  • Re: paging help is needed
    ... storage, raid 10 ... read rate and read per second values in iostat are very low. ... await svctm %util ...
    (linux.redhat)
  • abnormal behavior of hard drive
    ... 2.4.21-15.0.4.EL kernel, with a ST380021A hard ... The avgqu-sz of hda is always very long, and util% is always close to ... Since iostat just read info /proc, so abnormal behavior of the hard ... drive itself, or disk controller, or ide bus or ...
    (comp.os.linux)
  • Strang iostat numbers
    ... We have a bad performance issue in one of our database servers and I´ve ... discovered very iostat strange numbers. ... The server is showing up normally 100.00% disk utilization but this morning ... avgrq-sz avgqu-sz await svctm %util ...
    (Fedora)
  • iostat comment
    ... This is my iostat -x 5 output: ... await svctm %util ... rrqm/s, but how can i understand how much data i transfer? ...
    (linux.redhat)
  • iostat and df -k mismatch
    ... Why does iostat not shows the all devices in df -k? ... [oracle@tanidw1 proc]$ df -k ... await svctm %util ...
    (RedHat)