[asterisk-users] Avoiding deadlock

Tilghman Lesher tlesher at digium.com
Mon Nov 22 10:52:26 CST 2010


On Monday 22 November 2010 07:00:31 Vilius Adamkavicius wrote:
> On 18 November 2010 03:35, Moises Silva <moises.silva at gmail.com> wrote:
> > On Wed, Nov 17, 2010 at 9:56 AM, Vilius Adamkavicius  wrote:
> >> However I believe decreasing logging, its just like closing your eyes
> >> and ignoring what happening behind you, the problem is still there. Also
> >> decreased logging will prevent from troubleshooting any other problems
> >> in the future.
> >>
> >> Would you happen to know any potential causes for this message?
> >
> > The problem is you were just told by a Digium engineer who knows the code
> > from many years back that is a debug message and there is nothing to
> > worry about and you insist in believing this is a problem.
> >
> > If you want to know what the message means and why you should not worry
> > you must understand what a lock is, what lock contention is and what a
> > deadlock is.
>
> However I still wouldn't want to agree that reducing debug logging is a
> solution. Let me explain why, we are driving Asterisk using AMI and verbose
> logging is simply not enough to investigate issues that arises with our
> software or Asterisk itself. Also we are getting valuable information from
> the debug logs in order to verify activities in our own logs. Printing
> Avoiding deadlock message 12000 times in the logs makes system less
> efficient and causes performance degradation due to massive I/O activity.
> Would you say this should be ignored too?
>
> I'm not implying that Avoiding deadlock is the problem here, maybe its
> Asterisk debug logging?

The problem is that you're unwilling to deal with the verbosity that debug
logging provides.  Either you deal with it, or you turn it off.  Those are
your options.  Of, you can edit the source and remove any debug messages
that you find offensive.  You DO have the source, after all.

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list