I'm having the problem that the performance of VirtIO is nowhere near native performance, and even slower than IDE.
Especially with random IO (seeks).
Occurs with both a raw image on the standard "directory" storage, as well as LVM on a seperate drive.
Tested with both Ubuntu 9.04 as the new 9.10 beta.
Ubuntu 9.10 VM on LVM storage with VirtIO:
Ubuntu 9.10 VM on LVM storage with IDE:
Ubuntu 9.04 VM on directory storage, with VirtIO:
Ubuntu 9.04 VM on directory storage with IDE:
Host system:
Configuration: dual quadcore Opteron 2350, Mtron 7000 SSD, 8 gb ram, 6 gb assigned to vm, swap disabled on both host and vm.
Especially with random IO (seeks).
Occurs with both a raw image on the standard "directory" storage, as well as LVM on a seperate drive.
Tested with both Ubuntu 9.04 as the new 9.10 beta.
Ubuntu 9.10 VM on LVM storage with VirtIO:
Code:
bonnie++ -s 16384
Version 1.03c ------Sequential Output------ --Sequential Input- --Random-
-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
ubuntu910 16G 39209 96 45383 3 29984 6 33996 73 90472 8 636.5 1
------Sequential Create------ --------Random Create--------
-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
16 +++++ +++ +++++ +++ +++++ +++ 23837 56 +++++ +++ +++++ +++
ubuntu910,16G,39209,96,45383,3,29984,6,33996,73,90472,8,636.5,1,16,+++++,+++,+++++,+++,+++++,+++,23837,56,+++++,+++,+++++,+++
Code:
Version 1.03c ------Sequential Output------ --Sequential Input- --Random-
-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
ubuntu910 16G 38796 97 63574 5 31138 7 34604 74 92490 8 2803 7
------Sequential Create------ --------Random Create--------
-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
16 +++++ +++ +++++ +++ +++++ +++ 23745 56 +++++ +++ +++++ +++
ubuntu910,16G,38796,97,63574,5,31138,7,34604,74,92490,8,2803.0,7,16,+++++,+++,+++++,+++,+++++,+++,23745,56,+++++,+++,+++++,+++
Code:
Version 1.03e ------Sequential Output------ --Sequential Input- --Random-
-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
ubuntu904 16G 9616 41 27917 34 28269 9 41039 92 77316 14 954.8 7
------Sequential Create------ --------Random Create--------
-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
ubuntu904,16G,9616,41,27917,34,28269,9,41039,92,77316,14,954.8,7,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
Code:
Version 1.03e ------Sequential Output------ --Sequential Input- --Random-
-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
ubuntu904 16G 36565 96 42835 10 26516 7 33578 87 78293 10 2626 14
------Sequential Create------ --------Random Create--------
-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
ubuntu904,16G,36565,96,42835,10,26516,7,33578,87,78293,10,2626.2,14,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
Code:
Version 1.03e ------Sequential Output------ --Sequential Input- --Random-
-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
debian 16G 42738 98 80982 20 33531 8 43540 92 82022 6 7363 10
------Sequential Create------ --------Random Create--------
-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
debian,16G,42738,98,80982,20,33531,8,43540,92,82022,6,7363.1,10,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
pveperf
CPU BOGOMIPS: 32180.78
REGEX/SECOND: 531937
HD SIZE: 56.00 GB (/dev/mapper/debian-root)
BUFFERED READS: 76.59 MB/sec
AVERAGE SEEK TIME: 0.14 ms
FSYNCS/SECOND: 1295.25
DNS EXT: 283.15 ms