aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.network
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2000-03-27 21:38:35 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2000-03-27 21:38:35 +0000
commit8d1b3828fa62900465357241711755512672361a (patch)
tree6b053f76d91bc9da4947a8b1c7264034ef12d1e2 /etc/rc.network
parent25db2c5417476bb01a0ec062ebd99fe1b2a636ab (diff)
downloadsrc-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.network5
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