aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-12 22:53:56 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-14 13:15:12 +0200
commitc9d57fee7c870d0421c01fa9899065e4a68020ce (patch)
tree9c17bd0eda17bc7e426533edc0e2dc3ce094f50c /tcp.c
parent44ca4bcf3eb12f560f6fc075594c88e6a2c9d950 (diff)
downloadpasst-c9d57fee7c870d0421c01fa9899065e4a68020ce.tar
passt-c9d57fee7c870d0421c01fa9899065e4a68020ce.tar.gz
passt-c9d57fee7c870d0421c01fa9899065e4a68020ce.tar.bz2
passt-c9d57fee7c870d0421c01fa9899065e4a68020ce.tar.lz
passt-c9d57fee7c870d0421c01fa9899065e4a68020ce.tar.xz
passt-c9d57fee7c870d0421c01fa9899065e4a68020ce.tar.zst
passt-c9d57fee7c870d0421c01fa9899065e4a68020ce.zip
tcp: Decrease pool size for pipes to 16
This should be a reasonable balance between quick connection establishment and a fast start-up. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp.c')
-rw-r--r--tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcp.c b/tcp.c
index 2abcaf8..b49f49e 100644
--- a/tcp.c
+++ b/tcp.c
@@ -361,7 +361,7 @@
#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 TCP_SPLICE_PIPE_POOL_SIZE 16
#define REFILL_INTERVAL 1000
#define PORT_DETECT_INTERVAL 1000