<html><body><span style="font-family:Verdana; color:#000; font-size:10pt;"><div class="linestyle2 colourline">Hello, I was hoping <span style="font-size: 10pt;" mce_style="font-size: 10pt;">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:</span></div><div class="linestyle1 colourline"><br></div><div class="linestyle1 colourline"><cpu mode='host-model> <topology sockets='1' cores='3' threads='2'/> </cpu></div><div class="linestyle1 colourline"><br></div><div class="linestyle1 colourline"><span style="font-size: 10pt;" mce_style="font-size: 10pt;">I know what physical cpu ids are siblings (share the same processor cores) through $(cat /proc/cpu) or $(</span><span style="">virsh capabilities). </span><span style="font-size: 10pt;">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.</span></div><div class="linestyle1 colourline"><br></div><div class="linestyle1 colourline"><span style="font-size: 10pt;">Could someone please help?<br>Many thanks! </span></div><div class="linestyle1 colourline"><span style="font-size: 10pt;"><br></span></div><div class="linestyle1 colourline"><br></div></span></body></html>
can you try lstopo command> On Mar 19, 2017, at 9:54 PM, <arrakis@tsiom.com> <arrakis@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@redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users