From: Willy Tarreau Date: Fri, 12 Apr 2019 13:25:04 +0000 (+0200) Subject: BUG/MINOR: listener: renice the accept ring processing task X-Git-Tag: v2.0-dev3~316 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d858446b62d40f9c7a932b5a491ccbcaaeb9c5c;p=thirdparty%2Fhaproxy.git BUG/MINOR: listener: renice the accept ring processing task It is not acceptable that the accept queues are handled with a normal priority since they are supposed to quickly dispatch the incoming traffic, resulting in tasks which will have their respective nice values and place in the queue. Let's renice the accept ring tasks to -1024. No backport is needed, this is strictly 2.0. --- diff --git a/src/listener.c b/src/listener.c index ad63c4d6ff..619a3cbdba 100644 --- a/src/listener.c +++ b/src/listener.c @@ -201,6 +201,7 @@ static int accept_queue_init() ha_alert("Out of memory while initializing accept queue for thread %d\n", i); return ERR_FATAL|ERR_ABORT; } + t->nice = -1024; t->process = accept_queue_process; t->context = &accept_queue_rings[i]; accept_queue_rings[i].task = t;