commit | 90e9b8c8b6d03f5e45d11c244cd7a9ff175bfae3 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Mar 03 18:23:19 2021 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Mar 05 08:30:08 2021 +0100 |
tree | e9b5b2f84c5e2d53a311fefb4547ea4cac1cf404 | |
parent | cc2672f48ba20b68e90144775c0c70839f87ca50 [diff] |
CLEANUP: global: reorder some fields to respect cache lines Some entries are atomically updated by various threads, such as the global counters, and they're mixed with others which are read all the time like the mode. This explains why "perf" was seeing a huge access cost on global.mode in process_stream()! Let's reorder them so that the static config stuff is at the beginning and the live stuff is at the end.