mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-24 14:33:16 +00:00
MINOR: buffers: cache-align buffer_wq_lock
This lock is highly stressed, avoid cache-line sharing to limit stress.
This commit is contained in:
parent
8b94969054
commit
b6a2f58993
@ -33,7 +33,7 @@ struct buffer buf_wanted = { .p = buf_wanted.data };
|
|||||||
|
|
||||||
/* list of objects waiting for at least one buffer */
|
/* list of objects waiting for at least one buffer */
|
||||||
struct list buffer_wq = LIST_HEAD_INIT(buffer_wq);
|
struct list buffer_wq = LIST_HEAD_INIT(buffer_wq);
|
||||||
__decl_hathreads(HA_SPINLOCK_T buffer_wq_lock);
|
__decl_hathreads(HA_SPINLOCK_T __attribute__((aligned(64))) buffer_wq_lock);
|
||||||
|
|
||||||
/* this buffer is always the same size as standard buffers and is used for
|
/* this buffer is always the same size as standard buffers and is used for
|
||||||
* swapping data inside a buffer.
|
* swapping data inside a buffer.
|
||||||
|
Loading…
Reference in New Issue
Block a user