bhyve Prioritize bhyve over host

I have running a bhyve vm with linux. There I run the Spotify desktop app, which gives me better audio quality than running the web client on the host.
Now I have the problem that when I compile something on the host, the sound from the guest machine starts stuttering. Using nice() on the make process does not help.
Is there anything I can do to give the guest a higher prio so that my sound does not stutter?
My vm config:
Code:
loader="uefi"
graphics="yes"
graphics_res="1920x1200"
xhci_mouse="yes"
cpu=16
cpu_sockets=1
cpu_cores=8
cpu_threads=2
memory=16G
network0_type="virtio-net"
network0_switch="public"
disk0_type="ahci-hd"
disk0_name="disk0.img"
disk0_size="32G"
sound="yes"
sound_play="/dev/dsp"
uuid="XXXXXXXXXXXXXXXXXXXX"
network0_mac="XXXXXXXXXXXXXXXXX"
The host spec:
- 11th Gen Intel(R) Core(TM) i9-11900K
- 64G RAM
- Samsung 980 Pro NVME
 
I don't know much about priorities but, I am doing poudriere builds with limited number of CPU cores, that helps me surf the web while building something in the background. Take a look at manpage of cpuset, there are even examples. I have 3 physical cpu cores, I left one as spare and build with the rest. You can adjust it to your use case.
 
I don't know much about priorities but, I am doing poudriere builds with limited number of CPU cores, that helps me surf the web while building something in the background. Take a look at manpage of cpuset, there are even examples.
Great! Tested and it solves my issue. Thank you!
 
Back
Top