MINOR: pools: double the local pool cache size to 1 MB
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Mar 2021 19:11:29 +0000 (20:11 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 10 Mar 2021 14:11:16 +0000 (15:11 +0100)
The reason is that H2 can already require 32 16kB buffers for the mux
output at once, which will deplete the local cache. Thus it makes sense
to go further to leave some time to other connection to release theirs.
In addition, the L2 cache on modern CPUs is already 1 MB, so this change
is welcome in any case.

(cherry picked from commit f587003fe916315e77e130339e21fc8d3a4a7248)
Signed-off-by: Willy Tarreau <w@1wt.eu>

include/haproxy/defaults.h

index 13099fd..5ed14dc 100644 (file)
 
 /* default per-thread pool cache size when enabled */
 #ifndef CONFIG_HAP_POOL_CACHE_SIZE
-#define CONFIG_HAP_POOL_CACHE_SIZE 524288
+#define CONFIG_HAP_POOL_CACHE_SIZE 1048576
 #endif
 
 /* Number of samples used to compute the times reported in stats. A power of