From: Anthony Minessale Date: Tue, 2 Oct 2012 12:39:21 +0000 (-0500) Subject: more priority tweaks X-Git-Tag: v1.3.0~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc06155740c409f23527ef1602b36a0426c097c5;p=thirdparty%2Ffreeswitch.git more priority tweaks --- diff --git a/src/switch_apr.c b/src/switch_apr.c index 2fcb2cd81e..aeb10185a9 100644 --- a/src/switch_apr.c +++ b/src/switch_apr.c @@ -637,7 +637,7 @@ SWITCH_DECLARE(switch_status_t) switch_threadattr_create(switch_threadattr_t ** if ((status = apr_threadattr_create(new_attr, pool)) == SWITCH_STATUS_SUCCESS) { #ifndef WIN32 - (*new_attr)->priority = SWITCH_PRI_NORMAL; + (*new_attr)->priority = SWITCH_PRI_LOW; #endif } diff --git a/src/switch_core.c b/src/switch_core.c index 70d4cd5d0f..4912f0abd8 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -735,7 +735,7 @@ SWITCH_DECLARE(int32_t) set_realtime_priority(void) const char *rt = "/proc/sys/kernel/sched_rt_runtime_us"; char data[] = "-1\n"; struct sched_param sched = { 0 }; - sched.sched_priority = SWITCH_PRI_REALTIME; + sched.sched_priority = SWITCH_PRI_LOW; if (sched_setscheduler(0, SCHED_RR, &sched)) { sched.sched_priority = 0; if (sched_setscheduler(0, SCHED_OTHER, &sched)) {