From owner-freebsd-virtualization@FreeBSD.ORG Fri Oct 24 15:14:55 2014 Return-Path: Delivered-To: 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 2B64CC3; Fri, 24 Oct 2014 15:14:55 +0000 (UTC) Received: from smtp.digiware.nl (smtp.digiware.nl [31.223.170.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DF8A2119; Fri, 24 Oct 2014 15:14:54 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 098BD1534C7; Fri, 24 Oct 2014 17:14:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17gn6oRBqDEi; Fri, 24 Oct 2014 17:14:40 +0200 (CEST) Received: from [192.168.101.102] (vpn.ecoracks.nl [31.223.170.173]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id BA7AB153448; Fri, 24 Oct 2014 17:14:40 +0200 (CEST) Message-ID: <544A6CE2.5020500@digiware.nl> Date: Fri, 24 Oct 2014 17:14:42 +0200 From: Willem Jan Withagen User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Allan Jude , virtualization@freebsd.org Subject: Re: Bhyve building kernel....Just an observation References: <544A083B.50007@digiware.nl> <544A6A3A.2020108@freebsd.org> In-Reply-To: <544A6A3A.2020108@freebsd.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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, 24 Oct 2014 15:14:55 -0000 On 24-10-2014 17:03, Allan Jude wrote: > On 2014-10-24 04:05, Willem Jan Withagen wrote: >> Hi, >> >> Just out of curiosity I did the following: >> >> Updated 10-STABLE src in both Dom0 and in the Bhyve FreeBSD VM >> Rebooted my bhyve AMD testing machine so it was in a fresh state. >> Nothing special loaded orhter than ZFS. >> >> And build a 10-STABLE kernel on the raw box, that took about 6 minutes. >> no {make,src}.conf, so the full GENERIC KERNEL >> That took about 6:45 minutes. >> >> Again rebooted to clean the box up. >> And then booted a 10-STABLE bhyve VM with all memory and processors >> assigned to the VM. So all the power could be available to the VM. >> >> The build again 10-STABLE in the VM. >> That took about 9:30 minutes. >> >> Now it looks like the VM has a 50% overhead. >> My expectations were quite a bit better for the performance difference >> between the two? >> >> Would people with more experience in doing VM stuff expect such a large >> difference? >> Or is this a to be expected result? >> >> Thanx, >> --WjW >> >> System info: >> Dom0: >> 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r273066M >> (110.0 Head with Neel's patch) >> CPU: AMD Phenom(tm) II X6 1075T Processor (3013.83-MHz K8-class >> 16 Gb Ram >> ZFS mirror >> 2* 500Gb WD WD5000AA >> cache 2* Samsung SSD 840 PRO Series DXM05B0Q >> >> Dom Bhyve >> FreeBSD 10.0-RELEASE-p9 >> ahci-hd 16GB > The big difference here is probably disk performance. If you do > something that is pure CPU, you'll usually get about the same > performance as the host, but virtualized disk is not always nearly as good. Would it make any difference to use virtio instead of ahci-hd? In any case, to test your assumption: build a 10G memdisk in Dom0 and DomU load it with sources and /usr/obj and see if that helps getting things closer? Nice thing to do during eveninghours in the weekend. --WjW