[Asterisk-Dev] Bug 3203 "Get RT without runaway risk" revisited

Chris Parker cparker at segv.org
Fri Aug 5 09:26:09 MST 2005


On Aug 5, 2005, at 11:12 AM, Herman Webley wrote:

> On 08/05/05 10:46:13, Tzafrir Cohen wrote:
>
>> But on a 100%cpu loop the watchdog process may never get a chance
>> to run its code as Asterisk takes literally 100% of the CPU. The
>> watchdog should have real-time priority as well, right?
>>
>>
>
> It seems it works this way:
> The watchdog is not realtime priority, thus it does not get to  
> signal the wrapper, the wrapper (which is itself realtime) in turn  
> realizes that the asterisk process has run away. Perhaps the the  
> naming of the components is not clear.
>

The "wrapper" is actually the watchdog.  The non-rt process is the  
"canary"[1].  :)

-Chris

1. http://www.petcaretips.net/canary-coal-mine.html

-- 
    \\\|||///  \   Chris Parker    -   Segmentation Fault ( core  
dumped )
    \ ~   ~ /   \
    | @   @ |    \   http://www.segv.org     |    cparker at segv.org
oOo   (_)   oOo  \
------------------------------------------------------------------------
#             OS's are nothing more than device drivers!               #





More information about the asterisk-dev mailing list