SSD读写速度测试

测试环境

在EXSI上,基于PCIE SSD和普通的SSD磁盘,创建了2个规格一样的虚拟机:
2*2 cpu, 4GB mem, 60 disk
vm1:pcie ssd
vm2:普通ssd

测试工具

hdparm
dd

测试

读测试

方法

hdparm -Tt /dev/sda

vm1读

[root@localhost yum.repos.d]# hdparm -Tt /dev/sda

/dev/sda:
 Timing cached reads:   14990 MB in  2.00 seconds = 7502.14 MB/sec
 Timing buffered disk reads: 4690 MB in  3.00 seconds = 1563.14 MB/sec

vm2读

[root@lin yum.repos.d]# hdparm -Tt /dev/sda

/dev/sda:
 Timing cached reads:   14268 MB in  2.00 seconds = 7141.10 MB/sec
 Timing buffered disk reads: 3514 MB in  3.00 seconds = 1171.30 MB/sec

写测试

vm1写

[root@localhost ~]# time dd if=/dev/zero of=/test.dbf bs=8k count=300000
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB) copied, 3.04928 s, 806 MB/s

real    0m3.053s
user    0m0.032s
sys 0m1.757s

vm2写

[root@lin ~]# time dd if=/dev/zero of=/test.dbf bs=8k count=300000
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB) copied, 6.72985 s, 365 MB/s

real    0m6.732s
user    0m0.026s
sys 0m1.912s

总结

基于虚拟化的环境,目前测试结论:
服务器SSD(EXSI VM): 读:1171.30 MB/sec, 写:365 MB/s
PCI-E SSD(EXSI VM): 读:1563.14 MB/sec, 写:806 MB/s
服务器SSD(物理10块做RAID5): 读:2285.58 MB/sec, 写:1.1 GB/s
服务器SSD(物理2块做RAID1): 读:787.79 MB/sec, 写:336 MB/s

但网上有对一款PCI-E的物理测试结果是:读:2631MB/s,写:1214MB/s

你可能感兴趣的:(SSD读写速度测试)