diff options
author | Matthew Dillon <dillon@FreeBSD.org> | 2000-03-27 21:38:35 +0000 |
---|---|---|
committer | Matthew Dillon <dillon@FreeBSD.org> | 2000-03-27 21:38:35 +0000 |
commit | 8d1b3828fa62900465357241711755512672361a (patch) | |
tree | 6b053f76d91bc9da4947a8b1c7264034ef12d1e2 /etc/rc.network | |
parent | 25db2c5417476bb01a0ec062ebd99fe1b2a636ab (diff) | |
download | src-8d1b3828fa62900465357241711755512672361a.tar.gz src-8d1b3828fa62900465357241711755512672361a.zip |
Add a sysctl to specify the amount of UDP receive space NFS should
reserve, in maximal NFS packets. Originally only 2 packets worth of
space was reserved. The default is now 4, which appears to greatly
improve performance for slow to mid-speed machines on gigabit networks.
Add documentation and correct some prior documentation.
Problem Researched by: Andrew Gallatin <gallatin@cs.duke.edu>
Approved by: jkh
Notes
Notes:
svn path=/head/; revision=58710
Diffstat (limited to 'etc/rc.network')
-rw-r--r-- | etc/rc.network | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.network b/etc/rc.network index 0211181f0516..dd60e892eb45 100644 --- a/etc/rc.network +++ b/etc/rc.network @@ -493,6 +493,11 @@ network_pass3() { echo -n ' nfsd'; nfsd ${nfs_server_flags} + if [ -n "${nfs_bufpackets}" ]; then + sysctl -w vfs.nfs.bufpackets=${nfs_bufpackets} \ + > /dev/null + fi + case ${rpc_lockd_enable} in [Yy][Ee][Ss]) echo -n ' rpc.lockd'; rpc.lockd |