From owner-freebsd-virtualization@FreeBSD.ORG Fri Mar 27 16:54:44 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 55818E3; Fri, 27 Mar 2015 16:54:44 +0000 (UTC) Received: from webmail2.jnielsen.net (webmail2.jnielsen.net [50.114.224.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "webmail2.jnielsen.net", Issuer "freebsdsolutions.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 324B71CC; Fri, 27 Mar 2015 16:54:43 +0000 (UTC) Received: from [10.10.1.196] (office.betterlinux.com [199.58.199.60]) (authenticated bits=0) by webmail2.jnielsen.net (8.15.1/8.15.1) with ESMTPSA id t2RGlpO8076387 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 Mar 2015 10:47:54 -0600 (MDT) (envelope-from lists@jnielsen.net) X-Authentication-Warning: webmail2.jnielsen.net: Host office.betterlinux.com [199.58.199.60] claimed to be [10.10.1.196] Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: Re: Bhyve storage improvements (was: Several bhyve quirks) From: John Nielsen In-Reply-To: <5515270A.7050408@FreeBSD.org> Date: Fri, 27 Mar 2015 10:47:50 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <98136D5B-297B-4538-8EF4-EA2872C6640B@jnielsen.net> References: <5515270A.7050408@FreeBSD.org> To: Alexander Motin X-Mailer: Apple Mail (2.2070.6) Cc: Julian Hsiao , freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2015 16:54:44 -0000 On Mar 27, 2015, at 3:46 AM, Alexander Motin wrote: >> I've always assumed virtio driver > emulated driver so it didn't = occur >> to me to try ahci-hd. >=20 > I've just merged to FreeBSD stable/10 branch set of bhyve changes that > should significantly improve situation in the storage area. >=20 > virtio-blk driver was fixed to work asynchronously and not block = virtual > CPU, that should fix many problems with performance and interactivity. > Both virtio-blk and ahci-hd drivers got ability to execute multiple = (up > to 8) requests same time, that should proportionally improve parallel > random I/O performance on wide storages. At this point virtio-blk is > indeed faster then ahci-hd on high IOPS, and they both are faster then > before. >=20 > On the other side ahci-hd driver now got TRIM support to allow freeing > unused space on backing ZVOL. Unfortunately there is no any TRIM/UNMAP > support in virtio-blk API to allow the same. >=20 > Also both virtio-blk and ahci-hd drivers now report to guest logical = and > physical block sizes of underlying storage, that allow guests properly > align partitions and I/Os for best compatibility and performance. Mav, thank you very much for all this great work and for the concise = summary. TRIM on AHCI makes it compelling for a lot of use cases despite = the probable performance hit. Does anyone have plans (or know about any) to implement virtio-scsi = support in bhyve? That API does support TRIM and should retain most or = all of the low-overhead virtio goodness. JN