delorie.com/archives/browse.cgi | search |
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:content-transfer-encoding | |
:mime-version; q=dns; s=default; b=yE+Icq+tgos5Ry3ZhDfNy8eRU87y/ | |
iYGir0jpayNAmsvIeX3LIsDQCo/el8j7rzSbhB8mMMAp6n+U1/FqVD7JQy0IbFfg | |
ntXQCDbVZojtd8EEYBKpLPPOpnZ1dnTUjJDp84acPwiaApzYzhxbYrjQT0Pg6PSc | |
LZSCHdTYCvTPss= | |
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:content-transfer-encoding | |
:mime-version; s=default; bh=2BhC/3zTkRF8SeC/KAhnV+2K76s=; b=xW9 | |
kgfnEiktcFaLrVtf07ZoeA3MgQEDL5ZU21NkL2i5opq5BRL6XWTvt5y0KKtQOpPf | |
HhZ1Ur6uQ//y/ZZYat678w72NZMoALiaQEttl865PYgxwfQR5yASKcoic+4cEwjP | |
gETmsubMhI1Xa/8BN3M9rN/07N8GS2beT852MDVQ= | |
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=3.7 required=5.0 tests=AWL,BAYES_50,KAM_BODY_URIBL_PCCC,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 |
X-HELO: | alln-iport-5.cisco.com |
X-IronPort-Anti-Spam-Filtered: | true |
X-IronPort-Anti-Spam-Result: | A0AGBgARy9tU/4YNJK1bgwaBLATAYIgXAoEgQwEBAQEBAXyEDAEBAQMBOkQHBAIBCBEEAQELFAkHMhQDAQUIAgQTCIgRAwkI0zoBAQEBAQEBAQEBAQEBAQEBAQEBAQEXiwyEFiY4BoMQgRQFjyWKSYsjgwaDPiKCAhyBUG+BA0F/AQEB |
From: | "Dennis Hagarty (dehagart)" <dehagart AT cisco DOT com> |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Subject: | RE: Very slow Cygwin startup on Windows 7 |
Date: | Wed, 11 Feb 2015 21:39:21 +0000 |
Message-ID: | <3FEEC3A37A0B0A48AA326075128C32EE4EE1FE44@xmb-rcd-x01.cisco.com> |
References: | <3FEEC3A37A0B0A48AA326075128C32EE4DC9F0E8 AT xmb-rcd-x01 DOT cisco DOT com> <87mw4nugdx DOT fsf AT Rainer DOT invalid> <3FEEC3A37A0B0A48AA326075128C32EE4DC9F137 AT xmb-rcd-x01 DOT cisco DOT com> <869208266 DOT 20150210030528 AT yandex DOT ru> |
In-Reply-To: | <869208266.20150210030528@yandex.ru> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id t1BLgqbb005673 |
Thanks Andrey, I'll do that. I see the purpose of the update - just the way it was documented didn't really make it clear to me that it was going to hit my DC and cause performance issues. The UID stuff doesn't really worry me too much, I was happy with the old way. But I'll use your suggestion tomorrow. Cheers Dennis -----Original Message----- From: Andrey Repin [mailto:anrdaemon AT yandex DOT ru] Sent: Tuesday, 10 February 2015 01:05 To: Dennis Hagarty (dehagart); cygwin AT cygwin DOT com Subject: Re: Very slow Cygwin startup on Windows 7 Greetings, Dennis Hagarty (dehagart)! >>> Well, nsswitch.conf was a good suggestion - I'd left it as the default >>> (which is empty), but I added a 'files' entry and it came good again. >>> Changing the passwd and group entries to 'files db' makes it very slow >>> again. >> >>Limit the number of entries that Cygwin fetches from the DC. Also, >>starting a cygserver would help. >> >>> Not sure what changed here, I have a very good connection to my DC, >>> but obviously something wrong here now. >> >>You may be surprised at how slow a DC really can be when it sees some >>load, regardless of connection speed when you try to fetch several >>thousand entries. If I were to try a 'mkpasswd -d' on our DC I'd >>usually have to wait about an hour with very little network traffic to >>show (the resulting file would be about 4MiB). >> >> >>Regards, >>Achim. > Thanks Achim - I've recreated my passwd and group files to be sure. > I checked some domain lookups and they take a second or two for each entry - quite slow. > So, I'll leave nsswitch where it is for now and I've started cygserver. If you are accepting suggestions, and up for some experimentation, try this: # getent passwd $(id -u) > /etc/passwd # getent group $(id -G) > /etc/group # echo -e "#\npasswd: files db\ngroup: files db\n" > /etc/nsswitch.conf and start bash without cygserver running. Just for test. The idea is to have "your" groups in files so that in simple case of (just startup" Cygwin don't have to talk to DC all too much. If at all. You'd still need to run cygserver to benefit from long-time caching, though. > But I'm just wondering how this failed after I updated - I was using it > successfully 30 mins previously. > I've had it configured this way for years. That was the sole point of the update. :) No, no. Not the snail's speed, ofc. But the more direct connection of Cygwin to the native security environment. File ACL's included. -- WBR, Andrey Repin (anrdaemon AT yandex DOT ru) 10.02.2015, <02:54> Sorry for my terrible english... -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |