Date: Fri, 24 Oct 2014 11:18:28 -0400 From: Allan Jude <allanjude@freebsd.org> To: Willem Jan Withagen <wjw@digiware.nl>, virtualization@freebsd.org Subject: Re: Bhyve building kernel....Just an observation Message-ID: <544A6DC4.1090206@freebsd.org> In-Reply-To: <544A6CE2.5020500@digiware.nl> References: <544A083B.50007@digiware.nl> <544A6A3A.2020108@freebsd.org> <544A6CE2.5020500@digiware.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On 2014-10-24 11:14, Willem Jan Withagen wrote:
> 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
>
> _______________________________________________
> freebsd-virtualization@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org"
>
Doing that would give you a much more accurate benchmark.
--
Allan Jude
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
iQIcBAEBAgAGBQJUSm3HAAoJEJrBFpNRJZKf+a8QAJl/rjI7MH6zxTM5uAaAsh2X
NQGmprxbViaMx/kLti1cKZk2x9Pv37OCYQiiYEnGYSjxLbkgyAvVQhEKfsFCe6/7
LKJIsdO/6LS0f4ZTxSKx3pwb9v5UuH8zIolvvP9XLXqpXMwJdfdMAyNOVen10rt7
4YdGVfCI7gARq+Zw3wUDyliRXSrlV1grXO7kJOubCSbyuoW2r9GlUxA5aZEjHSeN
DhQlbghcF4cMXzf6mU0TJscemn67BHrVrzF/CmcQHY61smHAjeoPeoThNFIfT7ft
xyGPRG6KBMttBKVlQOOFg3A9/JorbtmP/4KIBp8E6qDS45Zga/euKKmGKkoQFGPr
nPPEWrtmQaxOeRjZbPp+vV/N/+DAgqlc55k5UMzKxVJvqXP+HX9ySyEVoxKFSvIs
acImGEDALKatjaUm7b5gfzBUtzSgjBWb7W9Ty3DaWwdzRqmLbO5P+YBFd2NuCagA
nDR6R1ppB19gAd0O6bPfMTObtAWR5cUIY4aYG0ycDu2qtliR2/GHp43U1BBLOwDN
QmeiIo/oOrVWbEzed0unqekquW5jt9IaqyUmgFKne613LslPauZuAPXnZspsgLV7
XNpmyCYJ9/c/G2MH8FOZIHTa3MVXMJkEuL3RJpespLGnqhaDbrayHPlkUlUtQ+OZ
ne9Cx5iuSaH2XpCxNRhD
=5BXr
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?544A6DC4.1090206>
