Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 2002 10:30:39 -0500
From:      Terry Todd <tlt@badger.tltodd.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD 5.0dp1 nfs server to Red Hat nfs client extremely slow
Message-ID:  <20020604103039.A11587@badger.tltodd.com>
In-Reply-To: <20020603152547.A32050@xor.obsecurity.org>; from kris@obsecurity.org on Mon, Jun 03, 2002 at 03:25:48PM -0700
References:  <20020603102416.A98405@badger.tltodd.com> <20020603152547.A32050@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 03, 2002 at 03:25:48PM -0700, Kris Kennaway wrote:
> On Mon, Jun 03, 2002 at 10:24:16AM -0500, Terry Todd wrote:
> 
> > I created a ufs file system on a 5.0dp1 FreeBSD system and exported
> > it.  One of my users complained that it was 10 times slower than
> > other systems.  I ran some tests using "dd if=/dev/zero of=somefile
> > bs=1024k count=256".  Sure enough his system took 17 minutes to
> > complete that command when writing to the nfs mounted file system
> > I had created.  He is running 7.2 Red Hat linux.  I found other RH
> > linux systems had similar times.  However, other FreeBSD and
> > Slackware systems could complete the command in 30-45 seconds.
> > Does anyone have any idea what the problem might be?  I noticed
> > the RH systems didn't have NFSv3 support.  I don't know if that
> > would cause such a drastic difference or not.
> 
> Um, well if you're comparing apples and oranges you should expect them
> to taste different.  Yes, the fact that you're using an older version
> of the NFS protocol will matter.
> 
> Kris

Here's more data:
All comparisons were done by running:
time dd if=/dev/zero of=somefile bs=1024k count=256

NFS server                NFS client             transfer time
Red Hat 2.2.16-22       Slackware 2.2.20         0m25.48s
Red Hat 2.2.16-22       FreeBSD 4.4-RELEASE      46.902824 secs
Slackware 2.2.20        FreeBSD 4.4-RELEASE      49.100937 secs
Slackware 2.2.20        Red Hat 2.2.16-22        0m40.375s
FreeBSD 5.0-DP1         FreeBSD 4.4-RELEASE      52.279700 secs
FreeBSD 5.0-DP1         Slackware 2.2.20         0m55.270s
FreeBSD 5.0-DP1         Red Hat 2.2.16-22        18m12.448s  <- 18 Minutes

I can ftp 268435456 bytes from the FreeBSD 5.0-DP1 to
the Red Hat 2.2.16-22 in 28 seconds.

Using FreeBSD 4.5-RELEASE gives the same times as 5.0-DP1.

So what gives?  I'd really like to use FreeBSD for the NFS server.
99% of the clients here are Red Hat Linux.  My understanding is
FreeBSD will handle nfs v2 or v3.  Restarting mountd with the -2
option made no difference.   The Slackware system handles both nfs
v2 and v3.  These systems are all on the same 100M ethernet switch.

Does anyone else have similar experiences?  Does anyone have a solution?

TIA,
Terry Todd


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020604103039.A11587>