Subject: How to tune NFS performance?
To: None <netbsd-users@netbsd.org>
From: Dave Huang <khym@bga.com>
List: netbsd-users
Date: 10/23/2000 23:02:49
I've got a NetBSD/alpha 1.5_BETA machine with fxp NIC that I'd like to
use as a NFS server for a handful of clients (probably around 3
machines). What can I do to improve the performance? Writes (from the
client to the server) in particular seem to be rather slow; with a
NetBSD/i386 1.5_BETA and vr NIC as the client, I get about
2Mbytes/second:

dd if=/dev/zero of=testfile bs=4k count=16384 gets me
67108864 bytes transferred in 31 secs (2164802 bytes/sec)

Reading is what I'd expect:
dd if=testfile of=/dev/null bs=4k
67108864 bytes transferred in 10 secs (6710886 bytes/sec)

Running the same dd write test locally on the server gets me about
22Mbytes/sec, so the disk is plenty fast; sending data over the network
with ttcp gets almost 9Mbytes/sec, so the network shouldn't be the
bottleneck either.

I've tried mounting the server with the default options, and with
-r=8192,-w=8192, but nothing changes. Any thing else I should try?
-- 
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 24 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++