X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.7 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4E347D4B.3070409@gmail.com>
Date: Sat, 30 Jul 2011 14:53:15 -0700
From: Daniel Colascione <dan.colascione@gmail.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Slow performance Win7/64
References: <loom.20110727T120025-601@post.gmane.org> <j0tc8u$slo$1@dough.gmane.org> <loom.20110729T103121-380@post.gmane.org> <20110729092602.GB19240@calimero.vinschen.de> <loom.20110729T144701-436@post.gmane.org> <20110729130645.GA28223@ednor.casa.cgf.cx> <20110730210908.GA31747@ednor.casa.cgf.cx>
In-Reply-To: <20110730210908.GA31747@ednor.casa.cgf.cx>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8E7DB138BE0A9A552B18FAF8"
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

--------------enig8E7DB138BE0A9A552B18FAF8
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 7/30/11 2:09 PM, Christopher Faylor wrote:
> I've checked in a change which uses QueueUserAPC to create threads like
> the signal thread.  As everyone has noted this seems to have a salutory
> effect on the OP's test case.
>=20
> I don't entirely understand why the code which already existed in Cygwin
> to deal with the "slow performance on win7/64" didn't fix the problem but
> using QueueUserAPC seems to solve the problem so I guess won't lose too
> much sleep over this.

I must be missing something: when exactly do we enter an alertable wait sta=
te
that would allow the thread-starting user APC to be delivered? AFAICS, all =
waits
seem to be of the non-alertable variety.


--------------enig8E7DB138BE0A9A552B18FAF8
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iEYEARECAAYFAk40fU0ACgkQ17c2LVA10VsdxQCguIT6/mhGCiDt1hMyOxPFoAwQ
mZcAoNJJ8HYe2E+FSKyi4R5kHWmTlMbr
=OF8E
-----END PGP SIGNATURE-----

--------------enig8E7DB138BE0A9A552B18FAF8--
