<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 8 December 2016 at 20:55, Armando M. <span dir="ltr"><<a href="mailto:armamig@gmail.com" target="_blank">armamig@gmail.com</a>></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"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="gmail-">On 5 December 2016 at 07:59, Bence Romsics <span dir="ltr"><<a href="mailto:bence.romsics@gmail.com" target="_blank">bence.romsics@gmail.com</a>></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">Hi,<br>
<br>
I measured how the new trunk API scales with lots of subports. You can<br>
find the results here:<br>
<br>
<a href="https://wiki.openstack.org/wiki/Neutron_Trunk_API_Performance_and_Scaling" rel="noreferrer" target="_blank">https://wiki.openstack.org/wik<wbr>i/Neutron_Trunk_API_Performanc<wbr>e_and_Scaling</a><br>
<br>
Hope you find it useful. There are several open ends, let me know if<br>
you're interested in following up some of them.<br></blockquote><div><br></div></span><div>I looked into [1] a little bit as it bothered me :)</div><div><br></div><div>Here's my findings:</div><div><br></div><div><ul><li>openstack port list is slower than neutron port-list as it looks like the command goes to Nova first [2], which is where the overhead comes from.</li><li>when you have subports the port-list response gets bigger because of the bigger response due to the trunk-details extension.</li><li>However, the bulk of the time is spent in [3], when building the payload for a port involved as a parent port. In no other case you will see the overhead as in no other case the loop over subports is executed. </li></ul></div><div>The hook should be optimized!</div></div></div></div></blockquote><div><br></div><div>Follow up: Kevin and I put together a couple of patches [1,2] to fix and validate how to speed up the lookup. We'll dig into why sqlalchemy is acting differently when listing ports with or without filters, but this should do for now.</div><div><br></div><div>Cheers,</div><div>Armando</div><div><br></div><div>[1] <a href="https://review.openstack.org/#/c/409267/">https://review.openstack.org/#/c/409267/</a></div><div>[2] <a href="https://review.openstack.org/#/c/408983/">https://review.openstack.org/#/c/408983/</a> </div><div><br></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 class="gmail_extra"><div class="gmail_quote"><div><br></div><div>[1] <a href="https://wiki.openstack.org/wiki/Neutron_Trunk_API_Performance_and_Scaling#surprise_effect_on_filtered_port_listings" target="_blank">https://wiki.openstack.org/wik<wbr>i/Neutron_Trunk_API_Performanc<wbr>e_and_Scaling#surprise_effect_<wbr>on_filtered_port_listings</a> </div><div>[2] <a href="http://paste.openstack.org/show/591882/" target="_blank">http://paste.openstack.org<wbr>/show/591882/</a></div><div>[3] <a href="https://github.com/openstack/neutron/blob/master/neutron/services/trunk/plugin.py#L42" target="_blank">https://github.com/<wbr>openstack/neutron/blob/master/<wbr>neutron/services/trunk/plugin.<wbr>py#L42</a></div><span class="gmail-"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Cheers,<br>
Bence Romsics<br>
<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.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
</blockquote></span></div><br></div></div>
</blockquote></div><br></div></div>