From: =?iso-8859-15?Q?Ren=E9?= Pfeiffer Subject: Re: I/O performance of VirtIO Date: Mon, 12 Oct 2009 23:54:01 +0200 Message-ID: <20091012215401.GE10688@nightfall.luchs.at> References: <20091012204901.GA10688@nightfall.luchs.at> <4AD3A38D.3090102@msgid.tls.msk.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iVCmgExH7+hIHJ1A" To: kvm@vger.kernel.org Return-path: Received: from gilean.luchs.at ([62.116.64.105]:43880 "EHLO gilean.luchs.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932179AbZJLVyl (ORCPT ); Mon, 12 Oct 2009 17:54:41 -0400 Received: from localhost (localhost [127.0.0.1]) by gilean.luchs.at (Postfix) with ESMTP id B13A8D9C for ; Mon, 12 Oct 2009 23:54:03 +0200 (CEST) Received: from gilean.luchs.at ([127.0.0.1]) by localhost (gilean.luchs.at [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jxe95+JiM3WP for ; Mon, 12 Oct 2009 23:54:02 +0200 (CEST) Received: from nightfall.luchs.at (nightfall.luchs.at [62.116.64.107]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "nightfall.luchs.at", Issuer "luchs.at CA" (verified OK)) by gilean.luchs.at (Postfix) with ESMTPS id B3AD5D88 for ; Mon, 12 Oct 2009 23:54:02 +0200 (CEST) Received: from nightfall.luchs.at (localhost [127.0.0.1]) by nightfall.luchs.at (Postfix) with ESMTP id 6F4C31300A7 for ; Mon, 12 Oct 2009 23:54:02 +0200 (CEST) Received: from nightfall.luchs.at (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by nightfall.luchs.at (Postfix) with ESMTPS id 537EF1300A4 for ; Mon, 12 Oct 2009 23:54:02 +0200 (CEST) Content-Disposition: inline In-Reply-To: <4AD3A38D.3090102@msgid.tls.msk.ru> Sender: kvm-owner@vger.kernel.org List-ID: --iVCmgExH7+hIHJ1A Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Oct 13, 2009 at 0145 +0400, Michael Tokarev appeared and said: > Ren=E9 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=3Ddebian.qcow2,if=3Dvirtio,boot=3Don -cdr= om \ > >/srv/isos/debian-502-i386-netinst.iso -smp 2 -boot d -m 512 -net nic \ > >-net user -usb > ^^^^^^^^^ >=20 > Care to try with something more real than user-level networking? Yes, I tried that on the other machine. It made not much difference (the installation files are on local Squid proxies). But I found that setting cache=3Dwriteback restores the old behaviour. I think the default changed to cache=3Dwritethrough. > 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.... Right, I just verified the disk I/O performance with severall runs of hdparm and fresh installations using cache=3Dnone, cache=3Dwriteback and cache=3Dwritethrough settings. The network settings were the same (the test machine with the software bridge setup is down at the moment). I wanted to compare the behaviour of the I/O load. Best, Ren=E9. --=20 )\._.,--....,'``. fL Let GNU/Linux work for you while you take a nap. /, _.. \ _\ (`._ ,. R. Pfeiffer + http://web.luchs= =2Eat/ `._.-(,_..'--(,_..'`-.;.' - System administration + Consulting + Teaching - Got mail delivery problems? http://web.luchs.at/information/blockedmail.php --iVCmgExH7+hIHJ1A Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFK06V5cjShfQp7h4YRArExAKCxfzw2083OO1Z37IFnFZ2ttkPEAgCfWQtc /anUVdBh5Mzz73MMLRgDAK8= =KYYa -----END PGP SIGNATURE----- --iVCmgExH7+hIHJ1A--