I've been cross-referencing all kinds of posts and documentation to find a definitive answer to this, but it seems everybody does things just a tad differently with different syntax and I can't lock anything down. I'm trying to understand the proper combination of settings to pin vCPUs to a single CCX of an Epyc 7313 and retain SMT's benefits.
Currently, this the VM's CPU configuration parameters:
With this configuration, the guest does see a total of 8 CPUs comprised of 4 cores with 2 threads each. I just can't seem to wrap my head around pinning half the VM's cores to host threads 28-31. Is the VM assuming that it has 8 true cores at it's disposal when it's actually just a thread on the host (and consequently incurring a performance hit)? Is this configuration allowing SMT to be leveraged properly?
Currently, this the VM's CPU configuration parameters:
Code:
affinity: 12-15,28-31
args: -smp '8,sockets=1,cores=4,threads=2' -cpu 'host,kvm=off,+kvm_pv_eoi,+kvm_pv_unhalt,topoext=on,host-cache-info=on'
cores: 8
cpu: host
With this configuration, the guest does see a total of 8 CPUs comprised of 4 cores with 2 threads each. I just can't seem to wrap my head around pinning half the VM's cores to host threads 28-31. Is the VM assuming that it has 8 true cores at it's disposal when it's actually just a thread on the host (and consequently incurring a performance hit)? Is this configuration allowing SMT to be leveraged properly?