How to test KVM guest CPU maximum allocation limit?
Posted
by
Ace
on Server Fault
See other posts from Server Fault
or by Ace
Published on 2013-10-17T03:18:04Z
Indexed on
2013/10/17
21:59 UTC
Read the original article
Hit count: 311
Running Ubuntu 13.04 Host and vm Guest. Using virtio for hdd, nic. Max-allocaion CPU cores is 6, minimum is 2.
Ive made a vm with virt-manager just to play with, and to test out kvm. Alright, I have a decent understand how the memory balloon driver works, but I still dont know how to test if the guest OS can utilize the max setting for cpu cores. From what i gather, the host will start one thread of qemu for each core allocated per vm.
When i run htop inside the guest, it only shows two cores. (also here is the output of cat /proc/cpuinfo: https://gist.github.com/anonymous/93a361545130923537da )
How can I "force" the guest to allocate the other 4 cores so that it can show 6 cores in htop? Is there a way to do this?
© Server Fault or respective owner