NFS: support large reads and writes on the wire
Most NFS server implementations allow up to 64KB reads and writes on the wire. The Solaris NFS server allows up to a megabyte, for instance. Now the Linux NFS client supports transfer sizes up to 1MB, too. This will help reduce protocol and context switch overhead on read/write intensive NFS workloads, and support larger atomic read and write operations on servers that support them. Test-plan: Connectathon and iozone on mount point with wsize=rsize>32768 over TCP. Tests with NFS over UDP to verify the maximum RPC payload size cap. Signed-off-by: Chuck Lever <cel@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:

committed by
Trond Myklebust

parent
325cfed9ae
commit
40859d7ee6
@@ -296,8 +296,8 @@ static int __init root_nfs_name(char *name)
|
||||
nfs_port = -1;
|
||||
nfs_data.version = NFS_MOUNT_VERSION;
|
||||
nfs_data.flags = NFS_MOUNT_NONLM; /* No lockd in nfs root yet */
|
||||
nfs_data.rsize = NFS_DEF_FILE_IO_BUFFER_SIZE;
|
||||
nfs_data.wsize = NFS_DEF_FILE_IO_BUFFER_SIZE;
|
||||
nfs_data.rsize = NFS_DEF_FILE_IO_SIZE;
|
||||
nfs_data.wsize = NFS_DEF_FILE_IO_SIZE;
|
||||
nfs_data.acregmin = 3;
|
||||
nfs_data.acregmax = 60;
|
||||
nfs_data.acdirmin = 30;
|
||||
|
Reference in New Issue
Block a user