diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-10-05 19:32:20 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-10-05 20:02:03 +0200 |
commit | 78631ceb990ad10ce7f9c6a1f154c2edf0950870 (patch) | |
tree | f178a9594b246de5ed74b12b85e40843dd21a884 /tcp.c | |
parent | cf9976beac01301a07536e406fee10beac9c4fd2 (diff) | |
download | passt-78631ceb990ad10ce7f9c6a1f154c2edf0950870.tar passt-78631ceb990ad10ce7f9c6a1f154c2edf0950870.tar.gz passt-78631ceb990ad10ce7f9c6a1f154c2edf0950870.tar.bz2 passt-78631ceb990ad10ce7f9c6a1f154c2edf0950870.tar.lz passt-78631ceb990ad10ce7f9c6a1f154c2edf0950870.tar.xz passt-78631ceb990ad10ce7f9c6a1f154c2edf0950870.tar.zst passt-78631ceb990ad10ce7f9c6a1f154c2edf0950870.zip |
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>
Diffstat (limited to 'tcp.c')
-rw-r--r-- | tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |