delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/09/19:36:18

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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=xRV8PCiXw99uADkS
qLKKKs3CByHJNQAy08pMxc8Wc1BBRj/8p1SUmJHXEWbwHET6Z1yWv/Rc/E0z+ATi
fUlVwjkHLcnhUqOUd8uzDoPTh3vtzmJ9vwh1mn9WMGhdnbEdBh/ES9Gp9PsVKzjo
h7YWO9Ba72djVVvascgTFVAjy0M=
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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=3J4wQzlcj3Q8IQszpRqo3C
if0Hw=; b=FcifjBYkxcutbDDOffw3CddeRZL0tshxUfN0k1DIcjS6JQgzTsGZf+
82FNlQT5aNhee5ZTGGCgr7ddZZZn/onPg6ksubxsV3gXB4aBkIHjP9Bkp7mBMiSs
gU2XNuJP4UPePD7VRMLE2GqCHULJtB0lkcueX6dsiVcU6/KbAqixM=
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=1.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_BODY_URIBL_PCCC,KAM_FROM_URIBL_PCCC,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtp.ht-systems.ru
Date: Tue, 10 Feb 2015 03:05:28 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <869208266.20150210030528@yandex.ru>
To: "Dennis Hagarty (dehagart)" <dehagart AT cisco DOT com>, cygwin AT cygwin DOT com
Subject: Re: Very slow Cygwin startup on Windows 7
In-Reply-To: <3FEEC3A37A0B0A48AA326075128C32EE4DC9F137@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>
MIME-Version: 1.0
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019