  | | | nfs slowness with ls - but why? | nfs slowness with ls - but why? 2006-02-14 - By John Haxby
Back 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
-- Taroon-list mailing list Taroon-list@(protected) https://www.redhat.com/mailman/listinfo/taroon-list
|
|
 |