使用Linux 自带的dd命令测试硬盘的读写速度。
上一篇 /
下一篇 2013-01-31 17:24:50
/ 个人分类:LINUX
]c#^]fcF4h/G0使用Linux 自带的dd命令测试硬盘的读写速度。
S
x5bt
zu'{0 51Testing软件测试网Sf.b a7Q
time有计时作用,dd用于复制,从if读出,写到of。if=/dev/zero不产生IO,因此可以用来测试纯写速度。同理of=/dev/null不产生IO,可以用来测试纯读速度。bs是每次读或写的大小,即一个块的大小,count是读写块的数量。
sFEz0@0 51Testing软件测试网!p3p!{pB
测/data目录所在磁盘的纯写速度:
l"`OXG8bxG G0[root@asg ~]# time dd if=/dev/zero of=/var/data/1GB.FILE bs=1024 count=100000051Testing软件测试网;ZZ.zP)h)FSu
s
1000000+0 records in
%`?]:Ot01000000+0 records out51Testing软件测试网U"r
f
A-K
1024000000 bytes (1.0 GB) copied, 3.49715 seconds, 293 MB/s
5rHm$g,W%V7Nwl;U051Testing软件测试网9[u4QO#}real 0m5.601s
;dJ|W Tr:g!a0user 0m0.303s51Testing软件测试网t'h[ f[*{
p;f9H,U
sys 0m3.414s
C-d#z&P&Yj)M051Testing软件测试网R(I+r{'u iX51Testing软件测试网pI:`:f;un
N
51Testing软件测试网 O.UJ,unl+KmhC!n
测/data目录所在磁盘的纯读速度:51Testing软件测试网X
n*fX;hZw+|K
51Testing软件测试网$U}6SR.emt&o
[root@nagios ~]# [root@asg ~]# time dd if=/var/data/1GB.FILE of=/dev/null bs=1024 count=10000000
e"Qq4d |$]w4Q+_01000000+0 records in
k+A.\;l)dn+m|6{01000000+0 records out
0e:N#v6U|V
Pka5g&Bu01024000000 bytes (1.0 GB) copied, 1.48336 seconds, 690 MB/s
*U.f+M&QBJV051Testing软件测试网J}s"?creal 0m1.484s51Testing软件测试网6QSfUp,c$YJ1z
user 0m0.303s51Testing软件测试网#sv*W x~4w&s
sys 0m1.177s
frQ6| [6f\7K7J2Z0m8_7S!l(q f @!@'K b0 51Testing软件测试网X~'` VH*QN
i^\V7IGHwi4u051Testing软件测试网d0Y7r-wA$r7?
51Testing软件测试网tV3Ow4m:`xX;E
收藏
举报
TAG: