mirror of https://github.com/OISF/suricata
threads: align struct to CLS to avoid false sharing
Since `Thread` objects are part of a big allocation, more than one Thread could be on a single cache line, leading to false sharing. Atomic updates to one `Thread` could then lead to poor performance accessing another `Thread`. Align to CLS (cache line size) to avoid this.pull/12371/head
parent
b75d1ab37f
commit
2af67e17bc
Loading…
Reference in New Issue