tmp_suning_uos_patched/fs/nfsd
Chuck Lever 2bea90d43a SUNRPC: RPC buffer size estimates are too large
The RPC buffer size estimation logic in net/sunrpc/clnt.c always
significantly overestimates the requirements for the buffer size.
A little instrumentation demonstrated that in fact rpc_malloc was never
allocating the buffer from the mempool, but almost always called kmalloc.

To compute the size of the RPC buffer more precisely, split p_bufsiz into
two fields; one for the argument size, and one for the result size.

Then, compute the sum of the exact call and reply header sizes, and split
the RPC buffer precisely between the two.  That should keep almost all RPC
buffers within the 2KiB buffer mempool limit.

And, we can finally be rid of RPC_SLACK_SPACE!

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2007-04-30 22:17:10 -07:00
..
auth.c [PATCH] knfsd: nfsd: nfsd_setuser doesn't really need to modify rqstp->rq_cred. 2006-04-11 06:18:52 -07:00
export.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
lockd.c [PATCH] lockd endianness annotations 2006-12-13 09:05:52 -08:00
Makefile
nfs2acl.c [PATCH] Fix a free-wrong-pointer bug in nfs/acl server. 2007-02-19 16:13:28 -08:00
nfs3acl.c [PATCH] NFS3: Calculate 'w' a bit later in nfs3svc_encode_getaclres() 2006-12-08 08:29:02 -08:00
nfs3proc.c [PATCH] nfsd4: fix open-create permissions 2006-11-08 18:29:23 -08:00
nfs3xdr.c [PATCH] knfsd: allow nfsd READDIR to return 64bit cookies 2007-03-27 09:05:14 -07:00
nfs4acl.c [PATCH] knfsd: nfsd4: fix inheritance flags on v4 ace derived from posix default ace 2007-03-27 09:05:14 -07:00
nfs4callback.c SUNRPC: RPC buffer size estimates are too large 2007-04-30 22:17:10 -07:00
nfs4idmap.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
nfs4proc.c [PATCH] knfsd: nfsd4: simplify filehandle check 2006-12-13 09:05:54 -08:00
nfs4recover.c [PATCH] lockdep: annotate nfsd4 recover code 2006-12-08 08:29:01 -08:00
nfs4state.c [PATCH] knfsd: nfsd4: remove superfluous cancel_delayed_work() call 2007-03-27 09:05:14 -07:00
nfs4xdr.c [PATCH] knfsd: nfsd4: fix error return on unsupported acl 2007-02-16 08:14:01 -08:00
nfscache.c [PATCH] knfsd: SUNRPC: Provide room in svc_rqst for larger addresses 2007-02-12 09:48:36 -08:00
nfsctl.c [PATCH] knfsd: fix return value for writes to some files in 'nfsd' filesystem 2007-02-14 08:09:53 -08:00
nfsfh.c [PATCH] include of asm/pgtable.h in nfsfh is bogus 2007-03-14 15:27:49 -07:00
nfsproc.c [PATCH] knfsd: SUNRPC: Add a function to format the address in an svc_rqst for printing 2007-02-12 09:48:35 -08:00
nfssvc.c [PATCH] knfsd: SUNRPC: allow creating an RPC service without registering with portmapper 2007-02-12 09:48:35 -08:00
nfsxdr.c [PATCH] knfsd: add some new fsid types 2007-02-14 08:09:53 -08:00
stats.c [PATCH] knfsd: nfsd4: add per-operation server stats 2006-07-10 13:24:27 -07:00
vfs.c [PATCH] knfsd: nfsd4: fix error return on unsupported acl 2007-02-16 08:14:01 -08:00