[Freeswitch-dev] CPU and RAM usage counters access from my module

Anthony Minessale anthony.minessale at gmail.com
Thu May 6 13:47:00 PDT 2010


we have the TRAP one that we use to distribute signals etc, that would be a
good place for it.


On Thu, May 6, 2010 at 3:35 PM, Moises Silva <moises.silva at gmail.com> wrote:

> May be we could have an "alarm" core event with some subevents about cpu or
> memory usage, then modules may take nice actions like stop accepting calls
> to at least try to protect the quality of the current ones.
>
> Moises Silva
> Senior Software Engineer
> Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R
> 9T3 Canada
> t. 1 905 474 1990 x 128 | e. moy at sangoma.com
>
>
>
> On Thu, May 6, 2010 at 11:45 AM, Anthony Minessale <
> anthony.minessale at gmail.com> wrote:
>
>> see switch_core.c Line 58
>> or
>> mod_commands.c Line 1402
>>
>>
>> On Thu, May 6, 2010 at 5:27 AM, Vitalii Colosov <vetali100 at gmail.com>wrote:
>>
>>> Hi,
>>>
>>> Is there is a way I can access the current CPU and / or RAM utilization
>>> counters from my module "mod_any_module"?
>>> I know that FreeSWITCH has this information, how could I get it?
>>>
>>> This would provide some nice benefits, for example if current CPU
>>> utilization > 75% I would force using PCMU codec instead of compressed
>>> codecs - just 1 idea...
>>>
>>> What other hardware-related counters does FreeSWITCH contains?
>>>
>>> Thank you very much!
>>>
>>> Vitalie
>>>
>>> _______________________________________________
>>> FreeSWITCH-dev mailing list
>>> FreeSWITCH-dev at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>>> http://www.freeswitch.org
>>>
>>>
>>
>>
>> --
>> Anthony Minessale II
>>
>> FreeSWITCH http://www.freeswitch.org/
>> ClueCon http://www.cluecon.com/
>> Twitter: http://twitter.com/FreeSWITCH_wire
>>
>> AIM: anthm
>> MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
>> IRC: irc.freenode.net #freeswitch
>>
>> FreeSWITCH Developer Conference
>> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
>> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
>> pstn:+19193869900
>>
>> _______________________________________________
>> FreeSWITCH-dev mailing list
>> FreeSWITCH-dev at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>> http://www.freeswitch.org
>>
>>
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20100506/c50777f5/attachment-0001.html 


More information about the FreeSWITCH-dev mailing list