Virtio block module slower than IDE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am running Proxmox 1.4 (which uses the 2.6.30.1 kvm modules) and am
experiencing performance problems with Linux guests using the virtio_blk
module.
Especially with random IO it is a lot slower than IDE.


Ubuntu 9.10 VM on LVM storage with VirtIO:

===
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,+++++,+++,+++++,+++

postmark
set size 10000 10000000
set number 300
set transactions 2500
run

PostMark v1.51 : 8/14/01
Creating files...Done
Performing transactions..........Done
Deleting files...Done
Time:
        141 seconds total
        122 seconds of transactions (20 per second)

Files:
        1540 created (10 per second)
                Creation alone: 300 files (17 per second)
                Mixed with transactions: 1240 files (10 per second)
        1242 read (10 per second)
        1258 appended (10 per second)
        1540 deleted (10 per second)
                Deletion alone: 280 files (140 per second)
                Mixed with transactions: 1260 files (10 per second)

Data:
        7653.28 megabytes read (54.28 megabytes per second)
        9534.76 megabytes written (67.62 megabytes per second)
===


Ubuntu 9.10 VM on LVM storage with IDE:

===
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,+++++,+++,+++++,+++

PostMark v1.51 : 8/14/01
Creating files...Done
Performing transactions..........Done
Deleting files...Done
Time:
        126 seconds total
        111 seconds of transactions (22 per second)

Files:
        1540 created (12 per second)
                Creation alone: 300 files (20 per second)
                Mixed with transactions: 1240 files (11 per second)
        1242 read (11 per second)
        1258 appended (11 per second)
        1540 deleted (12 per second)
                Deletion alone: 280 files (280 per second)
                Mixed with transactions: 1260 files (11 per second)

Data:
        7653.28 megabytes read (60.74 megabytes per second)
        9534.76 megabytes written (75.67 megabytes per second)
===

Configuration: dual quadcore Opteron 2350, Mtron 7000 solid state drive, 8
gb ram, 6 gb assigned to vm, swap disabled on both host and vm. 
KVM command line used by Proxmox for VirtIO: /usr/bin/kvm -monitor
unix:/var/run/qemu-server/102.mon,server,nowait -vnc
unix:/var/run/qemu-server/102.vnc,password -pidfile
/var/run/qemu-server/102.pid -daemonize -usbdevice tablet -name ubuntu910
-smp sockets=1,cores=1 -boot cad -vga cirrus -tdf-drive
file=/dev/vmstorage/vm-102-disk-1,if=virtio,index=0,boot=on -m 6000 -net
user,vlan=1000,hostname=ubuntu910 -net
nic,vlan=1000,model=rtl8139,macaddr=CE:14:D4:DC:2B:94

Also tried with Ubuntu 9.04 instead of 9.10, but the results are similar.


Any idea what might be the problem?


Yours sincerely,

Floris Bos
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux