[asterisk-dev] sched.c: Request to schedule in the past.
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Fri May 16 15:10:50 CDT 2008
On Friday 16 May 2008 14:48:54 Al Lougher wrote:
> I've a tweaked version of app_amd that instead of waiting for audio in the
> receive direction, it begins streaming audio right away. The problem is
> it's occasionally throwing this error as well as stopping the stream for a
> second or two then continuing. I think the error is being caused by either
> ast_sched_wait() or ast_sched_runq().
Generally you're going to see that error when a machine is heavily loaded and
a scheduled task does not make it to the queue until after it was supposed to
have run. A frequent cause nowadays is running Asterisk within a virtual
machine. The load caused by other VMs on the same physical machine delays
the Asterisk process. If this is the case, you might try moving your VM to
another physical machine that is not as heavily loaded or you might try a
dedicated machine.
I've also run into this error when running under valgrind with full debugging
turned on, as that will also slow down the process threads markedly.
--
Tilghman
More information about the asterisk-dev
mailing list