Linux iostat和little's law

来源:互联网 发布:国外体育直播软件 编辑:程序博客网 时间:2024/04/30 03:42

先看iostat输出:

root@cnFOL:~# iostat -xm 60 10Linux 3.2.0-54-generic-pae (cnFOL)      2013年10月28日  _i686_  (1 CPU)avg-cpu:  %user   %nice %system %iowait  %steal   %idle           0.18    0.06    0.08    0.23    0.00   99.45Device:         rrqm/s   wrqm/s     r/s     w/s    rMB/s    wMB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %utilsda               0.13     0.79    0.30    0.30     0.00     0.00    28.74     0.02   26.44    5.89   46.42   4.31   0.26avg-cpu:  %user   %nice %system %iowait  %steal   %idle           0.07    0.00    0.07    0.13    0.00   99.73Device:         rrqm/s   wrqm/s     r/s     w/s    rMB/s    wMB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %utilsda               0.00     0.20    0.00    0.20     0.00     0.00    16.00     0.00    6.00    0.00    6.00   6.00   0.12

参数注释
r/s:每秒读操作次数
w/s:每秒写操作次数
await:读写操作的平均响应时间
svctm:读写操作的平均服务时间
avgqu-sz:平均队列长度
%util:平均利用率


科特尔法则:
平均队列长度=平均到达速率*平均响应时间*0.001
计算如下:
avgqu-sz=(r/s+w/s)*await*0.001


利用率法则:
平均利用率=平均达到速率*平均服务时间*0.001
计算如下:
%util=(r/s+w/s)*svctm*0.001


By 迦夜

2013-10-28

Good Luck

原创粉丝点击