NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD 6.1 NFS server performances

Continuing on the NAS performances topic, now it's NFS server's turn.
First things first, I've checked both network and disk throughput, neither cause
a bottleneck:

tatooine is the client
coruscant is the server

$ iperf -c coruscant -p 2828 -t 10
Client connecting to coruscant, TCP port 2828
TCP window size: 43.8 KByte (default)
[  3] local port 51371 connected with port 2828
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  1.06 GBytes   908 Mbits/sec

$ dd if=/dev/zero bs=1024K count=1000 | nc -v coruscant 2828
Connection to coruscant 2828 port [tcp/*] succeeded!
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 9.27363 s, 113 MB/s

Gigabit link, all clear.

Now using NFS:

$ dd if=/dev/zero bs=1024K count=1000 >Desktop/nfs@coruscant/imil/tmp/test
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 51.8476 s, 20.2 MB/s

I know, right? And yes results are identical with differents bs values.

I've tried a bazillion NFS options on the clients (TCP, UDP, {r,w}size from 8192
to 64k...), tried many OSes as a client, the NFS results are consistent,
always between 20 and 30MB/s.
NFS server is started via rc.d with the following rc.conf variables:

nfsd_flags="-6tun 8"

And yes I tried increasing or reducing thread number.

/etc/exports is pretty simple:

/export -alldirs -noresvport -maproot=root:wheel -network

I've read an extensive number of "NetBSD NFS server performances" posts here,
applied every suggestion without any luck, any idea would be highly appreciated.


Emile `iMil' Heitor * <imil@{,,}>
            |        | ASCII ribbon campaign ( )
            |  |  - against HTML email  X
            |        |              & vCards / \

Home | Main Index | Thread Index | Old Index