All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: "René Pfeiffer" <lynx@luchs.at>, kvm@vger.kernel.org
Subject: Re: I/O performance of VirtIO
Date: Tue, 13 Oct 2009 08:35:36 +0200	[thread overview]
Message-ID: <4AD41FB8.6000209@web.de> (raw)
In-Reply-To: <4AD3A38D.3090102@msgid.tls.msk.ru>

[-- Attachment #1: Type: text/plain, Size: 1444 bytes --]

Michael Tokarev wrote:
> René Pfeiffer wrote:
>> Hello!
>>
>> I just tested qemu-kvm-0.11.0 with the KVM module of kernel 2.6.31.1. I
>> noticed that the I/O performance of an unattended stock Debian Lenny
>> install dropped somehow. The test machines ran with kvm-88 and 2.6.30.x
>> before. The difference is very noticeable (went from about 5 minutes up
>> to 15-25 minutes). The two test machines have different CPUs (one is an
>> Intel Core2 CPU, the other runs with an AMD Athlon 64 X2 Dual).
>>
>> Is this the effect of added code regarding caching/data integrity to the
>> VirtIO block layer or somewhere else? The qemu-system-x86_64 seems to
>> hang a lot more in heavy I/O (showing 'D' in top/htop).
>>
>> The command line is quite straight-forward:
>> qemu-system-x86_64 -drive file=debian.qcow2,if=virtio,boot=on -cdrom \
>> /srv/isos/debian-502-i386-netinst.iso -smp 2 -boot d -m 512 -net nic \
>> -net user -usb
>   ^^^^^^^^^
> 
> Care to try with something more real than user-level networking?
> You're using netinstall which - apparently - tries to use some
> networking d/loading components etc, and userlevel networking is
> known to be very very slow....

It can be particularly slow if you use in-kernel irqchips and the
default NIC emulation (up to 10 times slower), some effect I always
wanted to understand on a rainy day. So, when you actually want -net
user, try -no-kvm-irqchip.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

  parent reply	other threads:[~2009-10-13  6:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-12 20:49 I/O performance of VirtIO René Pfeiffer
2009-10-12 21:45 ` Michael Tokarev
2009-10-12 21:54   ` René Pfeiffer
2009-10-13  6:35   ` Jan Kiszka [this message]
2009-10-22 16:29     ` Avi Kivity
2009-10-22 22:06       ` Alexander Graf
2009-10-25  5:44         ` Avi Kivity
2009-10-26  8:12           ` Jan Kiszka
2009-10-26  8:35             ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AD41FB8.6000209@web.de \
    --to=jan.kiszka@web.de \
    --cc=kvm@vger.kernel.org \
    --cc=lynx@luchs.at \
    --cc=mjt@tls.msk.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.