Linux – KVM Host with 88 physical cores uses only 14 on 64 core Guest

kvm-virtualizationlinuxvcpuvirtual-machinesvirtualization

I do have a server with 2 CPUs (22 Cores each plus HT). I created a KVM Guest with 64 allocated cores. When I run a compilation task the virtual machine shows all 64 cores at 100% (at moderate Disk I/O and memory usage) but on the physical machine the guest only uses 14 cores at 100% instead of all the 88 cores randomly (or 64 dedicated cores at 100%). Even if I spawn more compilation tasks this doesn't change. Is there any parameter or setting I have to change to actually use all the computing power that is available?

EDIT: screenshot of htop (left guest, right host)

Best Answer

There was a vCPU pinning in the XML which doesn't appear in virt-manager -.- I removed it via

for i in {0..63}; do sudo virsh vcpupin $kvmdomain $i r --config; done 

and removed the line in the XML-file via

sudo virsh edit <domain> 

After that I restarted the guest.