From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1wVf-0005Vn-Ep for qemu-devel@nongnu.org; Mon, 08 Jun 2015 08:50:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1wVb-0008Tq-E4 for qemu-devel@nongnu.org; Mon, 08 Jun 2015 08:50:35 -0400 Received: from mailpro.odiso.net ([89.248.209.98]:52376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1wVb-0008SI-8T for qemu-devel@nongnu.org; Mon, 08 Jun 2015 08:50:31 -0400 Date: Mon, 8 Jun 2015 14:50:28 +0200 (CEST) From: Alexandre DERUMIER Message-ID: <2018970403.1288874.1433767828359.JavaMail.zimbra@oxygem.tv> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] poor virtio-scsi performance List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vasiliy Tolstov Cc: libvir-list@redhat.com, qemu-devel Hi, if you want to use multiqueues in guest, you need to enabled it on virtio-s= csi controller. for example. ----- Mail original ----- De: "Vasiliy Tolstov" =C3=80: "qemu-devel" , libvir-list@redhat.com Envoy=C3=A9: Lundi 8 Juin 2015 12:30:59 Objet: [Qemu-devel] poor virtio-scsi performance Hi all!=20 I suspected poor performance of virtio-scsi driver.=20 I did a few tests:=20 Host machine: linux 3.19.1, QEMU emulator version 2.3.0=20 Guest machine: linux 4.0.4=20 part of domain xml:=20 /usr/bin/kvm=20 =20 =20 =20 =20 =20 =20
=20 =20 /dev/ram0 I got by running `modprobe brd rd_size=3D$((5*1024*1024))` on=20 host machine.=20 fio conf:=20 [readtest]=20 blocksize=3D4k=20 filename=3D/dev/sdb (/dev/ram0 whe test from host machine)=20 rw=3Drandread=20 direct=3D1=20 buffered=3D0=20 ioengine=3Dlibaio=20 iodepth=3D32=20 results:=20 from host:=20 bw=3D1594.6MB/s, iops=3D408196, clat=3D76usec=20 from guest:=20 bw=3D398MB/s, iops=3D99720, clat=3D316usec=20 Both host and guest system I boot with `scsi_mod.use_blk_mq=3DY`.=20 Why difference in 4 times?!=20 --=20 Vasiliy Tolstov,=20 e-mail: v.tolstov@selfip.ru=20