Re: bhyve disk performance issue

From: Chuck Tuffli <chuck_at_tuffli.net>
Date: Fri, 16 Feb 2024 17:55:27 UTC
On Fri, Feb 16, 2024, at 9:45 AM, Paul Procacci wrote:
> 
> 
> On Fri, Feb 16, 2024 at 12:43 PM Chuck Tuffli <chuck@tuffli.net> wrote:
>> __
>> On Fri, Feb 16, 2024, at 9:19 AM, Matthew Grooms wrote:
>>> Hi All,
>>> 
>>> 
>>> 
>>> I'm in the middle of a project that involves building out a handful of servers to host virtual Linux instances. Part of that includes testing bhyve to see how it performs. The intent is to compare host storage options such as raw vs zvol block devices and ufs vs zfs disk images using hardware raid vs zfs managed disks. It would also involve
>>> 
>>> 
>> …
>>> Here is a list of a few other things I'd like to try:
>>> 
>>> 
>>> 1) Wiring guest memory ( unlikely as it's 32G of 256G )
>>> 2) Downgrading the host to 13.2-RELEASE
>> 
>> FWIW we recently did a similar exercise and saw significant performance differences on ZFS backed disk images when comparing 14.0 and 13.2. We didn’t have time to root cause the difference, so it could simply be some tuning difference needed for 14. 
>> 
>> —chuck
> I myself am actually doing something very very similar.
> I was seeing atrocious disk performance until I set the disk type to nvme.
> Now it's screaming fast.
> 
> disk0_type="nvme"
> Not sure what yours is set at, but it might be worth looking into.
Similar to Matthew, we were testing both virtio and nvme and saw performance differences for both emulation types between 13 and 14.