delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/15/18:51:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <42604570.30804@roboros.com>
Date: Sat, 16 Apr 2005 00:51:28 +0200
From: =?ISO-8859-1?Q?Robert_=D6gren?= <lists AT roboros DOT com>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Slow shell script execution on Cygwin
References: <425EF653 DOT 5000102 AT roboros DOT com> <425EFB09 DOT DECFA673 AT dessent DOT net>
In-Reply-To: <425EFB09.DECFA673@dessent.net>
X-IsSubscribed: yes

Brian Dessent wrote:
>>My questions for you:
>>1. Do these numbers seem reasonable?
> 
> Yes, unfortunately.  Heavy fork()-exec() based scripts just take
> forever.

Ok.

>>2. Is there anything (apart from cross-compiling on Linux :) ) that can
>>be done to increase script execution speed?
> 
> You can try mounting your /usr/bin as cygexec.  The manpage for mount
> has some information.  From my understanding, the way this works is that
> when a Cygwin process goes to execute a binary, it checks the mount
> table.  If that binary is mounted on a path that is marked "cygexec" it
> assumes that it is a Cygwin binary and skips a bit of the normal
> song-and-dance, because it knows that it can just communicate directly
> with the child process via the Cygwin shared memory area after the
> process has started.  I'm not entirely sure of how much of a speedup can
> be expected, or whether it's significant or not, but it's worth testing.

Thank you for the suggestion. I tried it, and it reduced the time for a 
full make of glib by about 2 seconds, but increased the configure time 
by 2 seconds on average. Interesting...

Thanks for the reply,
Robert

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