Dear Andrey, > -----Original Message----- > From: Andrey Repin [mailto:anrdae...@yandex.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 <jcc8 at psu.edu>. > > > 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