freebsd-skq/sys/fs/nfs
mav 31820682b5 MFC r260229, r260258, r260367, r260390, r260459, r260648:
Rework NFS Duplicate Request Cache cleanup logic.

 - Introduce additional hash to group requests by hash of sockref.  This
allows to process TCP acknowledgements without looping though all the cache,
and as result allows to do it every time.
 - Indroduce additional callbacks to notify application layer about sockets
disconnection.  Without this last few requests processed just before socket
disconnection never processed their ACKs and stuck in cache for many hours.
 - Implement transport-specific method for tracking reply acknowledgements.
New implementation does not cross multiple stack layers to get the data and
does not have race conditions that previously made some requests stuck
in cache.  This could be done more efficiently at sockbuf layer, but that
would broke some KBIs, while I don't know other consumers for it aside NFS.
 - Instead of traversing all DRC twice per request, run cleaning only once
per request, and except in some conditions traverse only single hash slot
at a time.

Together this limits NFS DRC growth only to situations of real connectivity
problems.  If network is working well, and so all replies are acknowledged,
cache remains almost empty even after hours of heavy load.  Without this
change on the same test cache was growing to many thousand requests even
with perfectly working local network.

As another result this reduces CPU time spent on the DRC handling during
SPEC NFS benchmark from about 10% to 0.5%.

Sponsored by:   iXsystems, Inc.
2014-01-22 23:55:25 +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 MFC: r257598 2013-12-11 00:39:56 +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 MFC: r259801 2013-12-31 21:56:02 +00:00
nfs_var.h MFC r260229, r260258, r260367, r260390, r260459, r260648: 2014-01-22 23:55:25 +00:00
nfs.h Remove most of the remaining sysctl name list macros. They were only 2013-08-26 18:16:05 +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 Fix typos in macros. 2010-05-08 14:50:12 +00:00
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 MFC r260229, r260258, r260367, r260390, r260459, r260648: 2014-01-22 23:55:25 +00:00
nfsrvstate.h This patch should fix handling of byte range locks locally 2010-03-30 23:11:50 +00:00
nfsv4_errstr.h
rpcv2.h
xdr_subs.h