aboutgitcodebugslistschat
path: root/tcp_splice.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-04-07 11:41:50 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-04-07 14:28:27 +0200
commitdf69be379e6d8b8b1aab2d00b858b89acfde7ab8 (patch)
tree3044c46c6a256a5b682db44e0f44f979e3799848 /tcp_splice.c
parent6e9464ff0ac288d5efff68d485129dc8ddac73d0 (diff)
downloadpasst-df69be379e6d8b8b1aab2d00b858b89acfde7ab8.tar
passt-df69be379e6d8b8b1aab2d00b858b89acfde7ab8.tar.gz
passt-df69be379e6d8b8b1aab2d00b858b89acfde7ab8.tar.bz2
passt-df69be379e6d8b8b1aab2d00b858b89acfde7ab8.tar.lz
passt-df69be379e6d8b8b1aab2d00b858b89acfde7ab8.tar.xz
passt-df69be379e6d8b8b1aab2d00b858b89acfde7ab8.tar.zst
passt-df69be379e6d8b8b1aab2d00b858b89acfde7ab8.zip
tcp_splice: Allow up to 8 MiB as pipe size
It actually improves throughput a bit, if allowed by user limits. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp_splice.c')
-rw-r--r--tcp_splice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcp_splice.c b/tcp_splice.c
index 1e24986..61e9b23 100644
--- a/tcp_splice.c
+++ b/tcp_splice.c
@@ -48,7 +48,7 @@
#include "util.h"
#include "passt.h"
-#define MAX_PIPE_SIZE (2UL * 1024 * 1024)
+#define MAX_PIPE_SIZE (8UL * 1024 * 1024)
#define TCP_SPLICE_MAX_CONNS (128 * 1024)
#define TCP_SPLICE_PIPE_POOL_SIZE 16
#define TCP_SPLICE_CONN_PRESSURE 30 /* % of splice_conn_count */