<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Since the wiki is wrong you may update that page by requesting an account.<br><br>Sent from my iPad</div><div><br>On Feb 18, 2014, at 4:08 AM, Kevin Mathy &lt;<a href="mailto:k.mathy@hexanet.fr">k.mathy@hexanet.fr</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi Peter, Anthony,&nbsp;<div><br></div><div>Thanks for your answers.</div><div>Indeed, if I wanted to increase the stack size, it was just because of the advices written on this wiki page : <a href="http://wiki.freeswitch.org/wiki/Performance_testing_and_configurations">http://wiki.freeswitch.org/wiki/Performance_testing_and_configurations</a></div>

<div><br></div><div>I'm just a bit aware of how works internally a Linux OS, and so I simply followed what was said on the wiki, thinking that it'll be OK.</div><div>But in fact, it's not...</div><div><br></div>

<div>Anyway, I'll follow what you said, and let the stack size value to 240k, as FS doesn't need to use more. Thank you for this information.</div><div><br></div><div>Otherwise, when I make a "top" on my system, I've got the following output :&nbsp;</div>

<div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Tasks: 138 total, &nbsp; 1 running, 137 sleeping, &nbsp; 0 stopped, &nbsp; 0 zombie<br>

Cpu0 &nbsp;: &nbsp;2.0%us, &nbsp;1.3%sy, &nbsp;0.0%ni, 95.0%id, &nbsp;0.0%wa, &nbsp;0.0%hi, &nbsp;1.7%si, &nbsp;0.0%st<br>Cpu1 &nbsp;: &nbsp;1.3%us, &nbsp;2.3%sy, &nbsp;0.0%ni, 96.4%id, &nbsp;0.0%wa, &nbsp;0.0%hi, &nbsp;0.0%si, &nbsp;0.0%st<br>Cpu2 &nbsp;: &nbsp;0.7%us, &nbsp;0.7%sy, &nbsp;0.0%ni, 98.7%id, &nbsp;0.0%wa, &nbsp;0.0%hi, &nbsp;0.0%si, &nbsp;0.0%st<br>

Cpu3 &nbsp;: &nbsp;0.7%us, &nbsp;2.0%sy, &nbsp;0.0%ni, 97.4%id, &nbsp;0.0%wa, &nbsp;0.0%hi, &nbsp;0.0%si, &nbsp;0.0%st<br>Cpu4 &nbsp;: &nbsp;2.0%us, &nbsp;1.7%sy, &nbsp;0.0%ni, 96.4%id, &nbsp;0.0%wa, &nbsp;0.0%hi, &nbsp;0.0%si, &nbsp;0.0%st<br>Cpu5 &nbsp;: &nbsp;1.0%us, &nbsp;1.7%sy, &nbsp;0.0%ni, 97.3%id, &nbsp;0.0%wa, &nbsp;0.0%hi, &nbsp;0.0%si, &nbsp;0.0%st<br>

Cpu6 &nbsp;: &nbsp;0.3%us, &nbsp;0.7%sy, &nbsp;0.0%ni, 99.0%id, &nbsp;0.0%wa, &nbsp;0.0%hi, &nbsp;0.0%si, &nbsp;0.0%st<br>Cpu7 &nbsp;: &nbsp;0.3%us, &nbsp;1.0%sy, &nbsp;0.0%ni, 98.7%id, &nbsp;0.0%wa, &nbsp;0.0%hi, &nbsp;0.0%si, &nbsp;0.0%st<br>Mem: &nbsp;16455916k total, &nbsp;3046676k used, 13409240k free, &nbsp; 356088k buffers<br>

Swap: &nbsp;7128056k total, &nbsp; &nbsp; &nbsp; &nbsp;0k used, &nbsp;7128056k free, &nbsp;2373412k cached<br>&nbsp; PID USER &nbsp; &nbsp; &nbsp;PR &nbsp;NI &nbsp;VIRT &nbsp;RES &nbsp;SHR S %CPU %MEM &nbsp; &nbsp;TIME+ &nbsp;P COMMAND &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>

&nbsp;3497 freeswit &nbsp;-2 -10 &nbsp;505m &nbsp;92m 6812 S &nbsp; <b>25 </b>&nbsp;0.6 &nbsp; 1430:38 5 freeswitch</blockquote><div><br></div><div>In which we can see that FS seems to use 25% of CPU ressources, but all CPUs seem to be around 7% used (all counted).</div>

<div>So my question is : which one is the real value about CPU percentage used ?&nbsp;</div><div><br></div><div>I'm remember that FS has a function to refuse new calls if a CPU used precentage threshold is reached, and I'd like to set this value as well as possible. And for that I have to know the real usage of my CPU by FS.</div>

