aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-05 19:32:20 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-05 20:02:03 +0200
commit78631ceb990ad10ce7f9c6a1f154c2edf0950870 (patch)
treef178a9594b246de5ed74b12b85e40843dd21a884 /tcp.c
parentcf9976beac01301a07536e406fee10beac9c4fd2 (diff)
downloadpasst-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.c4
1 files changed, 2 insertions, 2 deletions
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