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:cc:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=kS5oeJJ6kqSRd6yttTc260fRE1I4gHp1tNLQGY3kUcmhOrwPcg/z+ PLjiHN0DuLpIKJ7XTSc54pKZgUpVYxK5OSK//Ck+I9o/aw3AotIGE4mmPea5quOG soTUroPhy9w19zxdgKU8k98CHFBxqMu3FL8td2U76bzn+jCryy0wtU= 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:cc:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=Hmnhtd7bA5fmM6uyL0+kUHWuTOI=; b=I3AwdtF0KUvqxW5+mwDpHpAuuK18 kGXppBL/EcAedtXyY/zm0zcoSh78S1SM6A8+uKqQ8zLr3hEhqJkxZmFbbFNntuGp JXlx4HTWKGGl5Cg4HuobG5I5uBEiEacXl+LMODLS3WlrcgFMQsu/vDzuRRFAZanm rwFJmjXZPvBVO2w= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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: Mon, 23 Feb 2015 22:15:54 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Cc: Roger Orr Subject: Re: slow startup after upgrade Message-ID: <20150223211554.GA437@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com, Roger Orr References: <20150213085748 DOT GN7818 AT calimero DOT vinschen DOT de> <1F2D7140EF4B469B90335ECF0A5690CB AT Tamar> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="b/3kIrr+SWblMf9a" Content-Disposition: inline In-Reply-To: <1F2D7140EF4B469B90335ECF0A5690CB@Tamar> User-Agent: Mutt/1.5.23 (2014-03-12) --b/3kIrr+SWblMf9a Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Roger, On Feb 16 20:02, Roger Orr wrote: > Corinna Vinschen wrote: > > So I'd think the best way forward is to update to the > > 1.7.35-0.1 test release and report further from there.=20=20=20=20=20 >=20 > Thanks, this does help a little. However I will still be using the 'files' > setting. >=20 > Here are some results in case they're of interest. (Windows 7/64 with > cygwin/64.) >=20 > 1) Running cygwin "echo.exe" from a cmd.exe command shell >=20 > a) With passwd: files and group: files in /etc/nsswitch.conf > 0.03 - 0.4 s >=20 > b) With 1.7.34 and default /etc/nsswitch.conf >=20 > around 120s >=20 > C) With 1.7.35 and default /etc/nsswitch.conf >=20 > 4.4 - 4.6s I rewrote the function responsible for the slow startup, the one fetching all the group information for the groups in your user token. As I just wrote in my mail to Dennis Hagarty, the performance improvement should be noticable, even with /etc/nsswitch.conf only using the "db" setting for groups. The group info for a user token with 150 groups was fetched in ~50 ms rather than the ~300ms of the former code. Can you test this again with the Cygwin DLL from the latest developer snaphshot at https://cygwin.com/snapshots/ please? Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --b/3kIrr+SWblMf9a Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJU65iKAAoJEPU2Bp2uRE+g1MUP/23nbBZ88SwWet23uhgspc2B FMhdxCXvWkjCN5gxgRgC1S+MOL3N54xMLQM+bpTPcT792M7L6dVGzPqkd5K147qJ QiLsrZ4uir44X1O2XGvzbt+zce5QChGO7i8vg2zdYJNtaCiNXCtzkLNfvG78Cc/m KCE8MwsZSUD6+jFVE2bfpwirwFfdB+i7r8UrLLVKuGvPlNUWgkk8pg/t/K3ehBgI XgJ3zDsFwyNpm4lkTiOTWZNwuuMrZtRhecsgIgrofyUEvurpEmoTGk0pBm1BzvyL LXQLQX27dUZM9wY7QCpRt9uIO9pCUBZ8TCo7bzC4unSr5pPwM4jdmOAag0KAZ/Vw EiZcijFgfX2r9K2DwheGYIugWIEjUSdYCYrLdXPDjnWtRjfMWuY0SucYlcJ+w8ca B4BWlwJxvg9QjcIw/G6RICHcdFa++LyKoaZ6zLN28XwvMTRBN83AsZ5qLzqygwoY yGh4aESEdcBnlIpC2fZWNqwgMwQz8WixtgdwwbYU0piwN7b7N4RtTHifgKenv+tl M21ncWGQ83jx8dt4EBTFWObCtHd+gokgM92lsk+A6LgOZ7Y4l3pfGZ1JAXTLVvgi KeKL2KznL7DfSgWJn4R84jIHjXSotgJzCK3HDoxpvozTOIqV3ITv8IhT88r5ZOvt /xm6blx/vAduX4WCK5BF =ZgO4 -----END PGP SIGNATURE----- --b/3kIrr+SWblMf9a--