一则简单的磁盘的iops测试

引用
一则简单的磁盘的iops测试
作者:eygle |English Version 【转载时请以超链接形式标明文章出处和作者信息及本声明】
链接:http://www.eygle.com/archives/2007/07/single_disk_iops.html
站内相关文章|Related Articles Linux many lost ticks 和 NIC Copper Link Down
Redflag Linux安装Oracle 10gR2 RAC记事
DDRdrive 的混合式SSD 超高的IOPS性能指标
OEL Linux与Oracle Validated Configurations
Linux下如何查看文件秒级修改及访问时间
刚刚通过ftp从服务器上下载一个大文件,顺便观察了一下服务器的io负载。
通过iostat获取了以下数据:


[root@jumper init.d]# iostat -d hda 2
Linux 2.4.21-15.EL (jumper.hurray.com.cn) 07/28/2007
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
hda 122.00 14364.00 60.00 28728 120
hda 129.50 14624.00 104.00 29248 208
hda 162.00 14164.00 208.00 28328 416
hda 118.00 12844.00 76.00 25688 152
hda 140.00 16912.00 72.00 33824 144
hda 137.00 16276.00 60.00 32552 120
hda 110.50 12472.00 28.00 24944 56
hda 139.00 16664.00 76.00 33328 152
hda 124.50 13616.00 88.00 27232 176
hda 143.00 16272.00 128.00 32544 256
hda 136.00 17040.00 8.00 34080 16

iostat的tps代表:


tps
Indicate the number of transfers per second that were
issued to the device. A transfer is an I/O request to the
device. Multiple logical requests can be combined into a
single I/O request to the device. A transfer is of inde-
terminate size.

在单存的IO压力下,这个数据可以认为就是表征磁盘处理能力的iops,同时通过vmstat观察系统资源情况:


[gqgai@jumper gqgai]$ vmstat 2
procs memory swap io system cpu
r b swpd free buff cache si so bi bo in cs us sy id wa
1 2 276824 6568 4284 462568 0 0 0 2 1 1 0 0 1 0
0 3 276824 6324 4144 463644 44 98 3186 186 1416 630 0 13 0 86
0 2 276824 6524 4040 463364 22 168 2266 172 929 507 1 6 0 92
0 2 276824 6540 4008 463720 6 114 2338 196 1073 525 2 11 0 87
3 0 276936 6628 4016 463588 76 168 4202 170 1785 652 1 17 0 81
1 2 276948 6388 3968 463752 50 40 3786 88 1686 682 2 16 0 82
1 2 276948 6548 3780 463856 110 92 4074 236 1796 723 1 20 0 79
1 0 276864 6832 3692 464928 88 98 3502 304 1620 733 1 19 0 80
1 0 276864 6452 3628 465464 2 102 5116 168 2400 860 0 26 26 48

此时系统iowait很高,可以近似认为IO负载达到了峰值。
通过下图我们可以看到:


这块磁盘的iops最大可以达到160,而平均在120~140之间。单磁盘的iops速度这么多年没有发生什么太大的变化。

-The End-

猜你喜欢

转载自sealbird.iteye.com/blog/889254