X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.5 required=5.0	tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Magnus Holmgren <magnushol@gmail.com>
Subject: Re: Cygwin slow on x64 systems
Date: Wed, 1 Sep 2010 17:26:54 +0000 (UTC)
Lines: 33
Message-ID: <loom.20100901T192451-70@post.gmane.org>
References: <4C7B9327.9030204@graphtech.co.il> <loom.20100831T222419-914@post.gmane.org> <loom.20100901T190726-553@post.gmane.org> <4C7E8A40.4090102@redhat.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Eric Blake <eblake <at> redhat.com> writes:

> >> I did some testing on my 64-bit Vista system, and it appears that
> >> CreateThread is the main cause.
> >
> > To test this, I removed the call to sigproc_init in dll_crt0_0 and made sure
> > it was always called in dll_crt0_1 instead. Suddenly the sigp thread started
> > executing immediately, and its initialization was complete long before
> > wait_for_sigthread was called.
> 
> Since you obviously have a patch, would you mind sharing it, rather than 
> just your conclusions from said patch?

Not quite ready for commit as is, but here it is:

Index: src/winsup/cygwin/dcrt0.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/dcrt0.cc,v
retrieving revision 1.382
diff -r1.382 dcrt0.cc
746,747c746,747
<   if (!dynamically_loaded)
<     sigproc_init ();
---
>   //if (!dynamically_loaded)
>     //sigproc_init ();
792c792
<   if (dynamically_loaded)
---
>   //if (dynamically_loaded)

  Magnus



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

