[Freeswitch-users] Memory using

Steven Ayre steveayre at gmail.com
Thu Jan 6 00:10:30 MSK 2011


Answers inline

Steve on iPhone

On 5 Jan 2011, at 20:30, Javier Galaz Jeria <jgalaz at yx.cl> wrote:

> Hello all
> 
> I'm a new user of freeswitch and I've a few questions,
> 
> 1. I've searched the mail list and some forums about the switch "waste" and I 
>   haven't found out what it does and how it does it. Anyone care to explain a
>   little bit about it? The only thing that I've found is that it consumes more
>   memory but in my tests [1] it doesn't change that much.

Run on 64bit. You can then ignore it.

It's to do with virtual memory space on 32bit - each thread gets 8mb by default which can lead to out of memory errors, you can either shrink that to 240 or use waste to suppress a warning message.

It doesn't acrtually use any more real memory, just virtual address space.

You should use 64 bit if you can.

> 
> 2. Do any of you guys have a rough estimate of what each call memory footprint
>   should be?

That depends on what the call is doing.

> 
> 3. About the ulimit -s 240, I've read that it limits the stack size, but I'm at
>   a lost point as how to pick a suitable value. What is the criteria?

See 1. On 64 bit virtual memory space is so large this won't matter, just use the default (but 240 is still fine).


> 
> 4. Are the tests that I've done [1] reasonable?

It doesn't acrtually use any more real memory, just virtual address space.

> 
> I'm trying to know this things because I'm planning to use FreeSWITCH on a
> resource limited hardware.
> 
> Best Regards
> 
> Javier
> 
> [1] test done with SIPp, using 0 to 20 users calling simultaneously, connecting
>    the call, and hanging up after 5 secs.
>    statistics using linear interpolation.
>    using debian's init script (ulimit -s 240):
>    slope    898.7 kB
>    y-intercept    15410 kB
>    using /usr/local/freeswitch/bin/freeswitch -waste -nc
>    slope    810.6 kB
>    y-intercept    16273 kB
> 
> 
> _______________________________________________
> 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



More information about the FreeSWITCH-users mailing list