<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The best optimization would be to make OpenSIPS core work asynchronous so that a request won't block the processing of new requests.&nbsp;Until this happens is little you can optimize if you want distributed infra with high cps.&nbsp;The lowest hanging fruit today to achieve highest CPS is to colocate all external components on the same LAN with OpenSIPS.<div><br></div><div>Adrian</div><div><div>&nbsp;&nbsp;<br><div><div>On Apr 8, 2013, at 11:32 AM, SamyGo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p>Hi AG,<br>
I understand your point, so in this matter we should not only consider the latency between dispatcher and relay but also consider the processing capability of both components as high CPS might require significant resources on relays as well.</p><p>Are there any particular areas which you can point out for me to optimize this? </p><p>Thanks<br>
Sammy</p>
<div class="gmail_quote">On Apr 7, 2013 6:40 PM, "Adrian Georgescu" &lt;<a href="mailto:ag@ag-projects.com">ag@ag-projects.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">As OpenSIPS core is not async, the whole chain of processing a message can cause this.&nbsp;Practically, summing up all RTT for all your database queries, DNS lookups, Radius requests, media reservations can cause this.<div>
<br></div><div>The farther away each component is the poorest the performance as that child cannot process any new packet until is done with the previous.</div><div><br></div><div>Adrian</div><div><br></div><div><div><div>
<div><div>On Apr 7, 2013, at 3:27 PM, SamyGo wrote:</div><br><blockquote type="cite"><div dir="ltr">Hi Sir,<div>Yes, we've optimized our opensips to have enough shared memory as well as the number of children have been increased as well but this situation is still the same.</div>
<div><br></div>
<div>What I can logically think why this is happening is as follow:</div><div><br></div><div>1- Media-relays are in another DC,</div><div>2- Dispatcher queries relays to get the port info to update the SDP with</div>
<div><br></div><div>The delay or slowness of relays might be something causing overall queue length to shoot up.</div><div><br></div><div>Let me know what you think,</div><div><br></div><div>
--</div><div>Sammy</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 6, 2013 at 2:43 AM, Muhammad Shahzad <span dir="ltr">&lt;<a href="mailto:shaheryarkh@gmail.com" target="_blank">shaheryarkh@gmail.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">Well, if you have very high CPS then typically need more opensips children processes to handle load. So you need to,<div>

<br></div><div>1. increase no. of children.</div><div>2. optimize per child and shared memory sizes.</div>

<div><br></div><div>BTW what does it has to do with media proxy as you are reporting SIP UDP port only gets hanged?</div><div><br></div><div>Thank you.</div><div><br></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote"><div><div>On Fri, Apr 5, 2013 at 8:42 PM, SamyGo <span dir="ltr">&lt;<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>&gt;</span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>

<div dir="ltr">Hello,<div><br></div><div>I'm working with opensips with heavy CPS, recently I added mediaproxy-dispatcher on the server and couple of relays on different servers in different Data Center. Everything worked fine until we observed that opensips SIP UDP port 5060 &nbsp;got huge queued packets.&nbsp;</div>




<div><br></div><div>That obviously impacts the call processing. I want to know if this is a usual behavior? or can this be treated/tuned ? &nbsp;</div><div><br></div><div>Thanks,</div><div>Sammy</div>
<div><br></div></div>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">Mit freundlichen Grüßen</span></div>


<span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">Muhammad Shahzad</span><br style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">

<span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">------------------------------</span><span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">-----</span><br style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">



<span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">CISCO Rich Media Communication Specialist (CRMCS)</span><br style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">

<span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">CISCO Certified Network Associate (CCNA)</span><br style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">

<span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">Cell:&nbsp;<a href="tel:%2B49%20176%2099%2083%2010%2085" value="+4917699831085" target="_blank">+49 176 99 83 10 85</a></span><br style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">



<span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">MSN:&nbsp;</span><a href="mailto:shari_786pk@hotmail.com" style="color:rgb(17,85,204);font-size:13px;font-family:arial,sans-serif" target="_blank">shari_786pk@hotmail.com</a><br style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">



<span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">Email:&nbsp;</span><a href="mailto:shaheryarkh@googlemail.com" style="color:rgb(17,85,204);font-size:13px;font-family:arial,sans-serif" target="_blank">shaheryarkh@googlemail.com</a>
</font></span></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br></blockquote></div><br></div></div></body></html>