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
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
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
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
nfs slowness with ls - but why?

nfs slowness with ls - but why?

2006-02-14       - By Stephen J. Smoogen

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

On 2/14/06, David Spidley <david.spidley@(protected)> wrote:
> > -- --Original Message-- --
> > From: jch@(protected)
> > Sent: Tue, 14 Feb 2006 14:42:42 +0000
> > To: taroon-list@(protected)
> > Subject: Re: nfs slowness with ls - but why?
> >
> > David Spidley wrote:
> >
> > >Hello,
> > >I have a client mounting an nfs share.
> >>
> > >A simple "ls" is taking 90 seconds.
> > >If I disable sorting with "ls -f", it takes 3 seconds.
> >>
> >>

> Can I ask why /bin/ls -l remains slow (5.5 minutes), and why a perl 'glob "*"
' (3 minutes) of the directory is also slow?
>

I would look in nfsstat to see how many stats etc are done by the
commands. I am expecting that you are seeing something going on.. also
look for the number of retries etc.

Things that can kill NFS:

1) UDP NFS. Lots of resends especially over routers
2) Router/fragmentation. If the router is badly breaking up the UDP
packets and you are getting them in wrong order.. you will see slow
data.
3) Collisions on the wire. A bad switch or just using hubs will kill
NFS with lots of resends. [We had a problem that was due to a switch
in spanning tree mode. Turning it off increased our NFS from one box
to another by 300%.]
4) Bad ethernet driver options. A card in half-duplex on a switch with
duplex will show slow speeds on things that have lots of RPC calls in
them.
5) Bad cable. Least likely..

Seen all of these at any time, and they all would show where an
/bin/ls -f took no time and /bin/ls -l took forever. The best bets are
to look at ifconfig and nfsstat to see what the error counts and then
discount the above in whatever order is best




--
Stephen J Smoogen.
CSIRT/Linux System Administrator

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