From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25398 invoked by alias); 17 Aug 2015 20:55:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 25390 invoked by uid 89); 17 Aug 2015 20:55:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,URI_HEX autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 17 Aug 2015 20:55:20 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id EE4ECA807C8; Mon, 17 Aug 2015 22:55:17 +0200 (CEST) Date: Mon, 17 Aug 2015 20:55:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: commands spends time in cygheap_user Message-ID: <20150817205517.GI17917@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20150810160150.GD13029@calimero.vinschen.de> <1439380764318-120458.post@n5.nabble.com> <20150812144754.GJ13029@calimero.vinschen.de> <1439560143628-120519.post@n5.nabble.com> <20150814154832.GK28349@calimero.vinschen.de> <20150814202007.GM28349@calimero.vinschen.de> <20150815115429.GS28349@calimero.vinschen.de> <1439728500518-120553.post@n5.nabble.com> <20150817080703.GC25127@calimero.vinschen.de> <20150817081337.GF25127@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3Gf/FFewwPeBMqCJ" Content-Disposition: inline In-Reply-To: <20150817081337.GF25127@calimero.vinschen.de> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-08/txt/msg00292.txt.bz2 --3Gf/FFewwPeBMqCJ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1567 On Aug 17 10:13, Corinna Vinschen wrote: > On Aug 17 10:07, Corinna Vinschen wrote: > > On Aug 16 05:35, mku wrote: > > > I changed cygwin1.dll to Version 2.2.1 and got the results shown in t= he > > > attached log file ( > > > cygwin-time-lag.txt > > > ). > > > I'm sorry to say that the problem has not disappeared with that patch. > >=20 > >=20 > > Too bad, I thought skipping the SID<->uid mapping per RFC 2307 is the > > culprit. >=20 > s/is the culprit/fixes the problem. >=20 > >=20 > > Are you sure your /etc/nsswitch.conf is set to > >=20 > > passwd: files > > group: files > >=20 > > Can you print it out, please? > >=20 > > I'll try to reproduce this again in the next few days. I managed to reproduce the issue and I think I found the actual problem here. When trying to create the supplementary group list of the current user, Cygwin called LookupAccountSids indiscriminately. If you don't have access to your AD, this call is bound to take some time, 5 to 10 secs in my testing. I changed the code so that when "group: db" is set in /etc/nsswitch.conf it will only utilize /etc/group to fetch group information. I uploaded a new developer snapshot containing this patch to https://cygwin.com/snapshots/ Please give it a try. For testing, just replace your current DLL with the snapshot DLL temporarily. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --3Gf/FFewwPeBMqCJ Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJV0ko1AAoJEPU2Bp2uRE+gFjgP/AthaiW7kuTLWnCMOTWO1huO uSnCQCETH5yUrLt0/rLMz+Znu5+uBJtTon738dT2xdJsoF+9Pmn5ZCIW/FGTNZek 4tsmNQ+e7h6X9n/hPRtLM1V69N1CB/hTi2QK0zb7u3S6RQxMDymh0sUiTwteD/DB lSCRMu5UEF4DXgIiw9CF4N9GiPZY4AtnLeX9FMOQSWAMVJIbJXhLk1Hv+U1Aa7RE plShRYres5LRSvbpCDgBVBPZRLDmKXoJp3Hk/rntQ1Jal9/oFxiCyPhR/Z6FUxVB YXiXfTl+TbJhJsgzYo8HTuW9p9/ucPnDJFvVxdm+y65R6ZEsBguay5SAgyWSWS38 43C4VHPvhfzUKfNHCdmLm+CS8U/M4nOnSuM0VwvIkbdp6Z86mxl4/cKeGHkwL2TV ITuVqGTvAHXxklnPMtGfVTssf0uL+mOSyH4QVGIqPI6CaXjsTabbxEerLhjLGdEB wGIU9/lYm93a1MFvx2tqS/K8+yXZB1nLiIPXCpo2l9h5hXOMWQgvWYgA42uaFcSO ih4kDkY5gN65OBI8sIarSdyvTNs9cbJ/oPvv2xwOu/6TB15s2ZVYKQSWnuiQOXOe bPDSm9R6LgPbj+fysLTwK4qOx75rpy1QwnFPYgMXf5rVasHXogfAu1lJmYdjMcgc QCj1hAYpr+KxEwFBHBwx =v+EG -----END PGP SIGNATURE----- --3Gf/FFewwPeBMqCJ--