<div dir="ltr">Sorry, The mail sent accidentally by mis-typing ...<div><br></div><div>My question is, what is the benefit of the above preference?</div><div><br></div><div>BR,</div><div>Kevin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 20, 2017 at 10:43 AM, Zhenyu Zheng <span dir="ltr"><<a href="mailto:zhengzhenyulixi@gmail.com" target="_blank">zhengzhenyulixi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>InĀ <a href="https://github.com/openstack/nova/blob/master/nova/virt/hardware.py#L396" target="_blank">https://github.com/<wbr>openstack/nova/blob/master/<wbr>nova/virt/hardware.py#L396</a> we calculated every possible CPU topologies and sorted by:</div><div><table class="m_2587622506229387203gmail-highlight m_2587622506229387203gmail-tab-size m_2587622506229387203gmail-js-file-line-container" style="box-sizing:border-box;border-collapse:collapse;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td id="m_2587622506229387203gmail-LC446" class="m_2587622506229387203gmail-blob-code m_2587622506229387203gmail-blob-code-inner m_2587622506229387203gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"> <span class="m_2587622506229387203gmail-pl-c" style="box-sizing:border-box;color:rgb(106,115,125)"><span class="m_2587622506229387203gmail-pl-c" style="box-sizing:border-box">#</span> We want to</span></td></tr><tr style="box-sizing:border-box"><td id="m_2587622506229387203gmail-L447" class="m_2587622506229387203gmail-blob-num m_2587622506229387203gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_2587622506229387203gmail-LC447" class="m_2587622506229387203gmail-blob-code m_2587622506229387203gmail-blob-code-inner m_2587622506229387203gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_2587622506229387203gmail-pl-c" style="box-sizing:border-box;color:rgb(106,115,125)"><span class="m_2587622506229387203gmail-pl-c" style="box-sizing:border-box">#</span> - Minimize threads (ie larger sockets * cores is best)</span></td></tr><tr style="box-sizing:border-box"><td id="m_2587622506229387203gmail-L448" class="m_2587622506229387203gmail-blob-num m_2587622506229387203gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_2587622506229387203gmail-LC448" class="m_2587622506229387203gmail-blob-code m_2587622506229387203gmail-blob-code-inner m_2587622506229387203gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_2587622506229387203gmail-pl-c" style="box-sizing:border-box;color:rgb(106,115,125)"><span class="m_2587622506229387203gmail-pl-c" style="box-sizing:border-box">#</span> - Prefer sockets over cores</span></td></tr><tr style="box-sizing:border-box"><td id="m_2587622506229387203gmail-L449" class="m_2587622506229387203gmail-blob-num m_2587622506229387203gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_2587622506229387203gmail-LC449" class="m_2587622506229387203gmail-blob-code m_2587622506229387203gmail-blob-code-inner m_2587622506229387203gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap">possible <span class="m_2587622506229387203gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">=</span> <span class="m_2587622506229387203gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">sorted</span>(possible, <span class="m_2587622506229387203gmail-pl-v" style="box-sizing:border-box;color:rgb(227,98,9)">reverse</span><span class="m_2587622506229387203gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">=</span><span class="m_2587622506229387203gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">True</span>,</td></tr><tr style="box-sizing:border-box"><td id="m_2587622506229387203gmail-L450" class="m_2587622506229387203gmail-blob-num m_2587622506229387203gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_2587622506229387203gmail-LC450" class="m_2587622506229387203gmail-blob-code m_2587622506229387203gmail-blob-code-inner m_2587622506229387203gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="m_2587622506229387203gmail-pl-v" style="box-sizing:border-box;color:rgb(227,98,9)">key</span><span class="m_2587622506229387203gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">=</span><span class="m_2587622506229387203gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">lambda</span> <span class="m_2587622506229387203gmail-pl-smi" style="box-sizing:border-box">x</span>: (x.sockets <span class="m_2587622506229387203gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">*</span> x.cores,</td></tr><tr style="box-sizing:border-box"><td id="m_2587622506229387203gmail-L451" class="m_2587622506229387203gmail-blob-num m_2587622506229387203gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_2587622506229387203gmail-LC451" class="m_2587622506229387203gmail-blob-code m_2587622506229387203gmail-blob-code-inner m_2587622506229387203gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap">x.sockets,</td></tr><tr style="box-sizing:border-box"><td id="m_2587622506229387203gmail-L452" class="m_2587622506229387203gmail-blob-num m_2587622506229387203gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="m_2587622506229387203gmail-LC452" class="m_2587622506229387203gmail-blob-code m_2587622506229387203gmail-blob-code-inner m_2587622506229387203gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap">x.threads))
</td></tr></tbody></table></div></div>
</blockquote></div><br></div>