From: Stefan Hajnoczi <stefanha@gmail.com>
To: Vasiliy Tolstov <v.tolstov@selfip.ru>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] poor virtio-scsi performance (fio testing)
Date: Wed, 25 Nov 2015 17:35:12 +0800 [thread overview]
Message-ID: <20151125093512.GF7357@stefanha-x1.localdomain> (raw)
In-Reply-To: <CACaajQuuEYY_N0WZ9kics5dzuCwYZdOoz_11PZ7856pK7Fw8dw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1538 bytes --]
On Thu, Nov 19, 2015 at 11:16:22AM +0300, Vasiliy Tolstov wrote:
> I'm test virtio-scsi on various kernels (with and without scsi-mq)
> with deadline io scheduler (best performance). I'm test with lvm thin
> volume and with sheepdog storage. Data goes to ssd that have on host
> system is about 30K iops.
> When i'm test via fio
> [randrw]
> blocksize=4k
> filename=/dev/sdb
> rw=randrw
> direct=1
> buffered=0
> ioengine=libaio
> iodepth=32
> group_reporting
> numjobs=10
> runtime=600
>
>
> I'm always stuck at 11K-12K iops with sheepdog or with lvm.
> When i'm switch to virtio-blk and enable data-plane i'm get around 16K iops.
> I'm try to enable virtio-scsi-data-plane but may be miss something
> (get around 13K iops)
> I'm use libvirt 1.2.16 and qemu 2.4.1
>
> What can i do to get near 20K-25K iops?
>
> (qemu testing drive have cache=none io=native)
If the workload is just fio to a single disk then dataplane (-object
iothread) may not help massively. The scalability of dataplane kicks in
when doing many different types of I/O or accessing many disks. If you
have just 1 disk and the VM is only running fio, then dataplane simply
shifts the I/O work from the QEMU main loop to a dedicated thread. This
results in an improvement but it may not be very dramatic for a single
disk.
You can get better aio=native performance with qemu.git/master. Please
see commit fc73548e444ae3239f6cef44a5200b5d2c3e85d1 ("virtio-blk: use
blk_io_plug/unplug for Linux AIO batching").
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2015-11-25 9:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-19 8:16 [Qemu-devel] poor virtio-scsi performance (fio testing) Vasiliy Tolstov
2015-11-25 9:35 ` Stefan Hajnoczi [this message]
2015-11-25 10:10 ` Vasiliy Tolstov
2015-11-26 2:53 ` Fam Zheng
2015-11-25 10:08 ` Alexandre DERUMIER
2015-11-25 10:12 ` Vasiliy Tolstov
2015-11-25 10:27 ` Alexandre DERUMIER
2015-11-25 10:48 ` Vasiliy Tolstov
2015-11-26 14:13 ` Alexandre DERUMIER
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=20151125093512.GF7357@stefanha-x1.localdomain \
--to=stefanha@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=v.tolstov@selfip.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 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).