X-Spam-Check-By: sourceware.org
From: "Gary R. Van Sickle" <g.r.vansickle@worldnet.att.net>
To: <cygwin@cygwin.com>
Subject: RE: slow share = slow scripts?
Date: Wed, 24 May 2006 18:38:43 -0500
Message-ID: <003101c67f8b$322cdb20$020aa8c0@DFW5RB41>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <e52m82$rgm$1@sea.gmane.org>
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

> From: mwoehlke
> 
> 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.

Cygwin's fstat() is slow.  That's a known situation brought on by the POSIX
definition of the function.  Fstating stuff across a slow link is simply
going to exacerbate the problem.

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

The obvious is to copy everything to a fast (preferably local) drive/share
and do your business there, if that's possible.  It might be a win for you
even if you did a copy-to-local/modify/copy-back sort of deal, depends on
the situation.

-- 
Gary R. Van Sickle
 



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

