CLEANUP: server: reorder some fields in the server struct to respect cache lines
authorWilly Tarreau <w@1wt.eu>
Fri, 5 Mar 2021 10:37:32 +0000 (11:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 5 Mar 2021 14:00:24 +0000 (15:00 +0100)
commiteef7f7fe686d66ccbb1ad6856cd9154554ea1cf1
tree240fb4e26350ce16287a5edb04a28df7db03a6d9
parentd4e78d873cecf9938885c90e736f8b761a35fb55
CLEANUP: server: reorder some fields in the server struct to respect cache lines

There's currently quite some thread contention in the server struct
because frequently fields accessed fields are mixed with those being
often written to by any thread. Let's split this a little bit to
separate a few areas:
  - pure config / admin / operating status (almost never changes)
  - idle and queuing (fast changes, done almost together)
  - LB (fast changes, not necessarily dependent on the above)
  - counters (fast changes, at a different instant again)
include/haproxy/server-t.h