LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1258|回复: 1

linux 怎么设置STAT硬盘

[复制链接]
发表于 2008-5-20 21:47:06 | 显示全部楼层 |阅读模式
在一台装有sata硬盘的系统(P D 双核 3.0)上运行 hdparm -Tt /dev/sda
/dev/sda:
Timing cached reads:   4356 MB in  2.00 seconds = 2178.03 MB/sec
Timing buffered disk reads:  188 MB in  3.02 seconds =  62.24 MB/sec

一台ide硬盘的系统上跑(cpu 赛扬 2.10):
Timing cached reads:   1356 MB in  2.00 seconds = 677.69 MB/sec
Timing buffered disk reads:  150 MB in  3.00 seconds =  49.93 MB/sec
从结果上看,sata应该比ide的好很多,但他们同时运行dd的命令,效果去相反

同时运行 dd=/dev/zero of=block bs=1024000 count=1000

sata硬盘的结果:
1024000000 bytes (1.0 GB) copied, 17.4131 seconds, 58.8 MB/s

real    0m17.612s
user    0m0.003s
sys     0m3.503s

ide硬盘:
1024000000 bytes (1.0 GB) copied, 9.0154 seconds, 114 MB/s

real    0m9.319s
user    0m0.010s
sys     0m3.698s

sata硬盘的需要的时间比ide的多很多,是不是我的sata没有配置好?
系统都是Centos5.0,我用hdparm 也看了相关的设定,几乎都是一样的。
请教高手了,谢谢!

iostat -x

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.07    0.01    0.02    0.03    0.00   99.87

Device:         rrqm/s   wrqm/s   r/s   w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await  svctm  %util
sda               0.06     2.40  0.07  1.46     3.55    30.87    22.38     0.01    7.72   0.57   0.09


avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.11    0.00    0.27    0.67    0.00   98.95

Device:         rrqm/s   wrqm/s   r/s   w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await  svctm  %util
hda               6.27    72.09  0.47  2.74    58.38   596.62   204.22     0.91  283.35   2.64   0.85

看这个结果,好像sata的性能要由于ide的
 楼主| 发表于 2008-5-20 22:01:59 | 显示全部楼层
ide 硬盘 114M/s,让我有点怀疑,能达到这么高吗
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表