This is the mail archive of the
mailing list for the Cygwin project.
RE: slow share = slow scripts?
- From: "Gary R. Van Sickle" <g dot r dot vansickle at worldnet dot att dot net>
- To: <cygwin at cygwin dot com>
- Date: Wed, 24 May 2006 18:38:43 -0500
- Subject: RE: slow share = slow scripts?
> 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
Gary R. Van Sickle
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html