From: Paolo Bonzini <pbonzini@redhat.com>
To: Andrey Korolyov <andrey@xdel.ru>
Cc: Sergey Fionov <fionov@gmail.com>, Jens Axboe <axboe@kernel.dk>,
Jeff Moyer <jmoyer@redhat.com>, Peter Lieven <pl@kamp.de>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] 4k seq read splitting for virtio-blk - possible workarounds?
Date: Mon, 26 Oct 2015 18:32:49 +0100 [thread overview]
Message-ID: <562E63C1.8020802@redhat.com> (raw)
In-Reply-To: <CABYiri8rz_jeqdraA4oJtUY_SPKgR11JMKY1P3n7QL-rFhcRkg@mail.gmail.com>
On 26/10/2015 18:18, Andrey Korolyov wrote:
> Yes, both cases are positive, thanks for very detailed explanation and
> for tips. Does this also mean that most current distros which are
> using 'broken' >=3.13 <4.2 driver would bring sequential read
> performance, especially on rotating media, or media with high request
> latency like hybrid disk, down to knees for virtio, which almost
> always is a default selection?
Yes, this is why I said the conversion was premature. On one hand I
totally agree that virtio-blk is a great guinea pig for blk-mq
conversion, on the other hand people are using the thing in production
and the effects weren't quite understood.
It's a common misconception that virt doesn't benefit from the elevator,
but actually you get (well... used to get...) much better performance
from the deadline scheduler than the noop scheduler. Merging is the
main reason, because it lowers the amount of work that you have to do in
the host.
Even if you don't get better performance, merging will get better CPU
utilization because the longer s/g lists take time to process in the
host, and the effect's much larger than a few extra milliwatts in a
bare-metal controller.
Having a "real" multiqueue model in the host (real = one I/O thread and
one AIO context per guest queue, with each I/O thread able to service
multiple disks; rather than a "fake" multiqueue where you still have one
I/O thread and AIO context per guest disk, so all the queues really
funnel into one in the host) should fix this, but it's at least a few
months away in QEMU... probably something like QEMU 2.8. My plan is for
2.6 to have fine-grained critical sections (patches written, will repost
during 2.5 hard freeze), 2.7 (unlikely 2.6) to have fine-grained locks,
and 2.8 or 2.9 to have multiqueue.
Paolo
next prev parent reply other threads:[~2015-10-26 17:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 11:50 [Qemu-devel] 4k seq read splitting for virtio-blk - possible workarounds? Andrey Korolyov
2015-10-26 15:37 ` Paolo Bonzini
2015-10-26 16:31 ` Andrey Korolyov
2015-10-26 16:37 ` Paolo Bonzini
2015-10-26 16:43 ` Andrey Korolyov
2015-10-26 17:03 ` Paolo Bonzini
2015-10-26 17:18 ` Andrey Korolyov
2015-10-26 17:32 ` Paolo Bonzini [this message]
2015-10-26 18:28 ` Andrey Korolyov
2015-10-27 2:04 ` Fam Zheng
2015-10-27 9:30 ` Paolo Bonzini
2015-10-30 20:04 ` Andrey Korolyov
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=562E63C1.8020802@redhat.com \
--to=pbonzini@redhat.com \
--cc=andrey@xdel.ru \
--cc=axboe@kernel.dk \
--cc=fionov@gmail.com \
--cc=jmoyer@redhat.com \
--cc=pl@kamp.de \
--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).