From d6095fcfe636f7c7eb12f0b1434a43cf8aca4dc7 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 11 Aug 2025 17:33:55 +0200 Subject: [PATCH] OPTIM: queue: align the pendconn pools to 64 This is in order to limit false sharing, because this element is already ultra-sensitive to sharing and we'd rather limit it as much as possible. --- src/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queue.c b/src/queue.c index f2afd713d..6dcea697e 100644 --- a/src/queue.c +++ b/src/queue.c @@ -92,7 +92,7 @@ s * queue's lock. #define KEY_CLASS_OFFSET_BOUNDARY(key) (KEY_CLASS(key) | NOW_OFFSET_BOUNDARY()) #define MAKE_KEY(class, offset) (((u32)(class + 0x7ff) << 20) | ((u32)(now_ms + offset) & 0xfffff)) -DECLARE_TYPED_POOL(pool_head_pendconn, "pendconn", struct pendconn); +DECLARE_TYPED_POOL(pool_head_pendconn, "pendconn", struct pendconn, 0, 64); /* returns the effective dynamic maxconn for a server, considering the minconn * and the proxy's usage relative to its dynamic connections limit. It is