pgj / freebsd-wifibox

wifibox: Use Linux to drive your wireless card on FreeBSD
BSD 2-Clause "Simplified" License
159 stars 12 forks source link

feat(`bhyve.conf`): configurable priority of the `bhyve` process #92

Closed pgj closed 6 months ago

pgj commented 6 months ago

Currently, the guest is run with the same on priority level as any other process. This does not always work well for handling the wireless traffic, since firewalling and other networking functions in the kernel are run with higher priorities.

Employ nice(1) to adjust the priority of the managed bhyve process that is responsible for running the virtualized guest, and expose its prority setting as a configuration value in bhyve.conf. This value has its own scale, which independent from what nice(1) has in order to make it possible to replace this tool for others, e.g. rtprio(1) later on.

Suggested by: Anton Saietskii