How the util of iostat is computed?

前端 未结 4 1373
失恋的感觉
失恋的感觉 2021-01-30 11:49
iostat -x -d 

can display many i/o statistic info. For util of iostat, the explanation is :

Percentage of CPU time during whic

4条回答
  •  醉酒成梦
    2021-01-30 12:23

    %util means how much time spent writing/reading per unit of time, you can compute it from the mean service time:

    svctm  * (  r/s + w/s )  /1000 
    = 0.66 *(0.24 + 0.57) /1000
    = 0.0005346 
    

    hence 0.05%

    I haven't read your code, but obviously at less than 1 read or write per second it isn't loading the disks that much!

提交回复
热议问题