summaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2014-07-22 17:48:04 -0400
committerJ. Bruce Fields <bfields@redhat.com>2014-07-23 14:20:48 -0400
commitd9bb5a43277d2dcc514fa693f741bbc38e2e2271 (patch)
tree63693518f78d16d70343448fef59a3ce7497e8d1 /include/linux/sunrpc
parent2f6ce8e73caa443201e3d826639b9242cf6ea568 (diff)
downloadlinux-d9bb5a43277d2dcc514fa693f741bbc38e2e2271.tar.gz
linux-d9bb5a43277d2dcc514fa693f741bbc38e2e2271.tar.bz2
linux-d9bb5a43277d2dcc514fa693f741bbc38e2e2271.zip
svcrdma: Double the default credit limit
The RDMA credit limit controls how many concurrent RPCs are allowed per connection. An NFS/RDMA client and server exchange their credit limits in the RPC/RDMA headers. The Linux client and the Solaris client and server allow 32 credits. The Linux server allows only 16, which limits its performance. Set the server's default credit limit to 32, like the other well- known implementations, so the out-of-the-shrinkwrap performance of the Linux server is better. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r--include/linux/sunrpc/svc_rdma.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/sunrpc/svc_rdma.h b/include/linux/sunrpc/svc_rdma.h
index 5cf99a016368..975da754c778 100644
--- a/include/linux/sunrpc/svc_rdma.h
+++ b/include/linux/sunrpc/svc_rdma.h
@@ -174,8 +174,7 @@ struct svcxprt_rdma {
* page size of 4k, or 32k * 2 ops / 4k = 16 outstanding RDMA_READ. */
#define RPCRDMA_ORD (64/4)
#define RPCRDMA_SQ_DEPTH_MULT 8
-#define RPCRDMA_MAX_THREADS 16
-#define RPCRDMA_MAX_REQUESTS 16
+#define RPCRDMA_MAX_REQUESTS 32
#define RPCRDMA_MAX_REQ_SIZE 4096
/* svc_rdma_marshal.c */