eygle.com   eygle.com
eygle.com eygle
eygle.com  
 

« 记录一下Drop表空间的速度 | Blog首页 | 遭遇Magpie多年前的一个Bug »

一则简单的磁盘的iops测试
modb.pro

刚刚通过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-


历史上的今天...
    >> 2020-07-28文章:
    >> 2011-07-28文章:
    >> 2010-07-28文章:
    >> 2008-07-28文章:
    >> 2006-07-28文章:
           Windows Xp重新安装备忘
    >> 2005-07-28文章:
           瑞典游记-预告篇

By eygle on 2007-07-28 10:19 | Comments (0) | System | 1519 |


CopyRight © 2004~2020 云和恩墨,成就未来!, All rights reserved.
数据恢复·紧急救援·性能优化 云和恩墨 24x7 热线电话:400-600-8755 业务咨询:010-59007017-7040 or 7037 业务合作: marketing@enmotech.com