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>
Showing
- fs/nfs/direct.c 3 additions, 2 deletionsfs/nfs/direct.c
- fs/nfs/inode.c 10 additions, 15 deletionsfs/nfs/inode.c
- fs/nfs/nfsroot.c 2 additions, 2 deletionsfs/nfs/nfsroot.c
- fs/nfs/read.c 3 additions, 3 deletionsfs/nfs/read.c
- fs/nfs/write.c 22 additions, 7 deletionsfs/nfs/write.c
- include/linux/nfs_fs.h 35 additions, 6 deletionsinclude/linux/nfs_fs.h
- include/linux/nfs_xdr.h 16 additions, 13 deletionsinclude/linux/nfs_xdr.h
- include/linux/sunrpc/xdr.h 0 additions, 5 deletionsinclude/linux/sunrpc/xdr.h
Loading
Please register or sign in to comment