hexadecagram
Dabbler
- Joined
- Jul 15, 2016
- Messages
- 32
I am not a virtualization expert but it seems reasonable to allocate ALL of my CPU's threads to my VMs and let SMP work it out. For example, suppose I have a 4-core HT CPU with 8 threads in all, so I set up my VM to use 1 vCPU, 4 cores, and 2 threads.
Unfortunately, when I try to do so with ArchLinuxux LTS, the VM often locks up solid with no console message, causing me to poweroff and restart (sometimes reboot).
Can someone give me a technical reason why allocating all threads to bhyve is a bad idea? It also seems reasonable enough that one might want to leave a thread or two available to the host OS so that it doesn't starve, but full allocation seems to be a more efficient use of CPU resources.
Unfortunately, when I try to do so with ArchLinuxux LTS, the VM often locks up solid with no console message, causing me to poweroff and restart (sometimes reboot).
Can someone give me a technical reason why allocating all threads to bhyve is a bad idea? It also seems reasonable enough that one might want to leave a thread or two available to the host OS so that it doesn't starve, but full allocation seems to be a more efficient use of CPU resources.