  | | | nfs slowness with ls - but why? | nfs slowness with ls - but why? 2006-02-14 - By David Spidley
Back > -- --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. >> >> > It disables a lot more than sorting. Unless you've done something to > stop it, ls is an alias for "ls --color=tty" which will do a stat(2) on > all the files. Does "/bin/ls" or "\ls" work quickly? > > >So it looks like sorting is to blame - but it isn't: >> ls > /tmp/file takes 1 second. >> > >Why? >> >> > Re-directing to a file will also turn the colour off. > > [Look at that -- I'm quite happy to use "color" for programs and scripts > but as soon as I want to use it as a word I fall back to the English > spelling and I start getting confused.] > > jch >
Ah! Excellent - you're right, the alias was causing the slow down. Thanks :)
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?
-- Taroon-list mailing list Taroon-list@(protected) https://www.redhat.com/mailman/listinfo/taroon-list
|
|
 |