commit | 20dc3cd4a60d7b1895d8cca954a00da71b1dca3e | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Jun 28 00:54:27 2020 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon Jun 29 10:36:37 2020 +0200 |
tree | 019b49ce09a0eeb29131e30a84c4e7a032c3c135 | |
parent | c03d7632a52bd4b24f1dcc0c1cc1b03db44df95a [diff] |
MINOR: pools: move the LRU cache heads to thread_info The LRU cache head was an array of list, which causes false sharing between 4 to 8 threads in the same cache line. Let's move it to the thread_info structure instead. There's no need to do the same for the pool_cache[] array since it's already quite large (32 pointers each). By doing this the request rate increased by 1% on a 16-thread machine.