<html><body><span style="font-family:Verdana; color:#000; font-size:10pt;"><span style="font-family:Verdana; color:#000; font-size:10pt;"><div style="font-family: verdana, geneva; color: rgb(0, 0, 0); font-size: 10pt;" mce_style="color: #000000; font-family: verdana, geneva; font-size: 10pt;">Thanks for the reply, this is the output</div><div style="font-family: verdana, geneva;"><font face="verdana, geneva" style=""></font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"></font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"><br></font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva">Machine (31GB)</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> Package L#0 + L3 L#0 (15MB)</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> L2 L#0 (256KB) + L1d L#0 (32KB) + L1i L#0 (32KB) + Core L#0</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> PU L#0 (P#0)</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> PU L#1 (P#6)</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> L2 L#1 (256KB) + L1d L#1 (32KB) + L1i L#1 (32KB) + Core L#1</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> PU L#2 (P#1)</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> PU L#3 (P#7)</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> L2 L#2 (256KB) + L1d L#2 (32KB) + L1i L#2 (32KB) + Core L#2</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> PU L#4 (P#2)</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> PU L#5 (P#8)</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> L2 L#3 (256KB) + L1d L#3 (32KB) + L1i L#3 (32KB) + Core L#3</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> PU L#6 (P#3)</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> PU L#7 (P#9)</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> L2 L#4 (256KB) + L1d L#4 (32KB) + L1i L#4 (32KB) + Core L#4</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> PU L#8 (P#4)</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> PU L#9 (P#10)</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> L2 L#5 (256KB) + L1d L#5 (32KB) + L1i L#5 (32KB) + Core L#5</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> PU L#10 (P#5)</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"> PU L#11 (P#11)</font></div><div style="font-family: verdana, geneva;"><br></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva">At the moment I have the following in my Domain XML, to pin the first physical 3 cores to corresponding virtual cores. My question though, is how do I know which vcpus are siblings for a given topology specified in <cpu><topology>...</font><span></cpu></topology>?</span></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"><br></font><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt;" mce_style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt;"></span></div><div><span style="font-size: 9pt;" mce_style="font-size: 9pt;"><span style="font-size: 10pt;" mce_style="font-size: 10pt;"><vcpu placement='static' cpuset="1-6">6</vcpu></span></span></div><div><span style="font-size: 10pt;" mce_style="font-size: 10pt;"><br></span></div><div><span style="font-size: 9pt;" mce_style="font-size: 9pt;"><span style="font-size: 10pt;" mce_style="font-size: 10pt;"><cputune></span></span></div><div><span style="font-size: 10pt;" mce_style="font-size: 10pt;"> <vcpupin vcpu="0" cpuset="0"/></span></div><div><span style="font-size: 10pt;" mce_style="font-size: 10pt;"> <vcpupin vcpu="1" cpuset="6"/></span></div><div><div><span mce_style="font-size: 10pt;"> <vcpupin vcpu="2" cpuset="1"/></span></div><div><span mce_style="font-size: 10pt;"> <vcpupin vcpu="3" cpuset="7"/></span></div></div><div><span style="font-size: 10pt;" mce_style="font-size: 10pt;"> <vcpupin vcpu="4" cpuset="2"/></span></div><div><span style="font-size: 10pt;" mce_style="font-size: 10pt;"><span style=""> <vcpupin vcpu="5" cpuset="8"/></span></span></div><div><span style="font-size: 10pt;" mce_style="font-size: 10pt;"></cputune></span></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"><br></font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva">Thanks for the help!</font></div><div style="font-family: verdana, geneva;"><font face="verdana, geneva"><br></font> <div id="wmQuoteWrapper"> -------- Original Message --------<br> Subject: Re: [libvirt-users] CPU Pinning Help<br> From: Ram Krishna <<a target="_blank" href="mailto:krishna.ubuntu@gmail.com" mce_onclick="if(window.location==top.location){Popup.composeWindow('pcompose.php?sendto=krishna.ubuntu%40gmail.com');}else{top.Popup.composeWindow('pcompose.php?sendto=krishna.ubuntu%40gmail.com');}; return false;">krishna.ubuntu@gmail.com</a>><br> Date: Tue, March 21, 2017 1:13 am<br> To: <a target="_blank" href="mailto:arrakis@tsiom.com" mce_onclick="if(window.location==top.location){Popup.composeWindow('pcompose.php?sendto=arrakis%40tsiom.com');}else{top.Popup.composeWindow('pcompose.php?sendto=arrakis%40tsiom.com');}; return false;">arrakis@tsiom.com</a><br> Cc: <a target="_blank" href="mailto:libvirt-users@redhat.com" mce_onclick="if(window.location==top.location){Popup.composeWindow('pcompose.php?sendto=libvirt-users%40redhat.com');}else{top.Popup.composeWindow('pcompose.php?sendto=libvirt-users%40redhat.com');}; return false;">libvirt-users@redhat.com</a><br> <br> can you try lstopo command<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 19, 2017, at 9:54 PM, <<a target="_blank" href="mailto:arrakis@tsiom.com" mce_onclick="if(window.location==top.location){Popup.composeWindow('pcompose.php?sendto=arrakis%40tsiom.com');}else{top.Popup.composeWindow('pcompose.php?sendto=arrakis%40tsiom.com');}; return false;" class="">arrakis@tsiom.com</a>> <<a target="_blank" href="mailto:arrakis@tsiom.com" mce_onclick="if(window.location==top.location){Popup.composeWindow('pcompose.php?sendto=arrakis%40tsiom.com');}else{top.Popup.composeWindow('pcompose.php?sendto=arrakis%40tsiom.com');}; return false;" class="">arrakis@tsiom.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><span style="font-family: Verdana; font-size: 10pt;" mce_style="font-family: Verdana; font-size: 10pt;" class=""><div class="colourline linestyle2">Hello, I was hoping <span style="font-size: 10pt;" mce_style="font-size: 10pt;" class="">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 class=""></div><cpu mode='host-model> <topology sockets='1' cores='3' threads='2'/> </cpu><div class="linestyle1 colourline"><br class=""></div><div class="linestyle1 colourline"><span style="font-size: 10pt;" mce_style="font-size: 10pt;" class="">I know what physical cpu ids are siblings (share the same processor cores) through $(cat /proc/cpu) or $(</span>virsh capabilities). <span style="font-size: 10pt;" mce_style="font-size: 10pt;" class="">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 class=""></div><div class="linestyle1 colourline"><span style="font-size: 10pt;" mce_style="font-size: 10pt;" class="">Could someone please help?<br class="">Many thanks! </span></div><div class="linestyle1 colourline"><span style="font-size: 10pt;" mce_style="font-size: 10pt;" class=""><br class=""></span></div><div class="linestyle1 colourline"><br class=""></div></span></div> _______________________________________________<br class="">libvirt-users mailing list<br class=""><a target="_blank" href="mailto:libvirt-users@redhat.com" mce_onclick="if(window.location==top.location){Popup.composeWindow('pcompose.php?sendto=libvirt-users%40redhat.com');}else{top.Popup.composeWindow('pcompose.php?sendto=libvirt-users%40redhat.com');}; return false;" class="">libvirt-users@redhat.com</a><br class=""><a target="_blank" href="https://www.redhat.com/mailman/listinfo/libvirt-users" mce_href="https://www.redhat.com/mailman/listinfo/libvirt-users">https://www.redhat.com/mailman/listinfo/libvirt-users</a></div></blockquote></div><br class=""></div> </div> </div></span></span></body></html>