commit | 751153e0f119bec90455cda95166f1b29d8b0326 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Feb 17 13:33:24 2021 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Feb 18 10:06:45 2021 +0100 |
tree | cb37fa81eaf2ddba084655b0233ff09d66658cee | |
parent | ccea3c54f4b39774ccb48cfd604a22acb8e59c86 [diff] |
OPTIM: server: switch the actconn list to an mt-list The remaining contention on the server lock solely comes from sess_change_server() which takes the lock to add and remove a stream from the server's actconn list. This is both expensive and pointless since we have mt-lists, and this list is only used by the CLI's "shutdown server sessions" command! Let's migrate to an mt-list and remove the need for this costly lock. By doing so, the request rate increased by ~1.8%.