三豐雲磁盤測評

申請免費虛擬主機或免費雲服務器地址
https://www.sanfengyun.com

write

用dd命令進行測試,以每次寫入8k的數據,執行300000次,time命令顯示執行過程的時間,執行完成後生成test.disk文件,大小爲2.3G,下面是三豐雲免費雲服務器寫入速度:

root@ubuntu:~# rm -rf /tmp/test.disk* && date && time dd if=/dev/zero of=/tmp/test.disk bs=8k count=300000
2019年 07月 08日 星期一 13:36:05 CST
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB, 2.3 GiB) copied, 2.92944 s, 839 MB/s

real    0m2.931s
user    0m0.068s
sys 0m2.328s
root@ubuntu:~# rm -rf /tmp/test.disk* && date && time dd if=/dev/zero of=/tmp/test.disk bs=8k count=300000
2019年 07月 08日 星期一 13:36:56 CST
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB, 2.3 GiB) copied, 3.95943 s, 621 MB/s

real    0m3.961s
user    0m0.060s
sys 0m2.280s
root@ubuntu:~# rm -rf /tmp/test.disk* && date && time dd if=/dev/zero of=/tmp/test.disk bs=8k count=300000
2019年 07月 08日 星期一 13:37:02 CST
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB, 2.3 GiB) copied, 2.974 s, 826 MB/s

real    0m2.986s
user    0m0.052s
sys 0m2.340s

read

使用dd命令讀取test.disk文件

root@ubuntu:~# date && time dd if=/tmp/test.disk of=/dev/null bs=8k
2019年 07月 08日 星期一 13:45:16 CST
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB, 2.3 GiB) copied, 5.8166 s, 423 MB/s

real    0m5.825s
user    0m0.044s
sys 0m0.984s
root@ubuntu:~# date && time dd if=/tmp/test.disk of=/dev/null bs=8k
2019年 07月 08日 星期一 13:45:25 CST
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB, 2.3 GiB) copied, 6.09449 s, 403 MB/s

real    0m6.097s
user    0m0.024s
sys 0m1.004s
root@ubuntu:~# date && time dd if=/tmp/test.disk of=/dev/null bs=8k
2019年 07月 08日 星期一 13:45:32 CST
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB, 2.3 GiB) copied, 6.10982 s, 402 MB/s

real    0m6.112s
user    0m0.036s
sys 0m0.992s

read & write

用剛剛在上面測試寫速度生成的大小爲2.3G的test.disk文件,將其拷貝爲test.disk1文件,測試磁盤讀取和寫入的速度

root@ubuntu:~# rm -f /tmp/test.disk1 && date && time dd if=/tmp/test.disk of=/tmp/test.disk1 bs=8k
2019年 07月 08日 星期一 13:51:52 CST
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB, 2.3 GiB) copied, 9.93151 s, 247 MB/s

real    0m9.933s
user    0m0.064s
sys 0m3.116s
root@ubuntu:~# rm -f /tmp/test.disk1 && date && time dd if=/tmp/test.disk of=/tmp/test.disk1 bs=8k
2019年 07月 08日 星期一 13:52:11 CST
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB, 2.3 GiB) copied, 10.032 s, 245 MB/s

real    0m10.034s
user    0m0.052s
sys 0m3.220s
root@ubuntu:~# rm -f /tmp/test.disk1 && date && time dd if=/tmp/test.disk of=/tmp/test.disk1 bs=8k
2019年 07月 08日 星期一 13:52:24 CST
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB, 2.3 GiB) copied, 10.5639 s, 233 MB/s

real    0m10.593s
user    0m0.064s
sys 0m3.112s
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章