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:from:to:subject:date:message-id:references :in-reply-to:content-type:mime-version :content-transfer-encoding; q=dns; s=default; b=VDKPoPzi6POqtATb rQb8CxcxtQOsP5+R9xjD3s7wnwa7jE2OfuGvkor0kW1sCJZ63CfkEhn6K5+YqoWr JNX94tgx1Nz2ZoriJUJgHXmAP0lh9nKz4mSfLh+p9T2X3TuqkjuYvkKm989BZT2r E1RiOLtRj2wlVrHemvlm6gr+5Pk= 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:from:to:subject:date:message-id:references :in-reply-to:content-type:mime-version :content-transfer-encoding; s=default; bh=Eg/prbuaWtIv9kpC+n+j6k rYlAw=; b=WGIIjAv9Tqs+up6M34RyC7eKMue1mLClpTHvN+TVdcDEbU4U1VrH+I Lp44W9qjLIUL19RExMy9hZ5Vpg6tRan7L++91Eh24mJ/BbsLUrm/OtLdIrnn3ZHP GDQ6U6k6NSlo+gMgwqysfhKga6s1OD5KyXicWl+mrbZpk/25H8IbM= 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=0.8 required=5.0 tests=AWL,BAYES_50,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mga14.intel.com X-ExtLoop1: 1 From: "Klemm, Michael" To: "cygwin AT cygwin DOT com" Subject: RE: Strange Issue with Launching Cygwin bash and other Applications Date: Sun, 15 Feb 2015 10:13:01 +0000 Message-ID: <0DAB4B4FC42EAA41802458ADA9C2F82430060C18@IRSMSX104.ger.corp.intel.com> References: <0DAB4B4FC42EAA41802458ADA9C2F82430059DC1 AT IRSMSX104 DOT ger DOT corp DOT intel DOT com> <447063137 DOT 20150214023937 AT yandex DOT ru> In-Reply-To: <447063137.20150214023937@yandex.ru> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t1FADLdQ030805 Dear Andrey, > -----Original Message----- > From: Andrey Repin [mailto:anrdaemon AT yandex DOT ru] > Sent: Saturday, February 14, 2015 12:40 AM > > Greetings, Klemm, Michael! Yeah, "Lastname, Firstname" is the default for our little company :-). > > After the last restart (and maybe also after an update of Cygwin last > > week), the first start of bash takes hideously long (about 2 minutes). > > The same happens to programs like latexmk: > > > $ time latexmk --help > > Latexmk: This is Latexmk, John Collins, 10 January 2015, version: 4.42. > > [... more output ...] > > Report bugs etc to John Collins . > > > real 1m39.914s > > user 0m0.000s > > sys 0m0.015s > > > > I did an strace on latexmk and it seems that something is querying the > > Active Directory of my computers domain through the VPN: > > > 1047703 1224686 [main] perl 11652 pwdgrp::fetch_account_from_windows: > > line: < XXXXXXXXXXXXXXXXXXXX> > > 513639 1738325 [main] perl 11652 pwdgrp::fetch_account_from_windows: > > line: < XXXXXXXXXXXXXXXXXXXX > > > 525120 2263445 [main] perl 11652 pwdgrp::fetch_account_from_windows: > > line: < XXXXXXXXXXXXXXXXXXXX > > > 522731 2786176 [main] perl 11652 pwdgrp::fetch_account_from_windows: > > line: < XXXXXXXXXXXXXXXXXXXX > > > 518198 3304374 [main] perl 11652 pwdgrp::fetch_account_from_windows: > > line: < XXXXXXXXXXXXXXXXXXXX > > > > [I replaced the true group/account names for privacy reasons.] > > > Each query takes a little while and there are lots of them. Some even > > take longer than a second. This continues for quite a while until > latexmk finally prints its help message. > > > I have found the queried the log of cygcheck. > > > How can I convince Cygwin (or one of its components) that this is bad > idea and to avoid it? > > This is not a bad idea to query actual information from AD, instead of > using potentially stale flatfile database that was used prior to 1.7.34 > release. Yeap. I need to apologize here, because the first mail that I received after subscribing and sending my email actually contained a link to the solution. And I was too stupid to type the right key words into the search box of Google. :-( I have now changed /etc/nsswitch.conf and now everything works fine again, at the expense of not querying the AD anymore. This seems to work fine for now, but I might run into issues later. > However, it may be going a little too far in this regard. I have run mkgroup over night to see what's going on, and our company AD contains more than 22k groups (I aborted it after a while, the number might even be bigger). > You can probably > speed up the process. Please try the 1.7.35 (experimental) Cygwin version > (in setup, click on the twister against "cygwin" package until the > required version pops up). I'll try that! Thanks! > P.S. > I'm wondering, where you were last year, when the development of new > authentication scheme released with 1.7.34 was ongoing? I wasn't subscribed to this list :-). Cheers, -michael Intel GmbH Dornacher Strasse 1 85622 Feldkirchen/Muenchen, Deutschland Sitz der Gesellschaft: Feldkirchen bei Muenchen Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk Registergericht: Muenchen HRB 47456 Ust.-IdNr./VAT Registration No.: DE129385895 Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052 -- 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