首页 > 其他 > 详细

KVM下raw和qcow2格式磁盘文件IO测试

时间:2014-08-21 14:50:54      阅读:440      评论:0      收藏:0      [点我收藏+]

1. Host OS 环境

  • CPU: Intel Xeon E5620 2.40GHz
  • MEM: 16GB
  • DISK: 500GB SATA
  • OS: CentOS5.7 64bit

2. Guest OS 环境

  • CPU: 2 core
  • MEM: 8GB
  • DISK: 50GB raw/qcow2 virtio
  • OS: Ubuntu 10.04.3 Server 64bit

3. 测试工具

Bonnie++ 1.96

测试命令:bonnie -b -u root -d /root/tmpfile/

4. 测试结果

Host OS
Version  1.96       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
jsjcloud20   32088M   763  97 61169  13 34234   6  1541  78 110327   7 284.7  11
Latency             39625us    7351ms    3251ms   24187us     102ms     190ms

Version  1.96       ------Sequential Create------ --------Random Create--------
jsjcloud20          -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16    56   0 +++++ +++    57   0    57   0 +++++ +++    57   0
Latency              1016ms     895us     258ms     233ms      15us     233ms
Guest OS : raw virtio
Version  1.96       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
hadoop1         16G   739  96  28405  7 18972   5  3841  96 83858  13 188.9  12
Latency             13992us     873ms   6533ms    18113us   93496ms     291ms

Version  1.96       ------Sequential Create------ --------Random Create--------
hadoop1             -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16    38   0 +++++ +++    53   0    38   0 +++++ +++    53   0
Latency               358ms     815us    1683ms     192ms    2205us    1733ms
Guest OS : qcow2 virtio
Version  1.96       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
hadoop2         16G   599  89  2601   1 11303   6  3168  94 45889   7 156.6 2191
Latency             18105us   20413ms    8228ms   61058us     144ms     316ms

Version  1.96       ------Sequential Create------ --------Random Create--------
hadoop2             -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16    37   0 +++++ +++    49   0    37   0 +++++ +++    53   0
Latency               338ms     743us    1797ms     421ms    2768us    1329ms
综合
 字符写block写重写字符读block读随机访问
Host 763 61169 34234 1541 110327 284.7
raw virtio 739 28405 18972 3841 83858 188.9
qcow2 virtio 599 2601 11303 3168 45889 156.6

KVM下raw和qcow2格式磁盘文件IO测试,布布扣,bubuko.com

KVM下raw和qcow2格式磁盘文件IO测试

原文:http://www.cnblogs.com/heidsoft/p/3926938.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!