delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/28/03:09:51

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,POKER_BODY,RP_MATCHES_RCVD,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <503C6E75.1020101@malth.us>
Date: Tue, 28 Aug 2012 00:08:37 -0700
From: "Gregory M. Turner" <gmt AT malth DOT us>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
CC: Aharon Robbins <arnold AT skeeve DOT com>
Subject: Re: stuff running slowly
References: <201208260803 DOT q7Q83kme006060 AT freefriends DOT org> <503A8AA2 DOT 9090102 AT drmikehenry DOT com> <201208280628 DOT q7S6SThf013003 AT skeeve DOT com>
In-Reply-To: <201208280628.q7S6SThf013003@skeeve.com>
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 8/27/2012 11:28 PM, Aharon Robbins wrote:
> Michael,
>
> Thanks for your note. I understand that process creation on Windows
> is slower than on Linux. But what I'm seeing is off by a few orders of
> magnitude.  Cygwin on Windows 7 on a Sandy Bridge Core i5 with 4 Gig of
> memory is PAINFULLY slower than even my 7 year old Power PC Macbook G4
> running Mac OS X 10.5 with only .75 G of RAM.  Something is definitely
> wrong.
>
> The total
>
> 	./bootstrap.sh && configure && make && make check
>
> process takes close to 45 minutes!  On Linux, it takes under one minute.
> On my Mac, under 5 minutes.
>
> Short of "remove and reinstall", is there anything I should look for?

That's only one order of magnitude :P  But I'm guessing that's small 
consolation.

There is one thing you can look for, and that's anything cluttering up 
your process creation, uh, process, so to speak.

BLODA apps (see http://cygwin.com/faq/faq.using.html#faq.using.bloda) 
are the likeliest culprits and also they will give you more grief later.

By extension, any software that wants to "hook APIs" by means of DLL 
"injection" hacks is going to cause problems (i.e.: I would guess, 
something like Dragon NaturallySpeaking, although I don't know if that's 
already a BLODA -- not singling that particular app out for any reason, 
just an example.)

If it "magically" changes the way Windows works, or if it is designed to 
prevent you from doing things (i.e.: video games, poker clients, etc, 
that have built-in anti-cheating rootkits), it probably is bad for cygwin.

Also possible is that rebasing your cygwin installation, cleanly, with 
no processes running, will allow cygwin to do less gymnastics and get 
better results.

At the end of the day, however, it may simply be that the particulars of 
the program you are trying to build are just not cygwin-friendly and 
you'll never get anywhere near the performance you want. 
Cross-compiling in an emulator might work better if you need it to go fast.

-gmt

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