<div dir="ltr"><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">Hi guys, we had in the past when using physical servers, several throughput issues regarding the throughput of our APIS, in our case we measure this with packets per seconds, since we dont have that much bandwidth (Mb/s) since our apis respond lots of packets very small ones (maximum response of 3.5k and avg response of 1.5k), when we where using this physical servers, when we reach throughput capacity (due to clients tiemouts) we touched the ethernet ring configuration and we made the problem dissapear.</div>
<div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">
Today with kvm and over 10k virtual instances, when we want to increase the throughput of KVM instances, we bumped with the fact that when using virtio on guests, we have a max configuration of the ring of 256 TX/RX, and from the host side the atached vnet has a txqueuelen of 500.</div>
<div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">
What i want to know is, how can i tune the guest to support more packets per seccond if i know that's my bottleneck?</div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">
<br></div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">* does virtio exposes more packets to configure in the virtual ethernet's ring ?</div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">
* does the use of vhost_net helps me with increasing packets per second and not only bandwidth?</div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div>
<div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">does anyone has to struggle with this before and knows where i can look into ?</div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">
there's LOOOOOOOOOOOOOOOTS of information about networking performance tuning of kvm, but nothing related to increase throughput in pps capacity.</div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">
<br></div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">This is a couple of configurations that we are having right now on the compute nodes:</div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">
<br></div><div class="gmail_default"><div class="gmail_default"><font color="#000000" face="courier new, monospace">* 2x1Gb bonded interfaces (want to know the more than 20 models we are using, just ask for it)</font></div>
<div><div><font color="#000000" face="courier new, monospace">* Multi queue interfaces, pined via irq to different cores</font></div><div><div><font color="#000000" face="courier new, monospace">* Linux bridges, no VLAN, no open-vswitch</font></div>
<div><font color="#000000" face="courier new, monospace">* ubuntu 12.04 kernel 3.2.0-[40-48]<br></font></div><div style="color:rgb(0,0,0);font-family:'courier new',monospace;font-size:small"><br></div></div></div>
</div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">
any help will be incredibly apreciated !!</div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">
thank you.</div>
</div>