<div dir="ltr">Hi Peter, Anthony, <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 : </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, 1 running, 137 sleeping, 0 stopped, 0 zombie<br>
Cpu0 : 2.0%us, 1.3%sy, 0.0%ni, 95.0%id, 0.0%wa, 0.0%hi, 1.7%si, 0.0%st<br>Cpu1 : 1.3%us, 2.3%sy, 0.0%ni, 96.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br>Cpu2 : 0.7%us, 0.7%sy, 0.0%ni, 98.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br>
Cpu3 : 0.7%us, 2.0%sy, 0.0%ni, 97.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br>Cpu4 : 2.0%us, 1.7%sy, 0.0%ni, 96.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br>Cpu5 : 1.0%us, 1.7%sy, 0.0%ni, 97.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br>
Cpu6 : 0.3%us, 0.7%sy, 0.0%ni, 99.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br>Cpu7 : 0.3%us, 1.0%sy, 0.0%ni, 98.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st<br>Mem: 16455916k total, 3046676k used, 13409240k free, 356088k buffers<br>
Swap: 7128056k total, 0k used, 7128056k free, 2373412k cached<br> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ P COMMAND <br>
3497 freeswit -2 -10 505m 92m 6812 S <b>25 </b> 0.6 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 ? </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, </div><div><br></div><div><div class="gmail_extra"><br clear="all"><div><b><div><span style="font-weight:normal">Bien cordialement, </span></div><div><span style="font-weight:normal">Best Regards, </span></div>
<div><span style="font-weight:normal"><br></span></div></b><b>Kevin MATHY</b> |<b> </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"><<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>></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. 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"><<a href="mailto:peter@olssononline.se" target="_blank">peter@olssononline.se</a>></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"><<a href="mailto:k.mathy@hexanet.fr" target="_blank">k.mathy@hexanet.fr</a>></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, <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 : </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 : </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">freeswitch@10.84.9.41@internal> 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... </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 ? </div><div><br></div><div>Thanks a lot, </div><div><br></div><div> </div><div><b><div><span style="font-weight:normal">Bien cordialement, </span></div>
<div><span style="font-weight:normal">Best Regards, </span></div><div><span style="font-weight:normal"><br></span></div></b><b>Kevin MATHY</b> |<b> </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 ♬ @anthmfs ♬ @FreeSWITCH ♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a> ☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a> ☞ <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 ☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call <br>
</div><div>☎ <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a> ☎ <a href="tel:%2B19193869900" value="+19193869900" target="_blank">+19193869900</a> </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">