summaryrefslogtreecommitdiffstats
path: root/tools/regression
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2013-08-14 21:11:26 +0000
committerrmacklem <rmacklem@FreeBSD.org>2013-08-14 21:11:26 +0000
commit802b1728d8a3d2a016628022a7631f365f00e337 (patch)
treea20eea4fffded2fee18dcd50c288a819ea803066 /tools/regression
parent79360f25fc862bef26d62d9fd2ec20d0de41756e (diff)
downloadFreeBSD-src-802b1728d8a3d2a016628022a7631f365f00e337.zip
FreeBSD-src-802b1728d8a3d2a016628022a7631f365f00e337.tar.gz
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
Diffstat (limited to 'tools/regression')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud