Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
Couldn 't open PID file /var/run/named/named pid Permission denied
sendmail configuration on redhat
kernel 2 6 and /dev/sound/mixer not found
Promise 378 controller
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
Lotus Notes under Wine
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
/etc/security/limits conf question
Intel E/1000 driver
rpm database corrupt
Command stream end of file while reading
qla2300 modules
 
NFS Help! Terrible performance with sync, fast performance with async

NFS Help! Terrible performance with sync, fast performance with async

2006-11-21       - By Stephen John Smoogen

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

On 11/20/06, Christopher McCrory <chrismcc@(protected)> wrote:
> Hello...
>

Sorry for misparsing which Chris(topher) I was talking to.

> On Mon, 2006-11-20 at 15:06 -0700, Stephen John Smoogen wrote:
> > On 11/20/06, Christopher McCrory <chrismcc@(protected)> wrote:
> > > Hello...
> > >
> > > On Sun, November 19, 2006 1:58 am, Chris Wornell wrote:
> > > > I've got a problem that I've spent quite a bit of time on, though I'm
> > > > not an expert at NFS. In summary, operations that require meta-data
> > > > changes (such as file/directory creations/deletions), perform extremely
> > > > slow over sync, but over 10x faster using async.
> > > >
> > >
> > > The same thing happens with RHEL4; software raid and lvm/lvm2 make it
worse.
> > > I opened a support ticket with RH, but it didn't really go anywhere.
> > > I'm considering switching my NFS server to FreeBSD 6.2
> >
> > I am going to assume that you did this a couple of days ago.. as
> > opening a ticket on a Sunday nigth and expecting a resolution by
> > Monday morning is a bit tight.
>
> Actually I opened a ticket last June.  It went something like:
> Me: examples ( like below)
> RH: We replicated in lab, please do these other tests
> Me: ( busy ) figured if they can see it in their lab, why do they need
> me?  There must be lots of other people seeing the same thing.  I
> probably should have followed up.
>

yeah. The reason for usually asking for more tests is trying to figure
out what might be causing it if there are multiple ways it could be
triggered.

The problems look to be in the kernel hardware interaction. THe fact
that your system gets slower on software-raid(SR), LVM, SR+LVM, etc
shows that the NFS server is having a hard time navigating the
interactions.

To be honest, this may be a place where Linux is just going to suck.
The NFS server stuff has a lot of issues to deal with.. and reading
http://nfsworld.blogspot.com/ (which I am guessing is from Sun ) there
are a lot of places where it hasnt been optimized.


> ( Again, I was not the OP but,) here are my numbers:
> ( done on live systems with people using them so MMV )
> nfs mount opts: wsize=8192,rsize=8192,hard,tcp
> GigE connects
> NFS export is LVM2 over software raid
> lots of 15k U320 scsi drives
> with RHEL3 client and RHEL4 server
> roughly the same with RHEL5
>
> summary: untar file with overwrite takes same amount of time as copying
> a single file 10x as large.  File creation seems to be the bottleneck,
> not data transfer.
>
> Not shown, but non-raid, non-lvm filesystems are worse than single
> drives, but single drives are still painful over NFS.  e.g. "cvs co" or
> "svn co"
>
>
> # copy from NFS server to local disk: 2.1G iso
> [chrismcc@(protected) iso]$ time cp
> RHEL5-Server-20060830 (See http://ver-20060830.ora-code.com).1-SRPMS-DVD.iso /tmp/
>
> real    1m17.591s
> user    0m0.340s
> sys     0m19.680s
>
> # copy from local disk to NFS server 2.1G iso
> [chrismcc@(protected) iso]$ time
> cp /tmp/RHEL5-Server-20060830 (See http://ver-20060830.ora-code.com).1-SRPMS-DVD.iso
> RHEL5-Server-20060830 (See http://ver-20060830.ora-code.com).1-SRPMS-DVD.iso.copy
>
> real    3m25.563s
> user    0m0.140s
> sys     0m16.000s
>
> # untar from local disk to NFS server 214M uncompressed tarball
> [chrismcc@(protected) iso]$ time tar
> -xf /tmp/mysql-debug-5 (See http://bug-5.ora-code.com).0.24a-linux-i686.tar
>
> real    2m43.387s
> user    0m0.040s
> sys     0m1.890s
>
> # untar from local disk to NFS server 214M uncompressed tarball with
> overwrite
> [chrismcc@(protected) iso]$ time tar
> -xf /tmp/mysql-debug-5 (See http://bug-5.ora-code.com).0.24a-linux-i686.tar
>
> real    3m26.998s
> user    0m0.050s
> sys     0m2.300s
>
>
> ## just for comparison, async exports:
> # async iso test:
> chrismcc@(protected) async]$ time
> cp /tmp/RHEL5-Server-20060830 (See http://ver-20060830.ora-code.com).1-SRPMS-DVD.iso
> RHEL5-Server-20060830 (See http://ver-20060830.ora-code.com).1-SRPMS-DVD.iso.copy
>
> real    0m41.678s
> user    0m0.270s
> sys     0m13.380s
>
> # async tar test
> [chrismcc@(protected) async]$ time tar
> -xf /tmp/mysql-debug-5 (See http://bug-5.ora-code.com).0.24a-linux-i686.tar
>
> real    0m8.259s
> user    0m0.050s
> sys     0m1.540s
>

--
Stephen J Smoogen. -- CSIRT/Linux System Administrator
How far that little candle throws his beams! So shines a good deed
in a naughty world. = Shakespeare. "The Merchant of Venice"

--
Taroon-list mailing list
Taroon-list@(protected)
https://www.redhat.com/mailman/listinfo/taroon-list