increase the rw buffer for nfsv3 read/write commands to 1M
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 20 Aug 2010 02:12:10 +0000 (12:12 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 20 Aug 2010 02:12:10 +0000 (12:12 +1000)
this allows (when using tcp) to use much larger i/o sizes (for those servers that support them)

on ubuntu 10 on amd64,  knfsd can handle READ3 up to 512k
larger reads than this will be truncated to 512k

on this platform  librpc/rpcgen  is also limited on the amount of data it can send.
It appears that going above 256k writes,   the rpcgen generated code crashes
inside librpc

ymmv

nfsio.c

diff --git a/nfsio.c b/nfsio.c
index 6ee835c0a3550d4ccd6a6fd7c9fb0ecd1d39ebe7..ad88505d7f8e125ebebe38dd10c562f558a9cf08 100644 (file)
--- a/nfsio.c
+++ b/nfsio.c
@@ -29,7 +29,7 @@
 
 #define MAX_FILES 200
 
-static char rw_buf[65536];
+static char rw_buf[1024*1024];
 
 
 struct cb_data {