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 |
黑洞@heidsoft
Github:https://github.com/heidsoft
微博:http://weibo.com/liuganbin
热衷云计算和大数据
关注CloudStack,OpenStack,Linux c/c++/python/java
关注研究新技术
浙公网安备 33010602011771号