X-Spam-Check-By: sourceware.org From: "Gary R. Van Sickle" To: 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: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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/