<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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;}
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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New",serif;
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New",serif;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle23
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.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]-->
</head>
<body bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:blue">Hi Liviu, <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><tt><span style="font-size:10.0pt">You will definitely want a very low logging level (log_level = 1)<o:p></o:p></span></tt></p>
<p class="MsoNormal"><span style="color:blue">I have set log level as 3, I will try by changing to 1 and check.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><tt><span style="font-size:10.0pt">You should print the output of "opensips -V", maybe improvements can be made</span></tt><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Am using OpenSIPS version 2.2.2. <o:p>
</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><tt><span style="font-size:10.0pt">Choosing the right compile flags can also help<o:p></o:p></span></tt></p>
<p class="MsoNormal"><span style="color:blue">Am using the default compile flags. Should anything be changed in that in order to improve the performance?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><tt><span style="font-size:10.0pt">To conclude, please try to understand the bottleneck first (by using "top",<o:p></o:p></span></tt></p>
<p class="MsoNormal"><span style="color:blue">I have used top command to see the bottleneck, the CPU load average is 4.5 max, out of 8CPU’s and memory usage is 2.8% out of 16GB.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">I will keep continue testing, will let you know if I come across any bottlenecks.<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,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Agalya<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><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">From:</span></b><span style="color:windowtext"> users-bounces@lists.opensips.org [mailto:users-bounces@lists.opensips.org]
<b>On Behalf Of </b>Liviu Chircu<br>
<b>Sent:</b> Monday, October 24, 2016 11:09 AM<br>
<b>To:</b> users@lists.opensips.org<br>
<b>Subject:</b> Re: [OpenSIPS-Users] OpenSIPS performance.<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p><tt><span style="font-size:10.0pt">Hi, Agalya!</span></tt><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p><tt><span style="font-size:10.0pt">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:</span></tt><o:p></o:p></p>
<p><tt><span style="font-size:10.0pt">- CPU</span></tt><o:p></o:p></p>
<p><tt><span style="font-size:10.0pt">- I/O (disk / network)</span></tt><o:p></o:p></p>
<p><tt><span style="font-size:10.0pt">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.</span></tt><o:p></o:p></p>
<p><tt><span style="font-size:10.0pt">Choosing the right compile flags can also help. You should print the output of "opensips -V", maybe improvements can be made.</span></tt><o:p></o:p></p>
<p><tt><span style="font-size:10.0pt">To conclude, please try to understand the bottleneck first (by using "top", "netstat", "vmstat", etc.), then we can start working on it!</span></tt><o:p></o:p></p>
<pre>Liviu Chircu<o:p></o:p></pre>
<pre>OpenSIPS Developer<o:p></o:p></pre>
<pre><a href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 24.10.2016 17:38, Ramachandran, Agalya (Contractor) wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:blue">Hi Bogdan, </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">Am using opensips 2.2.2 version and using opensips as only proxy.</span><o:p></o:p></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.
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> </span><o:p></o:p></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.
</span><o:p></o:p></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.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> </span><o:p></o:p></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.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">I have also re-tuned OpenSIPS log file, by adding “-/var/log/opensips.log”.
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">When I see opensips performance with default script I see you are achieving 9000cps.
</span><o:p></o:p></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.
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> </span><o:p></o:p></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).</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">Regards,<br>
Agalya</span><o:p></o:p></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>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Users mailing list<o:p></o:p></pre>
<pre><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><o:p></o:p></pre>
<pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
</div>
</body>
</html>