Command line parameter -waste
Could someone please explain what the effect the -waste parameter has on starting FreeSwitch? Also, what are the implications of turning off the scoreboard by running with -nosql? What functionality is lost? thanks, -- Guillermo Ruiz Camauer
Could someone please explain what the effect the -waste parameter has on starting FreeSwitch?
This is my understanding... it may be incorrect. The default size of the stack is 8MB per-thread. On 32bit machines this means you could run out of virtual memory space if you're running lots of threads (ie lots of calls). Lets say FreeSWITCH can address the maximum 4GB 32bit can address (and it probably can't, ~3GB is more likely), that's only ~500 threads. FreeSWITCH will reduce the size of the stack on startup to SWITCH_THREAD_STACKSIZE, currently 240KB. The advantage is that you can run many more calls, the disadvantage is that you could run out of stack space and crash FreeSWITCH - in practice the latter happening is probably quite unlikely though. -waste disables that behaviour to keep the default 8MB stack, for cases where you may find you're running out of stack space. You almost certainly don't need it. On 64bit the virtual memory range is so large that this is not an issue. I don't think the -waste parameter even exists on 64bit platforms.
Also, what are the implications of turning off the scoreboard by running with -nosql? What functionality is lost?
Among other things you lose commands like 'show calls' 'show channels', and probably interferes with a bunch of other functionality too. I'd avoid it unless you *really* need it. If you're trying to optimise the system try moving the core database to either a ramdisk or ODBC before getting rid of it entirely. On 24 June 2014 22:09, Guillermo Ruiz Camauer <grcamauer@gmail.com> wrote:
Could someone please explain what the effect the -waste parameter has on starting FreeSwitch? Also, what are the implications of turning off the scoreboard by running with -nosql? What functionality is lost?
thanks,
-- Guillermo Ruiz Camauer
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Steven, Thanks for your quick answer and clear explanation. I already have the core database in RAM. I was just wondering if I need it at all, since I don't use 'show calls' or 'show channels'. There are a few other Core Parameters in switch.conf that I would like to know when they should be tweaked from their default configuration: max-db-handles: Should there be one handle every N simultaneous calls? What is N? initial-event-threads: Does it hurt or help to bump this up to 2 or 3 on an 8 core machine, even if the WARNING "Create additional event dispatch thread" hasn't come up? db-handle-timeout: What symptoms would indicate that this needs tuning? Should it somehow be scaled when max-db-handles is changed?Thanks, Guillermo On Wed, Jun 25, 2014 at 5:48 AM, Steven Ayre <steveayre@gmail.com> wrote:
Could someone please explain what the effect the -waste parameter has on
starting FreeSwitch?
This is my understanding... it may be incorrect.
The default size of the stack is 8MB per-thread. On 32bit machines this means you could run out of virtual memory space if you're running lots of threads (ie lots of calls). Lets say FreeSWITCH can address the maximum 4GB 32bit can address (and it probably can't, ~3GB is more likely), that's only ~500 threads. FreeSWITCH will reduce the size of the stack on startup to SWITCH_THREAD_STACKSIZE, currently 240KB. The advantage is that you can run many more calls, the disadvantage is that you could run out of stack space and crash FreeSWITCH - in practice the latter happening is probably quite unlikely though.
-waste disables that behaviour to keep the default 8MB stack, for cases where you may find you're running out of stack space. You almost certainly don't need it.
On 64bit the virtual memory range is so large that this is not an issue. I don't think the -waste parameter even exists on 64bit platforms.
Also, what are the implications of turning off the scoreboard by running with -nosql? What functionality is lost?
Among other things you lose commands like 'show calls' 'show channels', and probably interferes with a bunch of other functionality too. I'd avoid it unless you *really* need it.
If you're trying to optimise the system try moving the core database to either a ramdisk or ODBC before getting rid of it entirely.
On 24 June 2014 22:09, Guillermo Ruiz Camauer <grcamauer@gmail.com> wrote:
Could someone please explain what the effect the -waste parameter has on starting FreeSwitch? Also, what are the implications of turning off the scoreboard by running with -nosql? What functionality is lost?
thanks,
-- Guillermo Ruiz Camauer
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Guillermo Ruiz Camauer
participants (2)
-
Guillermo Ruiz Camauer
-
Steven Ayre