[olug] nfs2 or nfs3?

VincentR vincentr at cox.net
Thu Feb 21 03:15:13 UTC 2002


It turns out that I am using nfs3.
Here's a line from mount -v when mounting it:
fse2:/pub on /mnt/fse2 type nfs (rw,noatime,nfsvers=3,rsize=8192,wsize=8192,soft,udp,lock,addr=10.10.10.203)
This is from v /proc/mounts:
fse2:/pub /mnt/fse2 nfs rw,noatime,v3,rsize=8192,wsize=8192,soft,addr=fse2 0 0
Here's /proc/fs/nfs/exports on the nfs server:
/pub    10.10.10.200(rw,no_root_squash,async,wdelay) # 10.10.10.200

The new system I'm building is only half as fast as the old one when writing data.  It's the same when reading.  The nfs
configuration is identical on both systems.
I've tried optimizing many things in proc.  I've even recompiled the kernel with nfs built in and 32K max wsize in
.../nfsd/const.h.  I've tried every combination of things, different r/wsizes, mount options, etc...
The new system should be faster in every aspect.  It has dual P3 800Mhz, 1GB Reg./ECC SDRAM, SCSI 160.  The old system
(fse) is just a single P3 600, 512MB SDRAM and ide drives.
I've tested the new one with bonnie and the disks get 79MB throughput, so that's not the bottleneck.  The network isn't
the problem either,  The difference between the two are 2.2.14->2.4.9smp kernel and ext3.
I remounted the nfs share as ext2 and tested all journalling modes for ext3 and had the same results.

FYI, I'm testing with this bit of script:
BS="4 8 16"
CNT1=4096
for b in `echo $BS`; do
        KB=$(( $b * $CNT1 ))
        MB=$(( $KB / 1024 ))
        echo; echo "Writing "$MB"MB in "$b"K blocks on FSE2"
        touch /mnt/fse2/delete.me; sleep 2
        time dd if=/dev/zero of=/mnt/fse2/delete.me bs="$b"k count=$CNT1 2>/dev/null | grep elapsed
        echo; echo "Reading "$MB"MB in "$b"K blocks on FSE2"
        ls -lh /mnt/fse2/delete.me; sleep 2
        time dd if=/mnt/fse2/delete.me of=/dev/null bs="$b"k 2>/dev/null | grep elapsed
        rm -f /mnt/fse2/delete.me
done


----- Original Message -----
From: "Phil Brutsche" <phil at giedi.obix.com>
To: <olug at bstc.net>
Sent: Tuesday, February 19, 2002 11:48 PM
Subject: Re: [olug] nfs2 or nfs3?


> A long time ago, in a galaxy far, far way, someone said...
>
> > Does anyone know how to tell is a nfs client is using nfs2 or nfs3?
>
> cat /proc/mounts
>
> I have a line like this for a mount between two machines running kernel
> 2.4 & Debian woody:
>
> giedi:/home on /giedi/home type nfs
> (rw,nosuid,nodev,rsize=8192,wsize=8192,addr=192.168.0.2,user=phil)
>
> > From what I've read, the default behavior is to use nfs3 if it's
> > available.  I can see it's available with rpcinfo -p host, but how can I
> > confirm that the client is using it from the server?
>
> You mean besides tcpdump :)  No, sorry
>
> > Can anyone share some tips for increasing the performance of a Linux NFS
> > server?
>
> Increase the rsize & wsize (read size & write size) values will increase
> throughput - 8192, like I have above, is what's recommended.
>
> Have you been able to determine that the bottleneck really is in software?
> 'Cause otherwise, I can name a few hardware changes that will definitely
> help.
>
> --
>
> Phil
>
>
> -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
>
> For help contact olug-help at bstc.net - run by ezmlm
> to unsubscribe, send mail to olug-unsubscribe at bstc.net
> or `mail olug-unsubscribe at bstc.net < /dev/null`
> (c)2001 OLUG http://www.olug.org
>
> -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
>


-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

For help contact olug-help at bstc.net - run by ezmlm
to unsubscribe, send mail to olug-unsubscribe at bstc.net
or `mail olug-unsubscribe at bstc.net < /dev/null`
(c)2001 OLUG http://www.olug.org

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_




More information about the OLUG mailing list