<div dir="ltr">Hi All,<div><br></div><div>I am working on CPU Pinning feature of master branch of NOVA. Setup is devstack.</div><div>I want to pin vcpus to pcpus using flavors and I have only one compute node. No host aggregates </div><div>created.</div><div><br></div><div><br></div><div>I have created cpu pinning flavor and set cpuset and vcpupin parameters using </div><div><br></div><div>1) nova flavor-create pinned.medium 6 2048 1 2</div><div>2) nova flavor-key 6 set "hw:cpu_policy"="dedicated"</div><div>3) nova flavor-key 6 set "hw:cpu_threads_policy"="prefer</div><div><pre>4) nova flavor-key set 6 set vcpupin:0=1</pre><pre>5) nova flavor-key set 6 set vcpupin:1=1</pre><pre>srinivas@srinivas:~/devstack$ nova flavor-show 6
+----------------------------+-------------------------------------------------------------------------------------------------------+
| Property                   | Value                                                                                                 |
+----------------------------+-------------------------------------------------------------------------------------------------------+
| OS-FLV-DISABLED:disabled   | False                                                                                                 |
| OS-FLV-EXT-DATA:ephemeral  | 0                                                                                                     |
| disk                       | 1                                                                                                     |
| extra_specs                | {"hw:cpu_policy": "dedicated", "vcpupin:0": "1", "hw:cpu_threads_policy": "prefer", "vcpupin:1": "1"} |
| id                         | 6                                                                                                     |
| name                       | pinned.medium                                                                                         |
| os-flavor-access:is_public | True                                                                                                  |
| ram                        | 2048                                                                                                  |
| rxtx_factor                | 1.0                                                                                                   |
| swap                       |                                                                                                       |
| vcpus                      | 2                                                                                                     |
+----------------------------+-------------------------------------------------------------------------------------------------------+
</pre><div><br></div><div>Now If I try to launch guest vm, I could not able to see above set cpuset and vcpupin parameters in guest.xml. vcpus are running on different cores on its own.</div><div><br></div><div>Please suggest me, how can I set above parameters in guest xml and validate CPU Pinning feature.</div><div><br></div><div>Thanks in advance,</div><div>Srinivas.</div><pre><br></pre><pre><br></pre></div></div>