delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/02/06/16:38:05

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.9 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_MK,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
From: "Paul Maier" <svn-user AT web DOT de>
To: <cygwin AT cygwin DOT com>
Subject: How to make "ls" as quick as a Windows "dir"?
Date: Sun, 6 Feb 2011 22:37:53 +0100
Message-ID: <99C327BE35E54B81B97E7DCAF53941A2@sulzer.de>
MIME-Version: 1.0
X-Sender: svn-user AT web DOT de
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hello,

for my cygwin installation (cygwin-1.7.7-1, downloaded 2010-11-02, on a Win=
dows 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=20
-----------------------------------------------------

/cygdrive/c/Dokumente und Einstellungen/test2/Desktop/cy>time cmd /C dir 'Q=
:\Angebot'
 Datentr=E4ger 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 /cygdri=
ve/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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019