X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: mwoehlke <mwoehlke@tibco.com>
Subject:  Re: slow share = slow scripts?
Date:  Thu, 25 May 2006 10:43:18 -0500
Lines: 32
Message-ID: <e54jam$l0o$1@sea.gmane.org>
References:  <e52m82$rgm$1@sea.gmane.org> <4474FCB5.9070906@cygwin.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 1.5.0.2 (X11/20060420)
In-Reply-To: <4474FCB5.9070906@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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.

Thanks for the suggestion, but that was mostly counterproductive... :-)

-x -- 16s
-X -- 13s
-f -- 12s
-E -- 10s

...and I was getting 10s before, so either it isn't doing anything, it's 
making it works, or at best isn't helping enough to be useful.

Is there anything I can do about fstat()?

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

