print a warning instructing the user to disable storesipcause if we process 100

or more scheduler entries at a time

AST-580


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@332234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matthew Nicholson
2011-08-17 14:31:30 +00:00
parent 1fc32a652e
commit 8345854458

View File

@@ -25145,6 +25145,8 @@ static void *do_monitor(void *data)
res = ast_sched_runq(sched);
if (res >= 20)
ast_debug(1, "chan_sip: ast_sched_runq ran %d all at once\n", res);
if (global_store_sip_cause && res >= 100)
ast_log(LOG_WARNING, "scheduler delays detected, setting 'storesipcause' to 'no' in %s will improve performance\n", config);
ast_mutex_unlock(&monlock);
}