<div dir="ltr"><span style="font-size:12.800000190734863px">HI Yaniv</span><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">I looked at your reference and it looks like I have almost the same thing, but I was looking to take it a step further with virtual numa node. Is it necessary to really do it for extra performance? Below is my code snippet, it is not cleaned up yet, but works. I am also looking at programatically added host devices such as a GPU. Do you have an example of doing that?</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px"><div># Get the &quot;vms&quot; service</div><div>vms_service = connection.system_service().<wbr>vms_service()</div><div><br></div><div># Create vm</div><div>vms_service.add(</div><div>    types.Vm(</div><div>        name=&#39;test&#39;,</div><div>        type=types.VmType(&#39;high_<wbr>performance&#39;),</div><div>        memory=20 * 2**30,</div><div>        memory_policy=types.<wbr>MemoryPolicy(guaranteed=20 * 2**30, ballooning=False, max=20 * 2**30),</div><div>        os=types.OperatingSystem(boot=<wbr>types.Boot(devices=[types.<wbr>BootDevice.NETWORK, types.BootDevice.HD]), type=&#39;LINUX&#39;),</div><div>        #time_zone=types.TimeZone(&#39;<wbr>GMT-06:00&#39;),</div><div>        numa_tune_mode=types.<wbr>NumaTuneMode(&#39;preferred&#39;),</div><div>        io=types.Io(threads=1),</div><div>        cpu=types.Cpu(topology=types.<wbr>CpuTopology(cores=1, sockets=4, threads=1), mode=types.CpuMode(&#39;host_<wbr>passthrough&#39;),</div><div>                 cpu_tune=types.CpuTune(vcpu_<wbr>pins=[types.VcpuPin(&#39;24&#39;, 0), types.VcpuPin(&#39;25&#39;, 1), types.VcpuPin(&#39;26&#39;, 2), types.VcpuPin(&#39;27&#39;, 3)])),</div><div><br></div><div>        placement_policy=types.<wbr>VmPlacementPolicy(affinity=<wbr>types.VmAffinity(&#39;pinned&#39;), hosts=[types.Host(name=&#39;lab5&#39;)<wbr>]),</div><div>        custom_properties=[types.<wbr>CustomProperty(&#39;hugepages&#39;, &#39;hugepages&#39;, &#39;1048576&#39;)],</div><div>        cluster=types.Cluster(</div><div>            name=&#39;lab5-Local&#39;,</div><div>        ),</div><div>        template=types.Template(</div><div>            name=&#39;Blank&#39;,</div><div>        ),</div><div>    ),</div><div>)</div></div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">Thanks</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">Don</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 26, 2018 at 11:04 AM, Yaniv Kaul <span dir="ltr">&lt;<a href="mailto:ykaul@redhat.com" target="_blank">ykaul@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Jan 24, 2018 at 11:18 PM, Don Dupuis <span dir="ltr">&lt;<a href="mailto:dondster@gmail.com" target="_blank">dondster@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I am able to create a vm using the sdk with nic and disks using the python sdk, but having trouble understanding how to assign it to virtual numanode onto the physical numanode via python sdk. Any help in this area would be greatly appreciated</div></blockquote><div><br></div></span><div>Please see line 165 @ [1], I think it&#39;s what you are looking for.</div><div>Y.</div><div><br></div><div>[1] <a href="https://gerrit.ovirt.org/#/c/86715/3/basic-suite-master/test-scenarios/004_basic_sanity.py" target="_blank">https://gerrit.ovirt.org/#<wbr>/c/86715/3/basic-suite-master/<wbr>test-scenarios/004_basic_<wbr>sanity.py</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Thanks</div><span class="m_-5442865145387916629gmail-HOEnZb"><font color="#888888"><div><br></div><div>Don</div></font></span></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br></div>