开发者社区> 问答> 正文

阿里ECS主机磁盘读写性能分析

以下是分析数据,仅供参考。


实验数据:
1. 自带系统盘,纯写2G文件,大概是40M每秒

[root@monitor ~]# time dd if=/dev/zero bs=2048 count=1000000 of=/2Gb.file1000000+0 records in1000000+0 records out2048000000 bytes (2.0 GB) copied, 51.034 seconds, 40.1 MB/s
real    0m51.149suser    0m0.107ssys    0m3.997s____________________________________________________________________ 2.购买的数据盘,2G文件,纯写,40M每秒[root@monitor ~]# time dd if=/dev/zero bs=2048 count=1000000 of=/backup/2Gb.file1000000+0 records in1000000+0 records out2048000000 bytes (2.0 GB) copied, 51.7654 seconds, 39.6 MB/s
real    0m53.002suser    0m0.149ssys    0m4.216s______________________________________________________________________ 3.系统盘数据,2G文件纯读,36M每秒[root@monitor ~]# time dd if=/2Gb.file bs=64k |dd of=/dev/null 31250+0 records in31250+0 records out2048000000 bytes (2.0 GB) copied4000000+0 records in4000000+0 records out2048000000 bytes (2.0 GB) copied, 56.1706 seconds, 36.5 MB/s, 56.1705 seconds, 36.5 MB/s
real    0m56.178suser    0m0.640ssys    0m3.576sYou have new mail in /var/spool/mail/root————————————————————————————————————————— 4. 系统盘文件,2G数据纯读,38M每秒。[root@monitor ~]# time dd if=/backup/2Gb.file bs=64k |dd of=/dev/null 31250+0 records in31250+0 records out2048000000 bytes (2.0 GB) copied4000000+0 records in4000000+0 records out2048000000 bytes (2.0 GB) copied, 53.768 seconds, 38.1 MB/s, 53.768 seconds, 38.1 MB/s
real    0m53.790suser    0m0.594ssys    0m3.515s

展开
收起
365代维 2014-06-05 11:24:01 8363 0
3 条回答
写回答
取消 提交回答
  • 回 2楼(哎哟) 的帖子
    命令已经输入在里面,只是格式有些乱。
    几个命令分别为(仅限linux系统):
    time dd if=/dev/zero bs=2048 count=1000000 of=/2Gb.file
    time dd if=/dev/zero bs=2048 count=1000000 of=/backup/2Gb.file

    time dd if=/2Gb.file bs=64k |dd of=/dev/null
    time dd if=/backup/2Gb.file bs=64k |dd of=/dev/null
    2014-07-10 07:45:07
    赞同 展开评论 打赏
  • 咋测,说下呗
    2014-07-10 00:10:20
    赞同 展开评论 打赏
  • 欢迎进行技术分享,感谢你的支持!
    2014-07-09 19:22:40
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
如何运维千台以上游戏云服务器 立即下载
网站/服务器取证 实践与挑战 立即下载
ECS快储存加密技术 立即下载