freebsd-skq/sys/fs/nfs
rmacklem 802b1728d8 Fix several performance related issues in the new NFS server's
DRC for NFS over TCP.
- Increase the size of the hash tables.
- Create a separate mutex for each hash list of the TCP hash table.
- Single thread the code that deletes stale cache entries.
- Add a tunable called vfs.nfsd.tcphighwater, which can be increased
  to allow the cache to grow larger, avoiding the overhead of frequent
  scans to delete stale cache entries.
  (The default value will result in frequent scans to delete stale cache
   entries, analagous to what the pre-patched code does.)
- Add a tunable called vfs.nfsd.cachetcp that can be used to disable
  DRC caching for NFS over TCP, since the old NFS server didn't DRC cache TCP.
It also adjusts the size of nfsrc_floodlevel dynamically, so that it is
always greater than vfs.nfsd.tcphighwater.

For UDP the algorithm remains the same as the pre-patched code, but the
tunable vfs.nfsd.udphighwater can be used to allow the cache to grow
larger and reduce the overhead caused by frequent scans for stale entries.
UDP also uses a larger hash table size than the pre-patched code.

Reported by:	wollman
Tested by:	wollman (earlier version of patch)
Submitted by:	ivoras (earlier patch)
Reviewed by:	jhb (earlier version of patch)
MFC after:	1 month
2013-08-14 21:11:26 +00:00
..
nfs_commonacl.c Modify the NFSv4 client so that it can handle owner 2012-09-20 02:49:25 +00:00
nfs_commonkrpc.c Add support for host-based (Kerberos 5 service principal) initiator 2013-07-09 01:05:28 +00:00
nfs_commonport.c Revamp the old NFS server's File Handle Affinity (FHA) code so that 2013-04-17 21:00:22 +00:00
nfs_commonsubs.c The NFSv4 server incorrectly assumed that the high order words of 2013-07-20 22:35:32 +00:00
nfs_var.h Revamp the old NFS server's File Handle Affinity (FHA) code so that 2013-04-17 21:00:22 +00:00
nfs.h Add support for host-based (Kerberos 5 service principal) initiator 2013-07-09 01:05:28 +00:00
nfscl.h Move the NFSv4.1 client patches over from projects/nfsv4.1-client 2012-12-08 22:52:39 +00:00
nfsclstate.h Move the NFSv4.1 client patches over from projects/nfsv4.1-client 2012-12-08 22:52:39 +00:00
nfsdport.h Merge Capsicum overhaul: 2013-03-02 00:53:12 +00:00
nfskpiport.h
nfsm_subs.h Revamp the old NFS server's File Handle Affinity (FHA) code so that 2013-04-17 21:00:22 +00:00
nfsport.h Fix several performance related issues in the new NFS server's 2013-08-14 21:11:26 +00:00
nfsproto.h Move the NFSv4.1 client patches over from projects/nfsv4.1-client 2012-12-08 22:52:39 +00:00
nfsrvcache.h Fix several performance related issues in the new NFS server's 2013-08-14 21:11:26 +00:00
nfsrvstate.h
nfsv4_errstr.h
rpcv2.h
xdr_subs.h