<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Mon 27 Aug 2018, 04:20 Guo, Ruijing, <<a href="mailto:ruijing.guo@intel.com">ruijing.guo@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Stephen,<br>
<br>
After setting flavor, VM was created in node 0 (expect in node1). How to debug it?<br>
<br>
Nova.conf<br>
[neutron]<br>
physnets = physnet0,physnet1<br>
<br>
[neutron_physnet_physnet1]<br>
numa_nodes = 1<br></blockquote></div></div><div dir="auto">Have you enabled the numa topology filter its off by default and without it the numa aware vswitch code is disabled. </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
openstack network create net1 --external --provider-network-type=vlan --provider-physical-network=physnet1 --provider-segment=200<br>
...<br>
openstack server create --flavor 1 --image=cirros-0.3.5-x86_64-disk --nic net-id=net1 vm1<br>
<br>
<cputune><br>
<shares>1024</shares><br>
<vcpupin vcpu='0' cpuset='0-7,16-23'/><br>
<emulatorpin cpuset='0-7,16-23'/><br>
</cputune><br>
<br>
available: 2 nodes (0-1)<br>
node 0 cpus: 0 1 2 3 4 5 6 7 16 17 18 19 20 21 22 23<br>
node 0 size: 64412 MB<br>
node 0 free: 47658 MB<br>
node 1 cpus: 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31<br>
node 1 size: 64502 MB<br>
node 1 free: 44945 MB<br>
node distances:<br>
node 0 1 <br>
0: 10 21 <br>
1: 21 10<br>
<br>
Thanks,<br>
-Ruijing<br>
<br>
-----Original Message-----<br>
From: Stephen Finucane [mailto:<a href="mailto:sfinucan@redhat.com" target="_blank" rel="noreferrer">sfinucan@redhat.com</a>] <br>
Sent: Saturday, August 25, 2018 12:15 AM<br>
To: OpenStack Development Mailing List (not for usage questions) <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank" rel="noreferrer">openstack-dev@lists.openstack.org</a>><br>
Subject: Re: [openstack-dev] [nova][neutron] numa aware vswitch<br>
<br>
On Fri, 2018-08-24 at 09:13 -0500, Matt Riedemann wrote:<br>
> On 8/24/2018 8:58 AM, Stephen Finucane wrote:<br>
> > Using this won't add a NUMA topology - it'll just control how any <br>
> > topology present will be mapped to the guest. You need to enable <br>
> > dedicated CPUs or a explicitly request a NUMA topology for this to <br>
> > work.<br>
> > <br>
> > openstack flavor set --property hw:numa_nodes=1 1<br>
> > <br>
> > <or><br>
> > <br>
> > openstack flavor set --property hw:cpu_policy=dedicated 1<br>
> > <br>
> > <br>
> > This is perhaps something that we could change in the future, though <br>
> > I haven't given it much thought yet.<br>
> <br>
> Looks like the admin guide [1] should be updated to at least refer to <br>
> the flavor user guide on setting up these types of flavors?<br>
> <br>
> [1] <br>
> <a href="https://docs.openstack.org/nova/latest/admin/networking.html#numa-affi" rel="noreferrer noreferrer" target="_blank">https://docs.openstack.org/nova/latest/admin/networking.html#numa-affi</a><br>
> nity<br>
<br>
Good idea.<br>
<br>
<a href="https://review.openstack.org/596393" rel="noreferrer noreferrer" target="_blank">https://review.openstack.org/596393</a><br>
<br>
Stephen<br>
<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div></div></div>