Re: [Freeswitch-users] FreeSWITCH Question
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
Will do . . . that is say HI. Hyperthreading is already on. The CPU usage is not an issue, it is the memory. At 25% CPU I am at 85% MEM. Besides, it takes milliseconds to go through the dialplan and a few more for logging, and with an average call length of 5 min, 99% of the time each thread is doing nothing but taking up 1/2 a MB of memory. Adds up quick . . . seems like a waist. Anyone else, have knowledge on config-ing sofia? Jason From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Ken Rice Sent: Tuesday, August 21, 2012 3:19 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] FreeSWITCH Question 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
participants (2)
-
Jason Caulfield
-
Ken Rice