mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-13 10:37:02 +02:00
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:
parent
77335f52fc
commit
d6095fcfe6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user