<div dir="ltr"><div>resending to group instead of to steve.. <br><br>OK.. Looks like my test results were skewed by strict numa 
placement policy set in the flavor, and my neutron ports being created 
against PCI devices in a specific NUMA node.<br></div>For example, if I 
use a flavor I suspected of mapping to numa1, and if I created VFs 
against PFs in numa1, coupled with strict numa policy, I ended up using 
numa1 for cpu, memory and pci locality.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 8, 2016 at 12:22 PM, Steve Gordon <span dir="ltr"><<a href="mailto:sgordon@redhat.com" target="_blank">sgordon@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">----- Original Message -----<br>
> From: "Brent Troge" <<a href="mailto:brenttroge2016@gmail.com">brenttroge2016@gmail.com</a>><br>
> To: <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
> Sent: Friday, July 8, 2016 9:59:58 AM<br>
> Subject: [Openstack] vCPU -> pCPU MAPPING<br>
><br>
> context - high performance private cloud with cpu pinning<br>
><br>
> Is it possible to map vCPUs to specific pCPUs ?<br>
> Currently I see you can only direct which vCPUs are mapped to a specific<br>
> NUMA node<br>
><br>
> hw:numa_cpus.0=1,2,3,4<br>
<br>
</span>Just in addition to Jay's comment, the above does not do what I suspect you think it does. The above tells Nova to expose vCPUs 1, 2, 3, and 4 in *guest* NUMA node 0 when building the guest NUMA topology in the Libvirt XML. Nova will endeavor to map these vCPUs to pCPUs on the same NUMA node on the host as *each other* but that will not necessarily be NUMA node *0* on the host depending on resource availability.<br>
<br>
Thanks,<br>
<br>
Steve<br>
<span class="im HOEnZb"><br>
> However, to get even more granular, is it possible to create a flavor which<br>
> maps vCPU to specific pCPU within a numa node ?<br>
><br>
> Something like:<br>
> hw:numa_cpus.<NUMA-NODE>-<pCPU>=<vCPU><br>
><br>
> hw:numa_cpus.0-1=1<br>
> hw:numa_cpus.0-2=2<br>
><br>
><br>
> Thanks!<br>
><br>
</span><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
><br>
</div></div></blockquote></div><br></div>