commit c0d6657c26f8a6ee4115c0f79221f51fe50488db
parent 11cf2075a2a2b4a096ebaffcb9c4fdaec0436697
Author: Joris Vink <joris@coders.se>
Date: Fri, 26 Aug 2022 10:19:26 +0200
Fix a log message regarding worker count.
The worker_count is incremented by 2 earlier to account for keymgr/acme
but aren't actually workers that should count towards CPU pinning.
So adjust the count when comparing to cpu_count when logging that there
are more workers than cpus.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/worker.c b/src/worker.c
@@ -132,7 +132,7 @@ kore_worker_init(void)
sizeof(*accept_lock));
memset(kore_workers, 0, sizeof(struct kore_worker) * worker_count);
- if (worker_count > cpu_count)
+ if ((worker_count - 2) > cpu_count)
kore_log(LOG_NOTICE, "more worker processes than cpu cores");
/* Setup log buffers. */