delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/02/13:45:21

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <383c8b44a088dad09a0b77d3299feda7.squirrel@www.webmail.wingert.org>
In-Reply-To: <20100602080626.GV16885@calimero.vinschen.de>
References: <efe8a37b2e4466daa7b6eb1aa610c3d7 DOT squirrel AT www DOT webmail DOT wingert DOT org> <20100530170747 DOT GA8605 AT ednor DOT casa DOT cgf DOT cx> <f460895a8fc53da26cb91259a4005da2 DOT squirrel AT www DOT webmail DOT wingert DOT org> <4C03D6C5 DOT 4050004 AT x-ray DOT at> <80373222dd5d43b134a5ede7036e7674 DOT squirrel AT www DOT webmail DOT wingert DOT org> <20100602080626 DOT GV16885 AT calimero DOT vinschen DOT de>
Date: Wed, 2 Jun 2010 10:46:03 -0700
Subject: Re: Cygwin Performance and stat()
From: "Christopher Wingert" <mailbox AT wingert DOT org>
To: cygwin AT cygwin DOT com
User-Agent: SquirrelMail/1.4.20
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Thanks for the pointer, I just gave it a whirl, it actually didn't make
much of a difference.

I am going to start looking into making a patch.

Chris



> On Jun  1 14:42, Christopher Wingert wrote:
>> I think there are a lot of use cases where the extra information (ACL
>> information *I assume* is the majority of the problem) is unnecessary.
>> For most of the applications filename, size, and the three dates are all
>> that is necessary.  So cygwin stat is overkill.  So if I can tell the
>> emulation layer (via an environment flag) or the actually utility
>> (bash/ls/make/find/du) via a command line switch, I think I can save a
>> lot
>> of time waiting.
>>
>> Just to highlight how bad this problem is.  I have a network drive with
>> 681 sub directories and approximately 90k files.  A time comparison for
>> getting directory information as follows:
>>
>> *DOS "dir /s" takes 17 seconds.
>> *Cygwin "ls -lR" takes 5950 seconds (that's almost two hours).
>> *msls -lR takes 55 seconds.
>> *myls (see code below) takes 7 seconds.
>>
>> Each test was done twice and after a reboot to make sure there was no
>> caching involved.
>>
>> To be clear, Cygwin ls is 850X slower.
>
> Did you try to mount the network drive with the "noacl" mount option?
> That skips requesting the owner/group information.
>
>
> Corinna
>
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Project Co-Leader          cygwin AT cygwin DOT com
> Red Hat
>
> --
> 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
>
>



--
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