<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<pre>Hi,<br><br>As I mentioned in my previous email I am performing SIP to SIP performance testing using Kamailio proxy (UAC-Kamailio-UAC). <br>After increasing the load to 300 calls/sec, Kamailio begins dropping UDP packets. (250 cps works fine). <br>CPU  utilization and network bandwidth looks fine. <br><br>- UDP packet size on the Linux server is increased to 8M:<br>net.core.rmem_max = 8388608<br><br>- the number of children used in Kamailio config increased to 16:<br>fork=yes<br>children=16<br><br><br>Here is there error I am getting in /var/log/syslog file: <br><br>Feb 13 15:17:39 lab-linux01 /sbin/kamailio[12014]: ERROR:tm:new_t: out of mem<br>Feb 13 15:17:39 lab-linux01 /sbin/kamailio[12014]: ERROR:tm:t_newtran: new_t failed<br>Feb 13 15:17:39 lab-linux01 /sbin/kamailio[12024]: ERROR:tm:new_t: out of mem<br>Feb 13 15:17:39 lab-linux01 /sbin/kamailio[12024]: ERROR:tm:t_newtran: new_t failed<br><br><br>I am using 64M for the memory size (/etc/default/kamailio)<br># Amount of memory to allocate for the running Kamailio server (in Mb)<br>MEMORY=64<br><br>Does it mean I need to increase this value?<br><br>Thanks,<br></pre><br><br><br><br>&gt; Date: Wed, 11 Feb 2009 18:26:49 +0200<br>&gt; From: miconda@gmail.com<br>&gt; To: alex_rsm@hotmail.com<br>&gt; CC: users@lists.kamailio.org<br>&gt; Subject: Re: [Kamailio-Users] UDP packet loss<br>&gt; <br>&gt; Hello,<br>&gt; <br>&gt; On 02/11/2009 05:43 PM, Alex R.S.M wrote:<br>&gt; &gt; hello<br>&gt; &gt;<br>&gt; &gt; &gt; What are the number of children you have in config?<br>&gt; &gt; fork=yes<br>&gt; &gt; children=4<br>&gt; this is a bit low if you want to manage high traffic. Try with <br>&gt; children=16 and see how the results are.<br>&gt; <br>&gt; Cheers,<br>&gt; Daniel<br>&gt; <br>&gt; &gt;<br>&gt; &gt; &gt; Do you get any error messages in the syslog?<br>&gt; &gt; not getting any error message in /var/log/syslog<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Thanks,<br>&gt; &gt; Ali<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; &gt; Date: Wed, 11 Feb 2009 17:21:46 +0200<br>&gt; &gt; &gt; From: miconda@gmail.com<br>&gt; &gt; &gt; To: alex_rsm@hotmail.com<br>&gt; &gt; &gt; CC: users@lists.kamailio.org<br>&gt; &gt; &gt; Subject: Re: [Kamailio-Users] UDP packet loss<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Hello,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; On 02/11/2009 04:51 PM, Alex R.S.M wrote:<br>&gt; &gt; &gt; &gt; Hi,<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; I am performing SIP to SIP performance testing using Kamailio proxy<br>&gt; &gt; &gt; &gt; (UAC-Kamailio-UAC). After increasing the load to 300 calls/sec<br>&gt; &gt; &gt; &gt; Kamailio begins dropping UDP packets. (250 cps works fine). CPU<br>&gt; &gt; &gt; &gt; utilization and network bandwidth looks fine. I think the bottleneck<br>&gt; &gt; &gt; &gt; is the Linux UDP buffer size of the proxy server. Here is the proxy<br>&gt; &gt; &gt; &gt; server information:<br>&gt; &gt; &gt; kamailio autodetects and sets the buffer size to the maximum allowed.<br>&gt; &gt; &gt; What are the number of children you have in config? Do you get any <br>&gt; &gt; error<br>&gt; &gt; &gt; messages in the syslog?<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Cheers,<br>&gt; &gt; &gt; Daniel<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; $ uname -a<br>&gt; &gt; &gt; &gt; Linux lab-linux01 2.6.24-19-server #1 SMP Wed Jun 18 14:44:47 UTC <br>&gt; &gt; 2008<br>&gt; &gt; &gt; &gt; x86_64 GNU/Linux<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; $ sudo sysctl -a | grep net.core.rmem_max<br>&gt; &gt; &gt; &gt; net.core.rmem_max = 131071<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; The question is if I increase the linux UDP buffer size do I need to<br>&gt; &gt; &gt; &gt; change any configuartion parameter (like MAX_RECV_BUFFER_SIZE) in<br>&gt; &gt; &gt; &gt; Kamailio?<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Thanks,<br>&gt; &gt; &gt; &gt; Alex R<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; &gt; &gt; Windows Live™: Keep your life in sync. See how it works.<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &lt;http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_allup_howitworks_022009&gt; <br>&gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; &gt; Kamailio (OpenSER) - Users mailing list<br>&gt; &gt; &gt; &gt; Users@lists.kamailio.org<br>&gt; &gt; &gt; &gt; http://lists.kamailio.org/cgi-bin/mailman/listinfo/users<br>&gt; &gt; &gt; &gt; http://lists.openser-project.org/cgi-bin/mailman/listinfo/users<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; --<br>&gt; &gt; &gt; Daniel-Constantin Mierla<br>&gt; &gt; &gt; http://www.asipto.com<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; Windows Live™: E-mail. Chat. Share. Get more ways to connect. Check it <br>&gt; &gt; out. <br>&gt; &gt; &lt;http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_allup_explore_022009&gt;<br>&gt; <br>&gt; -- <br>&gt; Daniel-Constantin Mierla<br>&gt; http://www.asipto.com<br>&gt; <br><br /><hr />Windows Live™: Keep your life in sync.  <a href='http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_allup_howitworks_022009' target='_new'>See how it works.</a></body>
</html>