public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* How to make "ls" as quick as a Windows "dir"?
@ 2011-02-06 21:38 Paul Maier
  2011-02-07  3:10 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Maier @ 2011-02-06 21:38 UTC (permalink / raw)
  To: cygwin

Hello,

for my cygwin installation (cygwin-1.7.7-1, downloaded 2010-11-02, on a Windows XP SP 3),
the time for a "ls -l" to complete is much slower than the time for a "cmd /C dir",
although similar information gets displayed.

Does anybody know a setting, maybe a flag to "ls", to make the ls as quick as the Windows dir?


On a local drive, both, ls and Windows dir, are quite quick. The difference comes up,
when working on a slow network drive (Q:).

I took these times:


Example 1: Windows dir completes in only 13.3 seconds 
-----------------------------------------------------

/cygdrive/c/Dokumente und Einstellungen/test2/Desktop/cy>time cmd /C dir 'Q:\Angebot'
 Datenträger in Laufwerk Q: ist Data
 Volumeseriennummer: XXX

 Verzeichnis von Q:\Angebot

04.02.2011  21.10    <DIR>          .
04.02.2011  21.10    <DIR>          ..
03.02.2011  14.29           775.168 AnXXX
03.02.2011  13.50           231.936 EAXXX
28.01.2011  10.11            60.928 PrXXX
               3 Datei(en)      1.068.032 Bytes
               2 Verzeichnis(se), 880.856.702.976 Bytes frei
0.015u 0.015s 0:13.33 0.1%      0+0k 0+0io 1219pf+0w



Example 2: cygwin ls takes 53.9 seconds
---------------------------------------
For the same drive and same directory, Cygwin's ls takes 53.9 seconds,
that's 4 times as much than the Windows dir:

/cygdrive/c/Dokumente und Einstellungen/test2/Desktop/cy>time ls -l /cygdrive/q/Angebot/
insgesamt 816
---------- 1 ???????? mkgroup 775168  3. Feb 14:29 AnXXX
---------- 1 ???????? mkgroup 231936  3. Feb 13:50 EAXXX
---------- 1 ???????? mkgroup  60928 28. Jan 10:11 PrXXX
0.030u 0.077s 0:53.91 0.1%      0+0k 0+0io 2026pf+0w


Does anybody have an idea?

Thanks
Paul


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

^ permalink raw reply	[flat|nested] 8+ messages in thread
* How to make "ls" as quick as a Windows "dir"?
@ 2011-02-13 23:40 Paul Maier
  2011-02-14  3:15 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Maier @ 2011-02-13 23:40 UTC (permalink / raw)
  To: cygwin


> Im Auftrag von Larry Hall (Cygwin)
> Gesendet: Mittwoch, 9. Februar 2011 17:13

> >> Perhaps it's time for a full problem report.  See the link 
> below for
> >> specifics on what should be in such a report.
> >>
> >> http://cygwin.com/problems.html


Hi Larry,

plese find cygcheck.out attached in the mail I sent 1 minute ago named
"Blue Screen after ejecting CD". 

(I replaced my username and PC-name with <USER> and <PCNAME> in the log.)

Thanks for looking into all this.

Paul


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-02-14  3:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-06 21:38 How to make "ls" as quick as a Windows "dir"? Paul Maier
2011-02-07  3:10 ` Larry Hall (Cygwin)
2011-02-08 22:26   ` AW: " Paul Maier
2011-02-08 23:18     ` Larry Hall (Cygwin)
2011-02-09 11:31       ` AW: " Paul Maier
2011-02-09 16:12         ` Larry Hall (Cygwin)
2011-02-13 23:40 Paul Maier
2011-02-14  3:15 ` Larry Hall (Cygwin)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).