]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
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>
Fri, 5 Mar 2021 07:30:08 +0000 (08:30 +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.

include/haproxy/defaults.h

index 3a87c1bff14a4147213b29aab44782939b0a8a14..13b5ad3fc85a48e53f1f77d82c364c9ec83c6373 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