]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Double the number of threadpool threads
authorNicki Křížek <nicki@isc.org>
Fri, 6 Sep 2024 12:15:21 +0000 (14:15 +0200)
committerNicki Křížek <nicki@isc.org>
Fri, 6 Sep 2024 12:55:38 +0000 (14:55 +0200)
Introduce this temporary workaround to reduce the impact of long-running
tasks in offload threads which can block the resolution of queries.

(cherry picked from commit 6857df20a40f4e05f465a7a3f5d24eeedce8fc6c)

lib/isc/loop.c

index 5cad59e2e6c106c0e5a82f6b67b9eff43c4c1553..68202aaa6e65d32a7957ff372ae540f7e0936f47 100644 (file)
@@ -308,7 +308,10 @@ threadpool_initialize(uint32_t workers) {
        int r = uv_os_getenv("UV_THREADPOOL_SIZE", buf,
                             &(size_t){ sizeof(buf) });
        if (r == UV_ENOENT) {
-               snprintf(buf, sizeof(buf), "%" PRIu32, workers);
+               /* FIXME The number of threadpool threads has been temporarily
+                * doubled to work around the issue [GL #4898] until a proper
+                * solution is implemented. */
+               snprintf(buf, sizeof(buf), "%" PRIu32, 2 * workers);
                uv_os_setenv("UV_THREADPOOL_SIZE", buf);
        }
 }