Received: from eggs.gnu.org ([2001:4830:134:3::10]:55172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4qYl-0007bA-5I for qemu-devel@nongnu.org; Tue, 16 Jun 2015 09:05:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4qYh-0006uJ-4k for qemu-devel@nongnu.org; Tue, 16 Jun 2015 09:05:47 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:33586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4qYg-0006uA-UF for qemu-devel@nongnu.org; Tue, 16 Jun 2015 09:05:43 -0400 Received: by wiwd19 with SMTP id d19so102916283wiw.0 for ; Tue, 16 Jun 2015 06:05:42 -0700 (PDT) Date: Tue, 16 Jun 2015 14:05:39 +0100 From: Stefan Hajnoczi Message-ID: <20150616130539.GC29405@stefanha-thinkpad.redhat.com> References: <7c4c87b8.111fa.14df75bb798.Coremail.cauchy-love@163.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f0KYrhQ4vYSV2aJu" Content-Disposition: inline In-Reply-To: <7c4c87b8.111fa.14df75bb798.Coremail.cauchy-love@163.com> Subject: Re: [Qemu-devel] Greate difference of disk I/O performance for guest on Qemu-2.30 of CentOS. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: cauchy-love Cc: qemu-devel@nongnu.org --f0KYrhQ4vYSV2aJu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 15, 2015 at 09:14:52PM +0800, cauchy-love wrote: > I am running a embedded OS on Qemu-2.3.0. However I found that the I/O performance was quite different for different CentOS release (CentOS 6.5 and CentOS 7.0). The CentOS 6.5 uses linux-2.6.32 while the CentOS 7.0 uses linux-3.10.0. The I/O throughput (write) of the former (CentOS 6.5) is about ten times of that on the latter (CentOS 7.0). All configurations are the same except the kernel version. And the command line is as following: > # qemu-kvm -m 2G -smp 4 -enable-kvm -hda guest.img ... > The I/O throughput of the host is almost the same for these two different kernels, as tested by Iozone tool. Actually, I found that the IO throughput degraded significantly since the 3.4 or later kernel version. I also tried different qemu versions such as qemu-1.5.3, qemu-2.1.3 but got no improvements. Please post the iozone command-line you are using and the output. Your QEMU command-line uses the IDE storage controller, which is not optimized for performance. Usually virtio-blk is used when good performance is required: -drive if=virtio,cache=none,format=raw,aio=native,file=guest.img The guest OS needs virtio-blk device drivers in order for this to work. Stefan --f0KYrhQ4vYSV2aJu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVgB8jAAoJEJykq7OBq3PIBaYH/RbektLk2gbrN6WfMx+nw8dj DAoJ9SaJiFv/+yx47D44nHSOlqIcnK4hviaJLCCDrdv3HStM8twEHtrFtWJI7zv9 XkHbQIvgfENcKwRCDHTvcg1+mOTgsnK/kc8FmVtfA1EN65uRzmTjdlIeoJtipkOa dyBOAL2pSekhrebPkyUGVmEwpQeGX9veVdVfVU1qPQKlYhy6PxnZMKe87k3tBNPm KJkzHYSqJ/5hkBBwYotc9lsIB1oKQZ/U2u4j8/fE10F1ixuFwX9i6LyP24+EYHgh u0CcQiw9lvDD3RQGKXp1KlIxGNS8zDtnnJcK4RYF/pfDhJBm3CLom0mGBSHvY5s= =wdOc -----END PGP SIGNATURE----- --f0KYrhQ4vYSV2aJu--