您的位置:首页 > 运维架构 > Linux

Linux iostat和little's law

2013-10-28 13:53 615 查看
先看iostat输出:
root@cnFOL:~# iostat -xm 60 10
Linux 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.45

Device: rrqm/s wrqm/s r/s w/s rMB/s wMB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 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.26

avg-cpu: %user %nice %system %iowait %steal %idle
0.07 0.00 0.07 0.13 0.00 99.73

Device: rrqm/s wrqm/s r/s w/s rMB/s wMB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  iostat