<div dir="ltr">Yes, yes, that I understand.<br><br>I know that for example if I want to use host_passthrough then I must use cpu_sockets == numa_nodes.<br><b>My question is more conceptual, for me to understand.</b><br><br><b>For example:</b> If I have a physical host with 1 physical processor (1 socket), can I define my instance with 2, 4, 8+ sockets? I mean, is it good practice? Is it correct to define the instance with 1 socket and increase the amount of socket colors?<br><br>Not sure if I could explain my question... In short, what is the relationship between the socket, cores and virtual thread and the socket, cores and physical thread.<br><div>PS: I'm not into the issue of passthrough or not.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em seg., 4 de set. de 2023 às 13:10, <<a href="mailto:smooney@redhat.com">smooney@redhat.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">in general the only parameter you want to align to the physical host is the number of thread<br>
<br>
so if the phsyical host has 2 thread per physical core then its best to also do that in the vm<br>
<br>
we generally recommend setting the number of virutal socket equal to the number of virutal numa nodes<br>
if the vm has no explict numa toploly then you should set sockets=1<br>
else hw:cpu_sockets==hw:numa_nodes is our recomendation.<br>
<br>
for windows in partcalar the default config generated is suboptimal as windows client only supprot 1-2 sockets<br>
and windows serverver maxes out at 4 i believe.<br>
<br>
On Mon, 2023-09-04 at 11:51 -0300, Jorge Visentini wrote:<br>
> Hello Team,<br>
> <br>
> What is the difference between creating an instance with *4* or *8 virtual<br>
> sockets*, since the hypervisor has only *4 physical sockets*.<br>
> My question is where do sockets, cores and virtual threads fit into the<br>
> physical hardware. I think this question is not just related to Openstack,<br>
> but with any virtualization.<br>
> <br>
> My hypervisor configuration is as follows:<br>
> <br>
> CPU(s): 192<br>
> Online CPU(s) list: 0-191<br>
> Thread(s) per core: 2<br>
> Core(s) per socket: 24<br>
> Socket(s): 4<br>
> NUMA node(s): 4<br>
> <br>
> Do you have any documentation that I can read and understand better?<br>
> <br>
> That we have a nice week!<br>
<br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="color:rgb(153,153,153)"><span style="font-family:arial,helvetica,sans-serif">Att,<br></span></span></div><span style="color:rgb(153,153,153)"><span style="font-family:arial,helvetica,sans-serif">Jorge Visentini<br>+55 55 98432-9868</span></span><br></div></div></div></div>