]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
OPTIM: queue: align the pendconn pools to 64
authorWilly Tarreau <w@1wt.eu>
Mon, 11 Aug 2025 15:33:55 +0000 (17:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Aug 2025 17:55:30 +0000 (19:55 +0200)
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

index f2afd713d7e25683c838772e9ab495e47b4f8428..6dcea697eb032a9af83cf1c0720d3ad2f67b9445 100644 (file)
@@ -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