]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: peers: drop the stick-table lock before entering peer_send_teachmsgs()
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Aug 2023 18:17:50 +0000 (20:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Aug 2023 17:03:35 +0000 (19:03 +0200)
commit45eeaad45fcc5aeef08a0827826961bdfa620b08
tree0c29f544915684f435888414dd2eee0366f25753
parentcfeca3a3a3f61adaca4c76487054e5e1499f1ea1
MEDIUM: peers: drop the stick-table lock before entering peer_send_teachmsgs()

The function drops the lock very early, and the only operations that
are performed on the entry code are updating the current peer's
last_local_table, which doesn't need to be protected. Thus it's
easier to drop the lock before entering the function and it further
limits its scope.

This has raised the peak RPS from 2050 to 2355k/s with a peers section on
the 80-core machine.
src/peers.c