以下是自己硬盘读写的简易测试,当记事本用。系统 centos5.10 内核 3.6.7
[root@localhost ~]# hdparm -t -T /dev/sda #####sda是一块80G的固态硬盘
/dev/sda:
Timing cached reads: 45920 MB in 2.00 seconds = 22984.82 MB/sec
Timing buffered disk reads: 766 MB in 3.00 seconds = 255.02 MB/sec
[root@localhost ~]# hdparm -t -T /dev/md0 ####md0是三块2T的硬盘做的软RAID5
/dev/md0:
Timing cached reads: 44828 MB in 2.00 seconds = 22438.62 MB/sec
Timing buffered disk reads: 822 MB in 3.00 seconds = 273.69 MB/sec
[root@localhost ~]# time dd if=/dev/zero of=/home/h/aa.txt bs=1M count=5000 ##### 是三块2T的硬盘做的软RAID5
5000+0 records in
5000+0 records out
5242880000 bytes (5.2 GB) copied, 84.5249 seconds, 62.0 MB/s
real 1m24.549s
user 0m0.004s
sys 0m3.659s
[root@localhost ~]# time dd if=/dev/zero of=/home/h/tmp/aa.txt bs=1M count=5000 ##### 是用内存虚拟的硬盘
5000+0 records in
5000+0 records out
5242880000 bytes (5.2 GB) copied, 1.25972 seconds, 4.2 GB/s
real 0m1.260s
user 0m0.000s
sys 0m1.259s
以下是centos6.4,默认设置
[root@localhost ~]# hdparm -t -T /dev/sda #####sda是一块80G的固态硬盘
/dev/sda:
Timing cached reads: 25528 MB in 2.00 seconds = 12783.28 MB/sec
Timing buffered disk reads: 646 MB in 3.00 seconds = 215.08 MB/sec
[root@localhost ~]# hdparm -t -T /dev/md127p1
/dev/md127p1: ######这个是主板自带的RAID卡做的硬RAID5
Timing cached reads: 25140 MB in 2.00 seconds = 12588.54 MB/sec
Timing buffered disk reads: 942 MB in 3.01 seconds = 313.45 MB/sec
[root@localhost ~]# time dd if=/dev/zero of=/home/h/aa.txt bs=1M count=5000 #####这个是主板自带的RAID卡做的硬RAID5
记录了5000+0 的读入
记录了5000+0 的写出
5242880000字节(5.2 GB)已复制,22.0513 秒,238 MB/秒
real 0m22.496s
user 0m0.005s
sys 0m3.141s
[root@localhost ~]# time dd if=/dev/zero of=/home/h/tmp/aa.txt bs=1M count=5000 ##这是内存虚拟的目录
记录了5000+0 的读入
记录了5000+0 的写出
5242880000字节(5.2 GB)已复制,1.68922 秒,3.1 GB/秒
real 0m1.691s
user 0m0.001s
sys 0m1.684s
[root@localhost ~]# time dd if=/dev/zero of=/root/aa.txt bs=1M count=5000 #####sda是一块80G的固态硬盘
记录了5000+0 的读入
记录了5000+0 的写出
5242880000字节(5.2 GB)已复制,35.4357 秒,148 MB/秒
real 0m35.605s
user 0m0.005s
sys 0m3.103s
从上面来看,软RAID5加ext3文件系统写入只有 62.0 MB/秒,而硬件RAID5 加ext4文件系统 写入达到238 MB/秒
相差很大
阅读(2093) | 评论(0) | 转发(0) |