X-Recipient: archive-cygwin@delorie.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=NjTcxAkNS1L28P7a
	7WeHyLeR8rMpoYLWdIfGIE8ymryr+UI6HaEMI33j9IFbvCE+rjuwU2iGfz98T9uZ
	KSjUkP+aduCejPcZtvrSxSR3Krp2tgjTW5NIZld2WROXeMTqij7SrIgw2B66VsHP
	2qgEXejDWRaBVgRmSB58s0vcYU0=
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=yRX5q5cUPlZ/t9pad1G85X
	N0Am0=; b=VK2Mu0CdkiRYvM+Z8gGeA2XH2BhbsBqyjXvdft/Hl/FHjN+vtCu05W
	AvmvwFSkSdrio7/4UZb/GR1mm7a1UWf8WhP5vwBWJMTTppYs6N/PwLjhNINRFlNN
	oRCMCKMI5xVa/QKIds4ygucP5pG9Zt511wlObmdHadFWjeDWZENxI=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=AWL,BAYES_60,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: Wed, 18 Feb 2015 13:43:27 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <455098417.20150218134327@yandex.ru>
To: "Dennis Hagarty (dehagart)" <dehagart@cisco.com>, cygwin@cygwin.com
Subject: Re: Very slow Cygwin startup on Windows 7
In-Reply-To: <3FEEC3A37A0B0A48AA326075128C32EE4EE266FE@xmb-rcd-x01.cisco.com>
References: <3FEEC3A37A0B0A48AA326075128C32EE4DC9F0E8@xmb-rcd-x01.cisco.com>       <87mw4nugdx.fsf@Rainer.invalid>    <3FEEC3A37A0B0A48AA326075128C32EE4DC9F137@xmb-rcd-x01.cisco.com>   <869208266.20150210030528@yandex.ru>   <3FEEC3A37A0B0A48AA326075128C32EE4EE263B8@xmb-rcd-x01.cisco.com>  <435476431.20150217135513@yandex.ru>  <3FEEC3A37A0B0A48AA326075128C32EE4EE266FE@xmb-rcd-x01.cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Dennis Hagarty (dehagart)!

>>Could you please do me a favor and repeat the test with a little deviation of
>>my previous suggestion?

>>1. Remove /etc/{nsswitch.conf,passwd,group} files. (Rename, move away - by
>>your choice.)
>>2. Stop cygserver, if it is running, and any other Cygwin-related programs.
>>3. Start the mintty (elevated, if need) with write access to /etc. Supposedly,
>>this will be slow.
>>4. Make sure id -G lists all the groups you're member of.
>>The `id -znG | tr "\0" "\n"` would probably be more visible.
>>5. Repeat the steps from previous suggestion.
>>    getent passwd $(id -u) > /etc/passwd
>>    getent group $(id -G) > /etc/group
>>    printf "%s\n" "passwd: files db" "group: files db" > /etc/nsswitch.conf
>> 6. Close and restart mintty

> After I'd run the id -znG, it found 87 groups.
> Then I did this (even with cygserver running)

> ~ getent passwd $(id -u) > /etc/passwd
> ~ getent group $(id -G) > /etc/group
>       0 [main] getent 48156 transport_layer_pipes::connect: lost connection to cygserver, error = 2

That prompts to repeat the previous question from Corinna: are you by chance
remote from your DC? (VPN connection?)

> ~ wc -l /etc/group
> 58 /etc/group

> Since it seems like cygserver stopped, it took a while to complete.
> Anyway, with cygserver stopped, I ran the getent again elevated and got 83.
> ~ wc -l /etc/group
> 83 /etc/group

83 vs. 87, still not the right number.

> Not really sure how many groups I'm a member of (in another tool), but seems about right.

Anyway, how was the results after these manipulations?


--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 18.02.2015, <13:41>

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

