delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/25/10:24:41

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: mwoehlke <mwoehlke AT tibco DOT com>
Subject: Re: slow share = slow scripts?
Date: Thu, 25 May 2006 09:23:55 -0500
Lines: 35
Message-ID: <e54elr$41p$1@sea.gmane.org>
References: <e52m82$rgm$1 AT sea DOT gmane DOT org> <4474FCB5 DOT 9070906 AT cygwin DOT com>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5.0.2 (X11/20060420)
In-Reply-To: <4474FCB5.9070906@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Larry Hall (Cygwin) wrote:
> mwoehlke wrote:
>> I'm trying to run some scripts off of a slow network share, and it 
>> takes *forever* in Cygwin (it's OK in Interix).
>>
>> Looking at an strace (attached) via 'sort -n' shows a LOT of time 
>> being spent in read(), apparently just after (caused by?) an fstat(), 
>> which means this feels like an inefficiency somewhere in Cygwin's 
>> POSIX emulation. Other than "RTFSC", does anyone have any ideas what I 
>> could do (workarounds, etc) so that I can run scripts in a reasonable 
>> amount of time? (Might this have anything to do with my share being 
>> non-writable?)
> 
> Take a look at the -x, -E, and -X flags of 'mount'. Perhaps these will help
> you.

Hmm, those are mutually contradictory... guess I'll "experiment". Out of 
curiosity, what are any of these expected to do?

>> Sorry for the .bz2, but 248k seemed a little excessive :-).
> 
> And actually sending unsolicited straces to the list is discouraged.

Sorry, didn't know that... it seemed relevant.

>> Somewhat OT, why does 'strace bash -c foo > /foo_strace' generate a 
>> file with DOS line-endings? None of my mounts are 'textmode'...
> 
> 'strace' does not use cygwin1.dll.

Ah, makes sense, thanks.

-- 
Matthew
...Ruthlessly beating Windows with a hammer until it looks like POSIX.


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

- Raw text -


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