diff options
author | dillon <dillon@FreeBSD.org> | 2000-03-27 21:38:35 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2000-03-27 21:38:35 +0000 |
commit | d7295a1a39d1518cf454629be7cb8e3e0623831d (patch) | |
tree | f4dd9c13115dc5e1bab374059995b9003ac013fb /etc/network.subr | |
parent | 5ccef75e02afa360480c05b8d01bdd8f2abc39bc (diff) | |
download | FreeBSD-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/network.subr')
-rw-r--r-- | etc/network.subr | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/network.subr b/etc/network.subr index 0211181..dd60e89 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -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 |