From owner-freebsd-virtualization@FreeBSD.ORG Fri Mar 27 09:46:55 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 15AAB494 for ; Fri, 27 Mar 2015 09:46:55 +0000 (UTC) Received: from mail-wg0-x22d.google.com (mail-wg0-x22d.google.com [IPv6:2a00:1450:400c:c00::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9BFD12B1 for ; Fri, 27 Mar 2015 09:46:54 +0000 (UTC) Received: by wgbgs4 with SMTP id gs4so2131293wgb.0 for ; Fri, 27 Mar 2015 02:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=ZVv2gsQgeuTxCSbqnt0mpkrTM42qlcVoldD15SIMDic=; b=nPXfsiLYmcVUELXOpqpfR1aBFU1LvldboDlwu8Da0+Cneu7MCXu3bCa2cKe0BXfWD3 FZAwkQIW/GzPQ2f+1CTNJNDqJIdeMpwvWGcqdolD1BgqGFu03V1jYRWDU8/sB7z0x3Sp XyXxwTM4ejul4WOBQNsB6GNU/PlDP3Pp7/tYNyuZIPDdqGXIj5zLstp6VXi5GQGStKXO QJE4yrwZqZ8Mg00AROYAGM9HPjxGhf2urFKEb2VKB28gd9OowMKA+UqMIIANSMH1jYDz 7q3pgpQ2tt3qBYsmM69eXON+ySb4auKM5ugNrj438PF9h/ZbyeteyVB4w4mMU0e9tAXZ yQuA== X-Received: by 10.194.24.103 with SMTP id t7mr35518652wjf.15.1427449612639; Fri, 27 Mar 2015 02:46:52 -0700 (PDT) Received: from mavbook.mavhome.dp.ua ([134.249.139.101]) by mx.google.com with ESMTPSA id v8sm6488236wib.0.2015.03.27.02.46.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Mar 2015 02:46:51 -0700 (PDT) Sender: Alexander Motin Message-ID: <5515270A.7050408@FreeBSD.org> Date: Fri, 27 Mar 2015 11:46:50 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Julian Hsiao , freebsd-virtualization@freebsd.org Subject: Bhyve storage improvements (was: Several bhyve quirks) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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 09:46:55 -0000 > I've always assumed virtio driver > emulated driver so it didn't occur > to me to try ahci-hd. I've just merged to FreeBSD stable/10 branch set of bhyve changes that should significantly improve situation in the storage area. 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. 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. 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. -- Alexander Motin