delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/11/12/05:24:47

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=j00RAIl89zUOK5RLgZx7tnlMCrlu4t1iWf/EPHdR2UWONOXmK44/Z
60v0LSEBweTFTRZg0NFm/lq+t6NboHAMB/w9bHg3KJ5SULUKL4FU2JQ7dysjRr2S
LkI/Ys3Zr366536zAHaxkpmloEIVuqOul2VRXFjNoNiobU9MBKbflM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=NEcrN/Xw2LlIAiJ7ynp7DbY21Xo=; b=JnnQPG1Zp05qEJ9QN05rLjy8p24u
8JAsSx1rfxgzlyZOpG9G1p5IaUhm7ZnhhNxG4lSJkOVtWSn+s7AtWMZozN5xHVIs
DMa8bYXmBzMyBBdT7rhwD/kyIaR+Psv4+lT5OlXQy6HwwloVf4QSnA8CZE0mH28H
okxBpvXU7BZkPgc=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Wed, 12 Nov 2014 11:24:25 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Notable performance improvement in 64-bit build
Message-ID: <20141112102425.GY2782@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <BLU404-EAS140FCBE28CEE31BC7296E69D9810 AT phx DOT gbl>
MIME-Version: 1.0
In-Reply-To: <BLU404-EAS140FCBE28CEE31BC7296E69D9810@phx.gbl>
User-Agent: Mutt/1.5.23 (2014-03-12)

--YPAu9GJT3m1iC0FS
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Nov 12 00:52, Ivan Todoroski wrote:
> Hello everyone,
>=20
> I'm just curious, has there been any special focus on performance
> improvements in the 64-bit version compared to 32-bit?
>=20
> I'm asking because I recently upgraded from 32-bit to 64-bit Cygwin, and I
> noticed that my bash prompt would show up noticeably quicker when I opene=
d a
> new Cygwin shell (I have a rather complicated ~/.profile script, so the
> delay is actually visible to the eye).
>=20
> At first I thought it was just some sort of placebo effect and I was
> imagining it, but the effect seemed so persistent that I just had to perf=
orm
> some measurements.
>=20
> What I found was that under 32-bit Cygwin my ~/.profile script is executed
> in 507ms (average of 30 runs), but under 64-bit Cygwin the exact same scr=
ipt
> gets executed in 376ms (again, 30-run average). Both measurements were do=
ne
> on the same machine with 32-bit and 64-bit Cygwin installed side by side
> (both freshly updated to their latest respective versions).
>=20
> That's a whopping 33% performance improvement!
>=20
> So I was just curious if anyone had any speculations on what exactly might
> have caused this performance increase. :)

Uhm... actually we don't know exactly either.  It is said that the WOW64
emulation may introduce a 5% penalty, but that doesn't explain 33%.  I
made some tests on my own and I had performance differences of a meager
1% and up to 83% in various different `make' scenarios, so I guess it's
not quite a safe bet to say 64 bit Cygwin is faster.  But all in all
we're rather happy with the result.

You may be interested to update to the test release 1.7.33, see
https://cygwin.com/ml/cygwin-announce/2014-11/msg00013.html

It introduces two changes, one in terms of user and group account
handling which should speed up process startup noticably, the other a
change in exception handling which should speed up the 64 bit version by
removing some code overhead per system call.

> In any case, kudos to the Cygwin developers, great job on the 64-bit buil=
d!

Thanks a lot!


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--YPAu9GJT3m1iC0FS
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUYzVZAAoJEPU2Bp2uRE+gx2sP/3s3w1GTFJ7SUPQ9dmJe0+GS
g9Zn951UgNgo5ZPTpKbhqqkKdcsuAPkhLzWI9QdMu1EIF0zseQaqf1UB6PPP3nX8
GHLYxGZyEMILUZ1Qg4TzbQmIwJcW1JIayZGmoBonAru+g7VbFYlJ6f++m/TSfOMb
mWL6xJFfEQ6anJe5spN3ya7weF7YKXQepBZIqEr6Er4Q1VUT9roCNR/kryZPfvC0
ycGQS78VioJt9jcpAF0FVBqu/SLm0sZugYrEBvo5I3rfL0skqPwn9gCmj4ScNWb/
bYxdSUy342XPAe6xoiGEqmuvFj8HI6oYhvczj3WghUVUbN2qfjAGHkONMujpt3Fl
n45J65wvD9Ohr4vDpTUbkGdIxVry/Vp1+pKnl5so9/9EwRUqWqzJkbEkBUcharHW
fAC3d5Le/0msxDUXHEMCxm7DGPFRH43ZvXLeXrBtkTOMgB+7YM0dav2e71uc/Y3a
UYaorIZkmGqkO1bFkNGDIftLNWQlxQuvdl4oZFHHuT3kcHz3zvK/4S81+cgwnBbi
jEM3ZXgjOMVu8T3V4UKrPMtQIY7+Hv0M8GhyBPGvuBtC+7SteMs7gAgH6kWP/MuS
YhIQQo4OYBr6X5GN4AQk2qBx8m9nUXwv7rKao6YL1OWcE94SRwkTPsOCGHEVwHrp
SWvU6gN6yj3ZpDdSrpgt
=XBa2
-----END PGP SIGNATURE-----

--YPAu9GJT3m1iC0FS--

- Raw text -


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