申明一点:第一次测试阿里云的时候速度非常小,并且dd测试完成MySQL直接down掉了!!悲催!!!桑心!!!
本地机械盘:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
yum install sysstat [root@SHELL ~]# time dd if=/dev/zero of=/tmp/hello.txt bs=1M count=1000 1000+0 records in 1000+0 records out 1048576000 bytes (1.0 GB) copied, 4.10095 s, 256 MB/s real 0m4.171s user 0m0.006s sys 0m1.669s [root@SHELL ~]# iostat -x 1 10 avg-cpu: %user %nice %system %iowait %steal %idle 0.00 0.00 95.83 4.17 0.00 0.00 Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util sda 0.00 84083.33 2.78 2800.00 22.22 716800.00 255.75 158.05 57.67 0.50 139.03 scd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 dm-0 0.00 0.00 2.78 86794.44 22.22 694355.56 8.00 5030.06 59.33 0.02 138.89 dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 |
本地机械盘:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
[root@SHELL ~]# time dd if=/dev/zero of=/tmp/hello.txt bs=64k count=16k conv=fsync 16384+0 records in 16384+0 records out 1073741824 bytes (1.1 GB) copied, 4.1802 s, 257 MB/s real 0m4.224s user 0m0.006s sys 0m1.751s [root@SHELL ~]# iostat -x 1 10 avg-cpu: %user %nice %system %iowait %steal %idle 0.00 0.00 88.73 11.27 0.00 0.00 Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util sda 0.00 96187.32 5.63 3116.90 45.07 797926.76 255.55 162.62 51.77 0.45 140.99 scd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 dm-0 0.00 0.00 5.63 99290.14 45.07 794321.13 8.00 5184.20 51.93 0.01 140.85 dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 |
阿里云磁盘:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[root@hz ~]# time dd if=/dev/zero of=/tmp/hello.txt bs=1M count=1000 1000+0 records in 1000+0 records out 1048576000 bytes (1.0 GB) copied, 18.6142 s, 56.3 MB/s real 0m18.638s user 0m0.001s sys 0m0.934s [byrd@hz ~]$ iostat -x 1 10 avg-cpu: %user %nice %system %iowait %steal %idle 0.00 0.00 6.25 93.75 0.00 0.00 Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util xvda 0.00 10562.50 0.00 1053.12 0.00 92675.00 88.00 149.59 142.82 0.99 104.17 xvdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 |
阿里云磁盘:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[www@hz ~]$ time dd if=/dev/zero of=/tmp/hello.txt bs=64k count=16k conv=fsync 16384+0 records in 16384+0 records out 1073741824 bytes (1.1 GB) copied, 25.4426 s, 42.2 MB/s real 0m25.478s user 0m0.007s sys 0m0.954s [www@hz ~]$ iostat -x 1 30 avg-cpu: %user %nice %system %iowait %steal %idle 0.00 0.00 1.03 98.97 0.00 0.00 Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util xvda 0.00 6449.48 15.46 618.56 618.56 54218.56 86.49 189.97 374.23 1.63 103.09 xvdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 |
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!