* Virtio block module slower than IDE
@ 2009-10-27 0:13 Floris Bos
2009-10-27 9:34 ` Avi Kivity
0 siblings, 1 reply; 3+ messages in thread
From: Floris Bos @ 2009-10-27 0:13 UTC (permalink / raw)
To: kvm
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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Virtio block module slower than IDE
2009-10-27 0:13 Virtio block module slower than IDE Floris Bos
@ 2009-10-27 9:34 ` Avi Kivity
2009-10-27 15:07 ` Floris Bos
0 siblings, 1 reply; 3+ messages in thread
From: Avi Kivity @ 2009-10-27 9:34 UTC (permalink / raw)
To: Floris Bos; +Cc: kvm
On 10/27/2009 02:13 AM, Floris Bos wrote:
> 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.
>
>
>
Try switching the host I/O scheduler to deadline. You can do that at
runtime in /sys/block/.../queue.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Virtio block module slower than IDE
2009-10-27 9:34 ` Avi Kivity
@ 2009-10-27 15:07 ` Floris Bos
0 siblings, 0 replies; 3+ messages in thread
From: Floris Bos @ 2009-10-27 15:07 UTC (permalink / raw)
To: kvm
Hi,
On Tue, 27 Oct 2009 11:34:57 +0200, Avi Kivity <avi@redhat.com> wrote:
> On 10/27/2009 02:13 AM, Floris Bos wrote:
>> 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.
>>
>
> Try switching the host I/O scheduler to deadline. You can do that at
> runtime in /sys/block/.../queue.
Thanks for the tip.
Seems to improve random IO performance by 11 times!
==
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 38776 97 61414 5 32451 7 34711 73 95325 9 7174
23
------Sequential Create------ --------Random
Create--------
-Create-- --Read--- -Delete-- -Create-- --Read---
-Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec
%CP
16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++
+++
ubuntu910,16G,38776,97,61414,5,32451,7,34711,73,95325,9,7174.2,23,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
==
Yours sincerely,
Floris Bos
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-27 15:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-27 0:13 Virtio block module slower than IDE Floris Bos
2009-10-27 9:34 ` Avi Kivity
2009-10-27 15:07 ` Floris Bos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox