summaryrefslogtreecommitdiffstats
path: root/etc/rc.network
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2000-03-27 21:38:35 +0000
committerdillon <dillon@FreeBSD.org>2000-03-27 21:38:35 +0000
commitd7295a1a39d1518cf454629be7cb8e3e0623831d (patch)
treef4dd9c13115dc5e1bab374059995b9003ac013fb /etc/rc.network
parent5ccef75e02afa360480c05b8d01bdd8f2abc39bc (diff)
downloadFreeBSD-src-d7295a1a39d1518cf454629be7cb8e3e0623831d.zip
FreeBSD-src-d7295a1a39d1518cf454629be7cb8e3e0623831d.tar.gz
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
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 0211181..dd60e89 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
OpenPOWER on IntegriCloud