1
0
mirror of https://passt.top/passt synced 2024-10-01 03:25:48 +00:00

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 <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2021-10-05 19:32:20 +02:00
parent cf9976beac
commit 78631ceb99

4
tcp.c
View File

@ -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