From: Stefan Hajnoczi <stefanha@gmail.com>
To: cauchy-love <cauchy-love@163.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Greate difference of disk I/O performance for guest on Qemu-2.30 of CentOS.
Date: Tue, 16 Jun 2015 14:05:39 +0100 [thread overview]
Message-ID: <20150616130539.GC29405@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <7c4c87b8.111fa.14df75bb798.Coremail.cauchy-love@163.com>
[-- Attachment #1: Type: text/plain, Size: 1269 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2015-06-16 13:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-15 13:14 [Qemu-devel] Greate difference of disk I/O performance for guest on Qemu-2.30 of CentOS cauchy-love
2015-06-16 13:05 ` Stefan Hajnoczi [this message]
2015-06-19 0:40 ` cauchy-love
2015-06-19 15:24 ` Stefan Hajnoczi
2015-06-19 1:03 ` cauchy-love
2015-06-19 8:37 ` Paolo Bonzini
2015-06-23 3:22 ` cauchy-love
[not found] ` <5ec70e6c.267de.14e257e00ab.Coremail.cauchy-love@163.com>
[not found] ` <558AA072.3080507@redhat.com>
2015-06-24 12:31 ` cauchy-love
2015-06-24 12:32 ` Paolo Bonzini
2015-06-24 12:50 ` cauchy-love
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=20150616130539.GC29405@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=cauchy-love@163.com \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).