From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 20 22:29:04 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8520106566B; Fri, 20 Jul 2012 22:29:04 +0000 (UTC) (envelope-from ryao@gentoo.org) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id 832098FC15; Fri, 20 Jul 2012 22:29:04 +0000 (UTC) Received: from [192.168.1.2] (pool-72-89-250-138.nycmny.fios.verizon.net [72.89.250.138]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: ryao) by smtp.gentoo.org (Postfix) with ESMTPSA id 076F51B4092; Fri, 20 Jul 2012 22:29:03 +0000 (UTC) Message-ID: <5009DB2A.7070408@gentoo.org> Date: Fri, 20 Jul 2012 18:26:50 -0400 From: Richard Yao User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120628 Thunderbird/10.0.5 MIME-Version: 1.0 To: Adrian Chadd References: <50085193.6030203@gentoo.org> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigCC8BF3E152CB46B95BB7D2C2" Cc: "hackers@FreeBSD.org" , current@freebsd.org Subject: Re: Awful FreeBSD 9 block IO performance in KVM X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2012 22:29:04 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigCC8BF3E152CB46B95BB7D2C2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 07/20/2012 03:44 PM, Adrian Chadd wrote: > On 19 July 2012 11:27, Richard Yao wrote: >> Dear Everyone, >> >> FreeBSD 9 has awful block IO performance in KVM. I have experienced it= >> and others have experienced it. Someone posted slides to slideshare wi= th >> benchmarks documenting it: >> >> http://www.slideshare.net/TakeshiHasegawa1/runningfreebsdonlinuxkvm >> >> Slides 13 and 20 are particular eye openers. Does anyone know what is = wrong? >=20 > For those watching at home - this is bad performance _with_ the virtio > drivers themselves, not just with SCSI emulation. >=20 > Slide 17 is very telling - the operation latency is quite high. >=20 > Richard, are you able to easily test out things on FreeBSD-HEAD guest > in a Linux KVM? If so, some of the storage/block/GEOM driver people > may be able to step up and start offering some ideas. >=20 > Thanks, >=20 >=20 >=20 > Adrian Dear Adrian, I am in the process of setting up a VM instance specifically for this. While installing it, I noticed that qemu-kvm printed 'lsi_scsi: error: ORDERED queue not implemented', which might be a clue as to why the block device performance is bad. Also, I will try testing raw disk IO for Ivan after I have it setup. Yours truly, Richard Yao --------------enigCC8BF3E152CB46B95BB7D2C2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJQCdsqAAoJECDuEZm+6ExkMfgP/2yLB/i7yMQ94GgzPTQad1h2 2HQl4FwdH0dRIZq1qfe+CmWwHqiz5ID86SJnlGMcWyQlWI498N635XI1pTvv1Lbg dIMHwAcWKs/dR4MYmxepKBa+JVUXIcmVT6hoADRFeuaiR8Z+3j917M8FpMKWtRzH mgSs+FgvfF3zj0cbOGdbToEyJkmMpI8oBR/1GMfDqW4qdF6FBNWSf0EG+KUpVsBK RS+dC5RUzUJzCDxMUnXC9DRzEPin7RrRJKqp6rhTDofLmR14fTK4VWqx2dkRncPf UXGIV1L7M5jx3GyC67SiBiXktxPofh/IvBiKf2m5FW8IrnnpSUt6Vl6+CeU4Rr3d PakeTZlEvWXrr2R4NK5jXOrwksX3519wSesgn3kPzlVsbywBG4Wph/FowLBOvj1a Lp+xA9Z9ea0R2WRzsrjpYbqWeRKBV+Tb+bjs7NE/8LyipYiJdIyWL6V9mLoXz5Qo V2UiAZG07/d+Vw7qzSJNlaVVZ6+QAnR3e4BrVLCDBYuckwDuyqbhGpkIXeaVbZ8A oFSYLd/fj5AiBicaV+RdHL5kKRO1vJ372IFlnY670JYWI9+04kfN9mmgk19Qzzok eZVKxPLMvvLn2hEDBHRmASF1uGHk9W4c6sKJgryvmCqYRzJtpwz3G9vmycS7zyj8 i7P46ujM4EQ8I4I/l3Sg =oGTH -----END PGP SIGNATURE----- --------------enigCC8BF3E152CB46B95BB7D2C2--