码迷,mamicode.com
首页 > 其他好文 > 详细

阿里云的高效云盘真的不高效

时间:2019-04-03 18:03:28      阅读:655      评论:0      收藏:0      [点我收藏+]

标签:结果   阿里   pre   seconds   cached   磁盘读写   一个   高效   cache   

前段时间发现在阿里云ECS搭建mysql和本地mysql同样的查询 发现读取性能远远不如本地机械磁盘

于是今天做了一个阿里云高效云盘的读写和本地磁盘读写性能对比

阿里云高效云盘读取效率
root@fangxin-test:~# hdparm  -tT  /dev/vda1

/dev/vda1:
 Timing cached reads:   14732 MB in  2.00 seconds = 7380.98 MB/sec
 Timing buffered disk reads: 410 MB in  3.01 seconds = 136.05 MB/sec
root@fangxin-test:~# hdparm  -tT  /dev/vda1

/dev/vda1:
 Timing cached reads:   16142 MB in  2.00 seconds = 8089.48 MB/sec
 Timing buffered disk reads: 428 MB in  3.01 seconds = 142.27 MB/sec
root@fangxin-test:~# hdparm  -tT  /dev/vda1

/dev/vda1:
 Timing cached reads:   16242 MB in  2.00 seconds = 8138.87 MB/sec
 Timing buffered disk reads: 412 MB in  3.00 seconds = 137.21 MB/sec    

本地机械磁盘读取效率

 [root@elk-node01 config]# hdparm  -tT  /dev/sda1

 /dev/sda1:
  Timing cached reads:   15764 MB in  2.00 seconds = 7900.86 MB/sec
  Timing buffered disk reads: 1024 MB in  1.28 seconds = 798.49 MB/sec
 [root@elk-node01 config]# hdparm  -tT  /dev/sda1

 /dev/sda1:
  Timing cached reads:   16106 MB in  1.99 seconds = 8073.20 MB/sec
  Timing buffered disk reads: 1024 MB in  1.27 seconds = 807.60 MB/sec
 [root@elk-node01 config]# hdparm  -tT  /dev/sda1

 /dev/sda1:
  Timing cached reads:   15582 MB in  1.99 seconds = 7811.29 MB/sec
  Timing buffered disk reads: 1024 MB in  1.34 seconds = 765.92 MB/sec

这就是阿里云高效云盘的读取结果

以后还是买阿里云的ssd的磁盘把 高效云盘有点搞笑呀

阿里云的高效云盘真的不高效

标签:结果   阿里   pre   seconds   cached   磁盘读写   一个   高效   cache   

原文地址:https://blog.51cto.com/9025736/2373762

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!