</div><div><br></div><div>Thanks a lot for your help,&nbsp;</div><div><br></div><div><div class="gmail_extra"><br clear="all"><div><b><div><span style="font-weight:normal">Bien cordialement,&nbsp;</span></div><div><span style="font-weight:normal">Best Regards,&nbsp;</span></div>

<div><span style="font-weight:normal"><br></span></div></b><b>Kevin MATHY</b> |<b>&nbsp;</b>Ingénieur VoIP<br><div><div><b><br></b></div></div></div>
<br><br><div class="gmail_quote">2014-02-14 20:28 GMT+01:00 Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr">Stack size is how much ram is reserved per thread open. &nbsp;We only need 240k and you are offering to let it use 8 megs.<div><br><div><br></div></div></div><div class="gmail_extra"><div><div class="h5"><br><br>

<div class="gmail_quote">
On Fri, Feb 14, 2014 at 8:57 AM, Peter Olsson <span dir="ltr">&lt;<a href="mailto:peter@olssononline.se" target="_blank">peter@olssononline.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<div dir="ltr">Why do you want to increase stack size? FS tries to keep it as low as possible.</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-14 15:45 GMT+01:00 Kevin Mathy <span dir="ltr">&lt;<a href="mailto:k.mathy@hexanet.fr" target="_blank">k.mathy@hexanet.fr</a>&gt;</span>:<br>



<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">Hi List,&nbsp;<div><br></div><div>I'm trying to make my FS server more performant and reliable, and I found the FS's wiki page telling that I can change some "ulimit" values on my system, like the Stack Size.</div>





<div><br></div><div>So, I've changed in the init script the "ulimit -s" value to 8192, but now when I start freeswitch I've got the following error message :&nbsp;</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





Error: stacksize 8192 is not optimal: run ulimit -s 240 from your shell before starting the application.<br>auto-adjusting stack size for optimal performance...</blockquote><div><br></div><div>So when I check the status :&nbsp;</div>





<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><a href="mailto:freeswitch@10.84.9.41">freeswitch@10.84.9.41</a>@internal&gt; status<br>UP 0 years, 0 days, 0 hours, 0 minutes, 6 seconds, 661 milliseconds, 592 microseconds<br>





FreeSWITCH (Version 1.3.17 git 16289ce 2013-03-14 03:24:25Z) is ready<br>0 session(s) since startup<br>0 session(s) - 0 out of max 30 per sec<br>1000 session(s) max<br>min idle cpu 0.00/100.00<br>Current Stack Size/Max 240K/8192K</blockquote>





<div><br></div><div>It seems that the 8192 value isn't set and is rollbacked to 240...&nbsp;</div><div>I've got exactly the same result when the init script is filled with "ulimit -s 240".</div><div><br></div>





<div>Do you have any idea about how to have the stack size increased ?&nbsp;</div><div><br></div><div>Thanks a lot,&nbsp;</div><div><br></div><div>&nbsp;</div><div><b><div><span style="font-weight:normal">Bien cordialement,&nbsp;</span></div>





<div><span style="font-weight:normal">Best Regards,&nbsp;</span></div><div><span style="font-weight:normal"><br></span></div></b><b>Kevin MATHY</b> |<b>&nbsp;</b>Ingénieur VoIP<br><div><div><b><br></b></div></div></div>
</div></div>

<br>
<img src="http://www.hexanet.fr/sites/files/hexanet/files/20130205_signature_hexanet.gif"><br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span class=""><font color="#888888">-- <br><div dir="ltr">Anthony Minessale II &nbsp; &nbsp; &nbsp; ♬ @anthmfs&nbsp;&nbsp;♬ @FreeSWITCH&nbsp;&nbsp;♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a> &nbsp;☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a> &nbsp;☞ <a href="http://twitter.com/FreeSWITCH" target="_blank">http://twitter.com/FreeSWITCH</a></div>


<div><div>☞ <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch&nbsp;☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call&nbsp;<br>


</div><div>☎&nbsp;<a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a> &nbsp;☎ <a href="tel:%2B19193869900" value="+19193869900" target="_blank">+19193869900</a>&nbsp;</div><div><br>

</div></div></div></div>
</font></span></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div>

<br>
<img src="http://www.hexanet.fr/sites/files/hexanet/files/20130205_signature_hexanet.gif"></div></blockquote><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services:</span><br><span><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</span><br><span><a href="http://www.cudatel.com">http://www.cudatel.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br><span><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></span><br><span><a href="http://www.cluecon.com">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>