[libvirt-users] CPU Pinning Help

Ram Krishna krishna.ubuntu at gmail.com
Tue Mar 21 01:13:06 UTC 2017


can you try lstopo command

> On Mar 19, 2017, at 9:54 PM, <arrakis at tsiom.com> <arrakis at tsiom.com> wrote:
> 
> Hello, I was hoping someone help me regarding my KVM Domain XML file. I have a 1 socket, 6 core processor with hyperthreading. I wanted to pin 3 full cores (6 threads on 3 cores) to my KVM instance with a 1-1 mapping (so that the KVM instance has 3 cores and 6 total threads). I thus used the following in my xml file:
> 
> <cpu mode='host-model> <topology sockets='1' cores='3' threads='2'/> </cpu>
> 
> I know what physical cpu ids are siblings (share the same processor cores) through $(cat /proc/cpu) or $(virsh capabilities).  However, in the <cputune> section, when pinning vcpus ids to physical cpus, I need to know which vcpu ids are "siblings" (which vcpu ids share the same virtual core). I would imagine vcpu ids 0 & 1 are siblings, 2 & 3 are siblings etc, but I cannot find anywhere in the documentation which confirms this.
> 
> Could someone please help?
> Many thanks! 
> 
> 
> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20170320/f332260e/attachment.htm>


More information about the libvirt-users mailing list