From 0d858446b62d40f9c7a932b5a491ccbcaaeb9c5c Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 12 Apr 2019 15:25:04 +0200 Subject: [PATCH] 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. --- src/listener.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/listener.c b/src/listener.c index ad63c4d6f..619a3cbdb 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;