]> git.baikalelectronics.ru Git - kernel.git/commit
svcrpc: take advantage of tcp autotuning
authorOlga Kornievskaia <aglo@citi.umich.edu>
Tue, 21 Oct 2008 18:13:47 +0000 (14:13 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 18 Mar 2009 21:46:59 +0000 (17:46 -0400)
commit81024c999e2431c8171ac84154e2b0cc273c100f
treef2f8fc4ae9b8cc142e3d4c7b1978d3128cce8bdd
parentffd0905ca17e735ae0ec178cde8c00de5d0a2e04
svcrpc: take advantage of tcp autotuning

Allow the NFSv4 server to make use of TCP autotuning behaviour, which
was previously disabled by setting the sk_userlocks variable.

Set the receive buffers to be big enough to receive the whole RPC
request, and set this for the listening socket, not the accept socket.

Remove the code that readjusts the receive/send buffer sizes for the
accepted socket. Previously this code was used to influence the TCP
window management behaviour, which is no longer needed when autotuning
is enabled.

This can improve IO bandwidth on networks with high bandwidth-delay
products, where a large tcp window is required.  It also simplifies
performance tuning, since getting adequate tcp buffers previously
required increasing the number of nfsd threads.

Signed-off-by: Olga Kornievskaia <aglo@citi.umich.edu>
Cc: Jim Rees <rees@umich.edu>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
net/sunrpc/svcsock.c