<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
optimizing for performances is a matter of configuration file. A
special attention must be done to database and dns interactions.<br>
<br>
Some tips for performances are collected in the next presentation:<br>
<br>
-
<a class="moz-txt-link-freetext" href="http://www.kamailio.org/events/2015-Astricon/dcm-kamailio-surfing-big-waves-of-sip-with-style.pdf">http://www.kamailio.org/events/2015-Astricon/dcm-kamailio-surfing-big-waves-of-sip-with-style.pdf</a><br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 12/01/16 09:00, Grant Bagdasarian
wrote:<br>
</div>
<blockquote
cite="mid:31735bffb1534724ab78f9af7bbcf0a0@CM-EX-V01.cm.local"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;
mso-fareast-language:EN-US;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Hello
Daniel,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">I’ve
enabled the debug only for a moment to get a better
understanding of Kamailio and what was happening under the
hood.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">I’ve
done some testing on a newer version of Kamailio (4.3) and
didn’t see this problem occur. So I’m not sure if it’s also
software version related.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">What
else needs to be tuned except for the children parameter?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Are
there any guidelines/best practices in configuring the
amount of child parameters?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Thanks
for your answer!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Grant<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="color:windowtext;mso-fareast-language:NL"
lang="EN-US">From:</span></b><span
style="color:windowtext;mso-fareast-language:NL"
lang="EN-US"> sr-users
[<a class="moz-txt-link-freetext" href="mailto:sr-users-bounces@lists.sip-router.org">mailto:sr-users-bounces@lists.sip-router.org</a>]
<b>On Behalf Of </b>Daniel-Constantin Mierla<br>
<b>Sent:</b> Monday, January 11, 2016 5:37 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></a><br>
<b>Subject:</b> Re: [SR-Users] siptrace retransmission's<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello,<br>
<br>
I expect that the log message from sip trace means that a
retransmission was detected and it is not going to be sent to
sipcature server.<br>
<br>
Printing the log messages for memory operations (malloc/free)
is going to be very costly in terms of performaces, be sure
that parameters memlog/memdbg are lower than debug.<br>
<br>
<span lang="EN-US">Also, depending of the config various
tunings may be required for increasing the perormances, such
as value of children parameter.<br>
<br>
</span>Cheers,<br>
Daniel<span style="font-size:12.0pt;mso-fareast-language:NL"><o:p></o:p></span></p>
<div>
<p class="MsoNormal">On 11/01/16 11:06, Grant Bagdasarian
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hello All,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I’m load testing
Kamailio with siptrace (duplicate) enabled, but for some
reason not all SIP messages are arriving at the sip
capture server (kamailio instance with sipcapture).</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">The load is an average
of 50 CPS.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I enabled debug 9 and
I get the following messages.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><core>
[mem/q_malloc.c:369]: qm_malloc():
qm_malloc(0x7fefde4da010, 1274) called from siptrace:
siptrace.c: trace_send_hep_duplicate(1615)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><core>
[mem/q_malloc.c:439]: qm_free(): qm_free(0x7fefde4da010,
0x7fefde618a88), called from siptrace: siptrace.c:
trace_send_hep_duplicate(1659)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><core>
[mem/q_malloc.c:439]: qm_free(): qm_free(0x7fefde4da010,
0x7fefde61ee18), called from siptrace: siptrace.c:
trace_send_hep_duplicate(1660)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><core>
[mem/q_malloc.c:474]: qm_free(): qm_free: freeing frag.
0x7fefde61ede8 alloc'ed from siptrace: siptrace.c:
trace_send_hep_duplicate(1615)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><core>
[mem/q_malloc.c:369]: qm_malloc():
qm_malloc(0x7fefde4da010, 1271) called from siptrace:
siptrace.c: trace_send_hep_duplicate(1615)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><core>
[mem/q_malloc.c:439]: qm_free(): qm_free(0x7fefde4da010,
0x7fefde61b488), called from siptrace: siptrace.c:
trace_send_hep_duplicate(1659)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><core>
[mem/q_malloc.c:439]: qm_free(): qm_free(0x7fefde4da010,
0x7fefde61e880), called from siptrace: siptrace.c:
trace_send_hep_duplicate(1660)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><core>
[mem/q_malloc.c:474]: qm_free(): qm_free: freeing frag.
0x7fefde61e850 alloc'ed from siptrace: siptrace.c:
trace_send_hep_duplicate(1615)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace
[siptrace.c:1040]: trace_onreq_out(): retransmission</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace
[siptrace.c:1040]: trace_onreq_out(): retransmission</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace
[siptrace.c:1040]: trace_onreq_out(): retransmission</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace
[siptrace.c:1040]: trace_onreq_out(): retransmission</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace
[siptrace.c:1040]: trace_onreq_out(): retransmission</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace
[siptrace.c:1040]: trace_onreq_out(): retransmission</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace
[siptrace.c:1040]: trace_onreq_out(): retransmission</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">In siptrace.c I see
the following line of code:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">
if(ps->flags&TMCB_RETR_F) {</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">
LM_DBG("retransmission\n");</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">
return;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> }</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Does this in fact
retransmit the message to the capture server?</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Has anyone else load
tested kamailio with siptrace on?</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I’m using Kamailio
4.1. I’m also using the setflag(..) function in siptrace
module to duplicate all forwarded messages to the capture
server.
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Regards,</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Grant</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;mso-fareast-language:NL"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;mso-fareast-language:NL"><br>
<br>
<o:p></o:p></span></p>
<pre>-- <o:p></o:p></pre>
<pre>Daniel-Constantin Mierla<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a><o:p></o:p></pre>
<pre>Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com">http://www.asipto.com</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://miconda.eu">http://miconda.eu</a><o:p></o:p></pre>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://miconda.eu">http://miconda.eu</a></pre>
</body>
</html>