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.
This commit is contained in:
Willy Tarreau 2025-08-11 17:33:55 +02:00
parent 77335f52fc
commit d6095fcfe6

View 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