<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    On 3/23/12 2:55 PM, Andreas Heise wrote:
    <blockquote
cite="mid:CAKFoXCX=ej2C6CzffOTBjyOo67ewO-+tJ6wVy8GUuW_svZd40g@mail.gmail.com"
      type="cite">
      <div>Hi list,</div>
      <div><br>
      </div>
      <div>I use Kamailio 3.2.2 as TLS&lt;=&gt;TCP gateway this is
        working well, but if I create some traffic by SIPP</div>
      <div>then Kamailio response time increase with every new call,
        seems to be that Kamailio process call by call.&nbsp;</div>
      <div>I made a test with 30caps then after ~200calls Kamailio need
        ~3s to response&nbsp;an initial INVITE from the PBX.</div>
    </blockquote>
    you mean time to send '100 trying' or time till relaying to the
    network again?<br>
    <br>
    You can add some xlog messages (one first in the route block) to see
    if reading is fast enough, then benchmark module helps to identify
    if your config has some time consuming actions.<br>
    <br>
    Once you identify the time consuming component, we can think of
    solutions. Having single cpu does not help much in making it more
    parallel in the config via t_suspend()/t_continue(). SSL needs cpu
    and memory to encrypt/decrypt.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote
cite="mid:CAKFoXCX=ej2C6CzffOTBjyOo67ewO-+tJ6wVy8GUuW_svZd40g@mail.gmail.com"
      type="cite">
      <div>This delay seems to be increased with each call.</div>
      <div><br>
      </div>
      <div>test scenario:</div>
      <div>
        <br>
      </div>
      <div>SIPP UAC---TCP---PABX---TLS---Kamailio---TCP---SIPP UAS</div>
      <div><br>
      </div>
      <div>1.1.1.1 = PABX</div>
      <div>2.2.2.2 = SIPP UAS</div>
      <div>5.5.5.5 = Kamailio</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>if ($si == "1.1.1.1") # from PABX</div>
      <div>&nbsp; &nbsp; {</div>
      <div>&nbsp; &nbsp; &nbsp;xlog("L_INFO","FROM PABX: $rm, $ci\n");</div>
      <div>&nbsp; &nbsp; &nbsp;t_on_reply("1");</div>
      <div>&nbsp; &nbsp; &nbsp;force_send_socket(tcp:<a moz-do-not-send="true"
          href="http://5.5.5.5:5060">5.5.5.5:5060</a>);</div>
      <div>
        &nbsp; &nbsp; &nbsp;rewritehostport("<a moz-do-not-send="true"
          href="http://2.2.2.2:5070">2.2.2.2:5070</a>");</div>
      <div>&nbsp; &nbsp; &nbsp;t_relay_to_tcp("2.2.2.2","5070");</div>
      <div>&nbsp; &nbsp; &nbsp;exit;</div>
      <div>&nbsp; &nbsp; };</div>
      <div><br>
      </div>
      <div>I got all the calls in a single TLS connection from the PBAX
        so increasing of TCP childs</div>
      <div>doesn't help. I also already tried to adjust some TCP buffers
        and played with TCP_ASYNC.</div>
      <div><br>
      </div>
      <div>With UDP / TCP it's better, is really the TLS/openssl is the
        bottleneck or the way I relay</div>
      <div>the request? &nbsp;&nbsp;</div>
      <div><br>
      </div>
      <div>The test machine has only 512MB RAM and is a single core cpu
        (2,8GHZ), but 30caps isn't much?</div>
      <div><br>
      </div>
      <div>Any suggestions?</div>
      <div><br>
      </div>
      <div>many thanks,</div>
      <div>Andreas</div>
      <div><br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
<a class="moz-txt-link-freetext" href="http://www.asipto.com/index.php/kamailio-advanced-training/">http://www.asipto.com/index.php/kamailio-advanced-training/</a></pre>
  </body>
</html>