From 78631ceb990ad10ce7f9c6a1f154c2edf0950870 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Tue, 5 Oct 2021 19:32:20 +0200 Subject: tcp: Reduce size of socket pools A large pool helps marginally with CRR latency, but has detrimental effects on TCP memory pressure. Signed-off-by: Stefano Brivio --- tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tcp.c') diff --git a/tcp.c b/tcp.c index 2409b97..d42e9ab 100644 --- a/tcp.c +++ b/tcp.c @@ -359,8 +359,8 @@ #define FIN_TIMEOUT 240000 #define LAST_ACK_TIMEOUT 240000 -#define TCP_SOCK_POOL_SIZE 256 -#define TCP_SOCK_POOL_TSH 128 /* Refill in ns if > x used */ +#define TCP_SOCK_POOL_SIZE 32 +#define TCP_SOCK_POOL_TSH 16 /* Refill in ns if > x used */ #define TCP_SPLICE_PIPE_POOL_SIZE 256 #define REFILL_INTERVAL 1000 -- cgit v1.2.3