From f587003fe916315e77e130339e21fc8d3a4a7248 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 2 Mar 2021 20:11:29 +0100 Subject: [PATCH] MINOR: pools: double the local pool cache size to 1 MB 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/haproxy/defaults.h b/include/haproxy/defaults.h index 3a87c1bff1..13b5ad3fc8 100644 --- a/include/haproxy/defaults.h +++ b/include/haproxy/defaults.h @@ -371,7 +371,7 @@ /* 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 -- 2.39.5