delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/26/16:44:51

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: Yes, hits=6.2 required=5.0 tests=AWL,BAYES_05,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-id: <503A8AA2.9090102@drmikehenry.com>
Date: Sun, 26 Aug 2012 16:44:18 -0400
From: Michael Henry <cygwin AT drmikehenry DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-version: 1.0
To: cygwin AT cygwin DOT com, arnold AT skeeve DOT com
Subject: Re: stuff running slowly
References: <201208260803 DOT q7Q83kme006060 AT freefriends DOT org>
In-reply-to: <201208260803.q7Q83kme006060@freefriends.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

On 08/26/2012 04:03 AM, arnold AT skeeve DOT com wrote:
> Running
>
> ./configure && make && make check
>
> in the gawk master branch takes close to half an hour, maybe more! On
> simlar hardware under Linux, it takes less than a minute.

I've found on my hardware that launching a new process in
Windows is very slow compared with Linux.  With a Fedora 14 host
and a Windows 7 VM using VirtualBox, I measured process launch
times under 1 ms on Linux, but nearly 100 ms on Windows.  Both
configure and make rely heavily on launching processes during
the build.  In my case, it amounted to a 7-10 factor slowdown
when building a certain project at work.  I had similar problems
when trying to launch a Bash prompt under Cygwin, since shell
scripts tend to launch a lot of processes as well.

I don't believe this problem is caused by Cygwin, at least in my
case.  I measure the same terrible process launch times using
cmd.exe and a batch file, without any Cygwin tools running.  You
might try benchmarking process launch times on your Windows and
Linux setups to see if that might be underlying your problem.

I haven't determined whether this is inherently a problem with
Windows process launching, or if something I've got installed or
mis-configured might be causing the slowdown, so treat this as a
hint rather than as publication-quality conclusions to start an
OS war on Slashdot :-)

Michael Henry


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019