qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] poor virtio-scsi performance
@ 2015-06-08  9:52 Alexey
  2015-06-08 13:10 ` Andrey Korolyov
  0 siblings, 1 reply; 9+ messages in thread
From: Alexey @ 2015-06-08  9:52 UTC (permalink / raw)
  To: qemu-devel

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?!


Regards,
Alexey Mochkin

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [Qemu-devel] poor virtio-scsi performance
@ 2015-06-08 10:13 Alexey
  0 siblings, 0 replies; 9+ messages in thread
From: Alexey @ 2015-06-08 10:13 UTC (permalink / raw)
  To: qemu-devel

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?!


Regards,
Alexey Mochkin

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [Qemu-devel] poor virtio-scsi performance
@ 2015-06-08 10:30 Vasiliy Tolstov
  2015-06-08 12:50 ` Alexandre DERUMIER
  0 siblings, 1 reply; 9+ messages in thread
From: Vasiliy Tolstov @ 2015-06-08 10:30 UTC (permalink / raw)
  To: qemu-devel, libvir-list

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-06-08 14:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-08  9:52 [Qemu-devel] poor virtio-scsi performance 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
  -- strict thread matches above, loose matches on Subject: below --
2015-06-08 10:13 Alexey
2015-06-08 10:30 Vasiliy Tolstov
2015-06-08 12:50 ` Alexandre DERUMIER

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).