summaryrefslogtreecommitdiffstats
path: root/qarsh.c
diff options
context:
space:
mode:
authorNathan Straz <nstraz@redhat.com>2013-09-16 16:20:25 -0400
committerNathan Straz <nstraz@redhat.com>2013-09-16 16:20:25 -0400
commit28574cb4d104df98b92a9e6ca632729ed6c5fa9a (patch)
treed2f3e5481e0d6b6dca127424f8bd1e5126364b94 /qarsh.c
parent0570bd953cf3ecd1b58c192a015a6f0d46423852 (diff)
downloadqarsh-28574cb4d104df98b92a9e6ca632729ed6c5fa9a.tar.gz
qarsh-28574cb4d104df98b92a9e6ca632729ed6c5fa9a.tar.xz
qarsh-28574cb4d104df98b92a9e6ca632729ed6c5fa9a.zip
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.
Diffstat (limited to 'qarsh.c')
-rw-r--r--qarsh.c2
1 files changed, 1 insertions, 1 deletions
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