qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alexandre DERUMIER <aderumier@odiso.com>
To: Vasiliy Tolstov <v.tolstov@selfip.ru>
Cc: libvir-list@redhat.com, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] poor virtio-scsi performance
Date: Mon, 8 Jun 2015 14:50:28 +0200 (CEST)	[thread overview]
Message-ID: <2018970403.1288874.1433767828359.JavaMail.zimbra@oxygem.tv> (raw)
In-Reply-To: <CACaajQvxPExggShah4Dvf+RkCFcdpfaQCGBPRDLt_aRrm5sMTQ@mail.gmail.com>

Hi,
if you want to use multiqueues in guest, you need to enabled it on virtio-scsi controller.

<controller type='scsi' index='0' model='virtio-scsi' num_queues='8'/>

for example.


----- Mail original -----
De: "Vasiliy Tolstov" <v.tolstov@selfip.ru>
À: "qemu-devel" <qemu-devel@nongnu.org>, libvir-list@redhat.com
Envoyé: Lundi 8 Juin 2015 12:30:59
Objet: [Qemu-devel] poor virtio-scsi performance

Hi all! 

I suspected poor performance of virtio-scsi driver. 
I did a few tests: 
Host machine: linux 3.19.1, QEMU emulator version 2.3.0 
Guest machine: linux 4.0.4 

part of domain xml: 
<emulator>/usr/bin/kvm</emulator> 
<disk type='block' device='disk'> 
<driver name='qemu' type='raw' cache='none' io='native' discard='unmap'/> 
<source dev='/dev/ram0'/> 
<backingStore/> 
<target dev='sda' bus='scsi'/> 
<alias name='scsi0-0-0-1'/> 
<address type='drive' controller='0' bus='0' target='0' unit='1'/> 
</disk> 

/dev/ram0 I got by running `modprobe brd rd_size=$((5*1024*1024))` on 
host machine. 

fio conf: 
[readtest] 
blocksize=4k 
filename=/dev/sdb (/dev/ram0 whe test from host machine) 
rw=randread 
direct=1 
buffered=0 
ioengine=libaio 
iodepth=32 


results: 
from host: 
bw=1594.6MB/s, iops=408196, clat=76usec 
from guest: 
bw=398MB/s, iops=99720, clat=316usec 

Both host and guest system I boot with `scsi_mod.use_blk_mq=Y`. 

Why difference in 4 times?! 

-- 
Vasiliy Tolstov, 
e-mail: v.tolstov@selfip.ru 

  reply	other threads:[~2015-06-08 12:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-08 10:30 [Qemu-devel] poor virtio-scsi performance Vasiliy Tolstov
2015-06-08 12:50 ` Alexandre DERUMIER [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-06-08 10:13 Alexey
2015-06-08  9:52 Alexey
2015-06-08 13:10 ` Andrey Korolyov
2015-06-08 13:46   ` Paolo Bonzini
2015-06-08 14:00     ` Vasiliy Tolstov
2015-06-08 14:01       ` Paolo Bonzini
2015-06-08 13:51   ` Vasiliy Tolstov

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=2018970403.1288874.1433767828359.JavaMail.zimbra@oxygem.tv \
    --to=aderumier@odiso.com \
    --cc=libvir-list@redhat.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).