[Asterisk-Dev] Unlocking the unlocked...

Zoa zoachien at securax.org
Tue Jun 28 23:54:40 MST 2005


It smells like a hd activity problem to me. (or a not enough cpu
available problem)
Try saving everything on a network share and do the mixing / mp3
encoding on that remote server.

Zoa

-----------
Asteriskguru tutorials: http://www.asteriskguru.com/tutorials/
ClueCon - the asterisk developpers conference: http://www.cluecon.com/ -
Dates: August 3, 4 and 5, 2005  Best Western Chicago West


Guillermo Winkler wrote:

> Hi,
>    Under the following scenario:
>
> 6000 outgoing calls/hour(SIP-->ZAP)
> 75% connected (25% is busy or no answer)
> 100% of connected calls beign recorded, when LINK event occurs.
> P4 2.8 HT.
> Krnl 2.4.21
>
> We are having some "Avoid deadlock" issues(This is not happening
> without recording)
>
> As you can see in channel_walk_locked
>
> if (retries < 10)
>     ast_log(LOG_DEBUG, "Avoiding initial deadlock for '%s'\n", l->name);
>    else
>     ast_log(LOG_WARNING, "Avoided initial deadlock for '%s', %d
> retries!\n", l->name, retries);
>    ast_mutex_unlock(&chlock);
>
> Ten 1ms retries are done to avoid deadlocks. But when recording is
> enabled, the channel gets locked on start:
> if (ast_monitor_start(c, format, fname, 1)) {
>  if (ast_monitor_change_fname(c, fname, 1)) {
>
> Those ten retries are not enough in that case, using lock instead of
> try_lock, or increasing the number of retries, solves the problem
> temporarily.
>
> I wanted to know if someone else is experimenting something similar?
>
> I think ast_channel_walk_locked and ast_get_channel_by_name_locked
> could be rewritten or a new set of functions be added , faster and
> more reliable (now you don't know if the channel you're looking for is
> not there at all or a deadlock(not so dead) issue on ANOTHER channel
> was the failure).
>
> If you feel the same I would be glad to help.
>
> Regards,
> Guillermo
>
>
>
>
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20050629/3595133a/signature.pgp


More information about the asterisk-dev mailing list