From 28574cb4d104df98b92a9e6ca632729ed6c5fa9a Mon Sep 17 00:00:00 2001 From: Nathan Straz Date: Mon, 16 Sep 2013 16:20:25 -0400 Subject: Increase buffer and packet sizes This coordinates the buffer sizes with the max packet size. qarshd and qarsh will probably break if this value does not match between client and server builds. Also increase the value to reduce overhead. A max packet size of 16k only yields 40MB/s. Increase that to 128k and we can do 500MB/s. --- qarsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qarsh.c') diff --git a/qarsh.c b/qarsh.c index c713380..50bde2a 100644 --- a/qarsh.c +++ b/qarsh.c @@ -45,7 +45,7 @@ #include "hbeat.h" #define QARSH_MINPORT 5010 -#define QARSH_BUFSIZE 4096 +#define QARSH_BUFSIZE QARSH_MAX_PACKET_SIZE/2 #define CONNECT_TIMEOUT 30 -- cgit