[Freeswitch-users] Performance optimization and stack size value

Anthony Minessale anthony.minessale at gmail.com
Fri Feb 14 22:28:57 MSK 2014


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.




On Fri, Feb 14, 2014 at 8:57 AM, Peter Olsson <peter at olssononline.se> wrote:

> Why do you want to increase stack size? FS tries to keep it as low as
> possible.
>
>
> 2014-02-14 15:45 GMT+01:00 Kevin Mathy <k.mathy at hexanet.fr>:
>
>> Hi List,
>>
>> 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.
>>
>> 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 :
>>
>>> Error: stacksize 8192 is not optimal: run ulimit -s 240 from your shell
>>> before starting the application.
>>> auto-adjusting stack size for optimal performance...
>>
>>
>> So when I check the status :
>>
>>> freeswitch at 10.84.9.41@internal> status
>>> UP 0 years, 0 days, 0 hours, 0 minutes, 6 seconds, 661 milliseconds, 592
>>> microseconds
>>> FreeSWITCH (Version 1.3.17 git 16289ce 2013-03-14 03:24:25Z) is ready
>>> 0 session(s) since startup
>>> 0 session(s) - 0 out of max 30 per sec
>>> 1000 session(s) max
>>> min idle cpu 0.00/100.00
>>> Current Stack Size/Max 240K/8192K
>>
>>
>> It seems that the 8192 value isn't set and is rollbacked to 240...
>> I've got exactly the same result when the init script is filled with
>> "ulimit -s 240".
>>
>> Do you have any idea about how to have the stack size increased ?
>>
>> Thanks a lot,
>>
>>
>>
>> *Bien cordialement,  Best Regards, **Kevin MATHY* | Ingénieur VoIP
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬

☞ http://freeswitch.org/http://cluecon.com/http://twitter.com/FreeSWITCH
☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
<http://freeswitch.org/g+>*

ClueCon Weekly Development Call
☎ sip:888 at conference.freeswitch.org  ☎ +19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140214/a1dc96c4/attachment-0001.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list