<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: [Asterisk-Users] Mutex problem in sip?</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Well, I think it is a problem because eventually mutex doesn't get released</FONT>
<BR><FONT SIZE=2>and all the threads sit (in restart_monitor) forever. We've seen it several</FONT>
<BR><FONT SIZE=2>times, along with the messages like</FONT>
</P>
<P><FONT SIZE=2>NOTICE[6151]: File sched.c, Line 209 (sched_settime): Request to schedule in the past?!?</FONT>
<BR><FONT SIZE=2>!</FONT>
<BR><FONT SIZE=2>NOTICE[6151]: File sched.c, Line 209 (sched_settime): Request to schedule in the past?!?</FONT>
<BR><FONT SIZE=2>!</FONT>
</P>
<P><FONT SIZE=2>Anything we can do to help locate the problem?</FONT>
</P>
<P><FONT SIZE=2>Thank you.</FONT>
<BR><FONT SIZE=2>Alex Zarubin</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Martin Pycko [<A HREF="mailto:martinp@digium.com">mailto:martinp@digium.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Friday, August 01, 2003 2:28 PM</FONT>
<BR><FONT SIZE=2>To: 'asterisk-users@lists.digium.com'</FONT>
<BR><FONT SIZE=2>Subject: Re: [Asterisk-Users] Mutex problem in sip?</FONT>
</P>
<BR>
<P><FONT SIZE=2>It doesn't look like a problem. It's that when you have so many calls ...</FONT>
<BR><FONT SIZE=2>execution of some piece of code protected by mutex takes longer so it</FONT>
<BR><FONT SIZE=2>happens that some calls wait for their time ..... I guess if you have too</FONT>
<BR><FONT SIZE=2>many of those messages you should disable them.</FONT>
</P>
<P><FONT SIZE=2>regards</FONT>
<BR><FONT SIZE=2>Martin</FONT>
</P>
<P><FONT SIZE=2>On Thu, 31 Jul 2003, Alex Zarubin wrote:</FONT>
</P>
<P><FONT SIZE=2>> Hello,</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> CVS 07/31/03. Test with 130+ PSTN-to-SIP calls. Asterisk gets locked ...</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> grep -e "Error" -e "eventually" p-console</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Got it eventually...</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Got it eventually...</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Got it eventually...</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Got it eventually...</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Got it eventually...</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 4980 (do_monitor): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 4980 (do_monitor): Got it eventually...</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 4980 (do_monitor): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 4980 (do_monitor): Got it eventually...</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 4980 (do_monitor): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 4980 (do_monitor): Got it eventually...</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 4980 (do_monitor): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 4980 (do_monitor): Got it eventually...</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Got it eventually...</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Got it eventually...</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Got it eventually...</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Got it eventually...</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Got it eventually...</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Got it eventually...</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> .....</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> chan_sip.c line 1453 (sip_alloc): Got it eventually...</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 4980 (do_monitor): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 4980 (do_monitor): Got it eventually...</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 948 (sip_hangup): Error obtaining mutex: Device or resource</FONT>
<BR><FONT SIZE=2>> busy</FONT>
<BR><FONT SIZE=2>> channel.c line 370 (ast_queue_frame): Error obtaining mutex: Device or</FONT>
<BR><FONT SIZE=2>> resource busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 5044 (restart_monitor): Error obtaining mutex: Device or</FONT>
<BR><FONT SIZE=2>> resource busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 5044 (restart_monitor): Error obtaining mutex: Device or</FONT>
<BR><FONT SIZE=2>> resource busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 5044 (restart_monitor): Error obtaining mutex: Device or</FONT>
<BR><FONT SIZE=2>> resource busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 5044 (restart_monitor): Error obtaining mutex: Device or</FONT>
<BR><FONT SIZE=2>> resource busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 5044 (restart_monitor): Error obtaining mutex: Device or</FONT>
<BR><FONT SIZE=2>> resource busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 5044 (restart_monitor): Error obtaining mutex: Device or</FONT>
<BR><FONT SIZE=2>> resource busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 5044 (restart_monitor): Error obtaining mutex: Device or</FONT>
<BR><FONT SIZE=2>> resource busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 5044 (restart_monitor): Error obtaining mutex: Device or</FONT>
<BR><FONT SIZE=2>> resource busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 5044 (restart_monitor): Error obtaining mutex: Device or</FONT>
<BR><FONT SIZE=2>> resource busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 5044 (restart_monitor): Error obtaining mutex: Device or</FONT>
<BR><FONT SIZE=2>> resource busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 5044 (restart_monitor): Error obtaining mutex: Device or</FONT>
<BR><FONT SIZE=2>> resource busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 5044 (restart_monitor): Error obtaining mutex: Device or</FONT>
<BR><FONT SIZE=2>> resource busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 5044 (restart_monitor): Error obtaining mutex: Device or</FONT>
<BR><FONT SIZE=2>> resource busy</FONT>
<BR><FONT SIZE=2>> chan_sip.c line 5044 (restart_monitor): Error obtaining mutex: Device or</FONT>
<BR><FONT SIZE=2>> resource busy</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Thank you.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Alex Zarubin</FONT>
<BR><FONT SIZE=2>> Webley Systems, Inc.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>></FONT>
</P>
<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Asterisk-Users mailing list</FONT>
<BR><FONT SIZE=2>Asterisk-Users@lists.digium.com</FONT>
<BR><FONT SIZE=2><A HREF="http://lists.digium.com/mailman/listinfo/asterisk-users" TARGET="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</A></FONT>
</P>
</BODY>
</HTML>