<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><tt>Hi, Agalya!</tt></p>
<p><tt>A successful stress test should highlight a bottleneck that
we are no longer able to easily fix. Common bottlenecks with any
network server application will always include:</tt></p>
<p><tt>- CPU<br>
</tt></p>
<p><tt>- I/O (disk / network)<br>
</tt></p>
<p><tt>Most often, disk writes are to blame, either through stderr
or syslog. You will definitely want a very low logging level
(log_level = 1) when doing thousands of CPS, as even a single
log line per request can lower the overall throughput.</tt></p>
<p><tt>Choosing the right compile flags can also help. You should
print the output of "opensips -V", maybe improvements can be
made.<br>
</tt></p>
<p><tt>To conclude, please try to understand the bottleneck first
(by using "top", "netstat", "vmstat", etc.), then we can start
working on it!</tt></p>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 24.10.2016 17:38, Ramachandran,
Agalya (Contractor) wrote:<br>
</div>
<blockquote
cite="mid:77498e4bdbe7456d840461f7c05d705e@COPDCEX28.cable.comcast.com"
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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@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:blue">Hi Bogdan, <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Am using opensips
2.2.2 version and using opensips as only proxy.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">In the default
script, in route[relay], I have called setdsturi(); No other
changes with the default script.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Earlier, I have
used only the default value of S_MEMORY and P_MEMORY in the
/etc/default/opensips.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">With this default
values, for the end to end established call with pause of
(24 to 45 sec), I could reach only 150cps.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">When I tried to
increase </span><b><span style="color:red">S_MEMORY and
P_MEMORY to 1024 and 64</span></b><span style="color:red">
</span><span style="color:blue">respectively, and having
opensips </span><b><span style="color:red">children =12</span></b><span
style="color:blue">, I could achieve 800 cps.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">I have also
re-tuned OpenSIPS log file, by adding
“-/var/log/opensips.log”.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">When I see
opensips performance with default script I see you are
achieving 9000cps.
</span><span style="color:red"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">What are the
places I need to take a look to tune up still, to get more
performance. Your expertise would help me a lot.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Am running on VM,
with 8 core CPU, 16GB RAM and processor is Intel Xeon
E312xx(Sandy Bridge).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Regards,<br>
Agalya<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>