Simple Answer No, FreeSWITCH is a B2BUA, the number of threads is 1 per call leg, in bypass media, the thread is blocked for the most part and not consuming anything until the hangup At high call rates you¹ll notice that most of the CPU is used by Sofia threads... Best way to reduce context switching is more cores or if you have hyperthreading disabled, enabled it, you¹ll notice a nice boost... Tell Chris I said HI! Ken On 8/21/12 4:35 PM, "Jason Caulfield" <jason.caulfield@intermetro.net> wrote:
I am using FreeSWITCH in media bypass mode to decrease memory and cpu usage.
I notice that mod_sofia creates threads for each call leg to maintain session context.
Do you know of a way to configure FreeSWITCH to use a table to maintain the context when in media bypass mode to reduce the number of threads?
I am hoping that this will speed things up by reducing thread context switching and reduce memory usage by decreasing memory allocation for each thread.
Thanks for the help, Jason
_________________________________________________________________________ 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
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch