<p dir="ltr">Have you enabled huge page on the host level?<br>
Do you have enough vn.nr_hugepages?<br>
As per your requirements, you need a host with 512 hugepage (1G/2M).<br>
Check your host's /etc/sysctl.conf file and see vm.nr_hugepages value.</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Aug 25, 2016 1:15 PM, "zhi" <<a href="mailto:changzhi1990@gmail.com">changzhi1990@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hi, all<div><br></div><div>    I plan to create VM with huge page. And I created a new flavor like this:</div><div><br></div><div><div>$ nova flavor-show ed8dccd2-adbe-44ee-9e4f-<wbr>391d045d3653</div><div>+----------------------------+<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-------------------+</div><div>| Property                   | Value                                                                                                       |</div><div>+----------------------------+<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-------------------+</div><div>| OS-FLV-DISABLED:disabled   | False                                                                                                       |</div><div>| OS-FLV-EXT-DATA:ephemeral  | 0                                                                                                           |</div><div>| disk                       | 30                                                                                                          |</div><div>| extra_specs                | {"aggregate_instance_extra_<wbr>specs:pinned": "true", "hw:cpu_policy": "dedicated", "hw:mem_page_size": "2048"} |</div><div>| id                         | ed8dccd2-adbe-44ee-9e4f-<wbr>391d045d3653                                                                        |</div><div>| name                       | m1.vm_2                                                                                                     |</div><div>| os-flavor-access:is_public | True                                                                                                        |</div><div>| ram                        | 1024                                                                                                        |</div><div>| rxtx_factor                | 1.0                                                                                                         |</div><div>| swap                       |                                                                                                             |</div><div>| vcpus                      | 4                                                                                                           |</div><div>+----------------------------+<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-------------------+</div></div><div><br></div><div>Then I create a VM by using this flavor and creating fail. The error message is :</div><div>"</div><div><div>{"message": "Build of instance ada7ac22-1052-44e1-b4a5-<wbr>c21221dbab87 was re-scheduled: Insufficient compute resources: Requested instance NUMA topology cannot fit the given</div><div> host NUMA topology.", "code": 500, "details": "  File \"/usr/lib/python2.7/site-<wbr>packages/nova/compute/manager.<wbr>py\", line 1905, in _do_build_and_run_instance</div></div><div>"</div><div><br></div><div>And, my compute node's numa info is:</div><div><br></div><div><div>$ numactl --hardware</div><div>available: 2 nodes (0-1)</div><div>node 0 cpus: 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38</div><div>node 0 size: 32543 MB</div><div>node 0 free: 28307 MB</div><div>node 1 cpus: 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39</div><div>node 1 size: 32768 MB</div><div>node 1 free: 29970 MB</div><div>node distances:</div><div>node   0   1</div><div>  0:  10  21</div><div>  1:  21  10</div></div><div><br></div><div>Qemu version is "QEMU emulator version 2.1.2 (qemu-kvm-ev-2.1.2-23.el7.1)". And libvirtd version is "1.2.17". </div><div><br></div><div><br></div><div>Did anyone meet the same error like me?</div><div><br></div><div><br></div><div><br></div><div><span style="color:rgb(0,0,0);font-family:"lucida Grande",Verdana;font-size:14px">B.R.</span><br></div></div>
<br>______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
<br></blockquote></div></div>