Hi Daniel,<div><br></div><div>I already tried benchmark module, but in the meantime I&#39;ve fixed the problem. </div><div>It wasn&#39;t a good idea to run a performance test with debug=7 (set from a previous test),</div><div>
now with debug=1 Kamailio flying speed is as excepted also on this low performance test machine ;-)</div><div><br></div><div><br></div><div>thanks for your time,</div><div>Andreas<br><br><br><div class="gmail_quote">2012/3/24 Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hello,<div class="im"><br>
    <br>
    On 3/23/12 2:55 PM, Andreas Heise wrote:
    <blockquote 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. </div>
      <div>I made a test with 30caps then after ~200calls Kamailio need
        ~3s to response an initial INVITE from the PBX.</div>
    </blockquote></div>
    you mean time to send &#39;100 trying&#39; 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 type="cite"><div class="im">
      <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 == &quot;1.1.1.1&quot;) # from PABX</div>
      <div>    {</div>
      <div>     xlog(&quot;L_INFO&quot;,&quot;FROM PABX: $rm, $ci\n&quot;);</div>
      <div>     t_on_reply(&quot;1&quot;);</div>
      <div>     force_send_socket(tcp:<a href="http://5.5.5.5:5060" target="_blank">5.5.5.5:5060</a>);</div>
      <div>
             rewritehostport(&quot;<a href="http://2.2.2.2:5070" target="_blank">2.2.2.2:5070</a>&quot;);</div>
      <div>     t_relay_to_tcp(&quot;2.2.2.2&quot;,&quot;5070&quot;);</div>
      <div>     exit;</div>
      <div>    };</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&#39;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&#39;s better, is really the TLS/openssl is the
        bottleneck or the way I relay</div>
      <div>the request?   </div>
      <div><br>
      </div>
      <div>The test machine has only 512MB RAM and is a single core cpu
        (2,8GHZ), but 30caps isn&#39;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></fieldset>
      <br>
      </div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
<a href="http://www.asipto.com/index.php/kamailio-advanced-training/" target="_blank">http://www.asipto.com/index.php/kamailio-advanced-training/</a></pre>
  </font></span></div>

</blockquote></div><br></div>