This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Delay in "ls"


There appears to be a stochastic delay in the "ls" program.  I used bash's
time function to time how long it takes for ls to do its job (output of "ls"
suppressed):

real   m10.492s    user   0m0.030s    sys   0m0.030s
real   m 0.074s    user   0m0.030s    sys   0m0.062s
real   m 0.075s    user   0m0.046s    sys   0m0.030s
real   m 8.641s    user   0m0.046s    sys   0m0.015s
real   m 0.072s    user   0m0.030s    sys   0m0.046s
real   m 0.072s    user   0m0.030s    sys   0m0.046s
real   m 0.074s    user   0m0.046s    sys   0m0.046s
real   m 0.077s    user   0m0.045s    sys   0m0.046s
real   m10.854s    user   0m0.030s    sys   0m0.046s

It's just long enough and just often enough to be really annoying.  I have
ls aliased to alias "ls='ls -F --color'", but the delay can happen even when
I do "\ls".

I'm attaching cygcheck output and an strace of ls.

Any help of reducing or eliminating this delay would be greatly appreciated.

Thanks!
Pete

Attachment: cygcheck.out
Description: Text document

Attachment: strace.out
Description: Text document

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]