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=JfU2z0IeXSPocDW2cdwSWnRJfovLZ Uv0jRQKR0CfosiLRTEjffGDQkseTnXtrpfij6HKiIi8BpvnX84+PL62GrVqyjsQn x7g/1O5aL6fK8eHqKL8Y7i6kWj5YJLrDIgmufI5Lhtac/ENZPILyf7creNgUeF/8 LjqIYNjMfFiltQ= 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=WMXa23V0fZYL0cf/OfM0MVsSiEY=; b=l7A sCeLsIGfMaDlIjvqTr9hUi/6RPT64/e5Qu8FXVdQk6jKos3G1zpLv4UfCFcGkoC1 Zc9+2fPQpP+TqsODPmm2ujZT/ReKpHbpIdcl8Ar/CKTEz+52m0n5RB/clVn9g6x+ 4/9bH4BO0rVjhevMoujJV8V1W+lzRR3DCh+M6gYw= 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.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: alln-iport-3.cisco.com X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BRBQBhFeNU/5pdJa1bgwaBMMAdhUyCTwKBEkMBAQEBAQF8hAwBAQEDATpPAgEIIhQQMhcBDQIEG4gfCM88AQEBAQEBAQEBAQEBAQEBAQEBGosPhBcmOIMWgRQFjziKT443gz4ig26BckF/AQEB From: "Dennis Hagarty (dehagart)" To: "cygwin AT cygwin DOT com" Subject: RE: Very slow Cygwin startup on Windows 7 Date: Tue, 17 Feb 2015 10:23:36 +0000 Message-ID: <3FEEC3A37A0B0A48AA326075128C32EE4EE263B8@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> 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 t1HANsij024476 >>>> 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. Apologies for my slow response - urgent RFI's. Ok, so I reverted nsswitch to the 'files db' setting. I stopped cygserver I ran your commands to recreate /etc/passwd and /etc/group (they now contain 1 line and 3 lines respectively - before it had about 10 & 21 lines in each) To create a bash terminal window (from cmd) takes about 5-6 minutes. cmd /v:on /c "echo !TIME! & C:\cygwin64\bin\mintty.exe /bin/echo "test" & echo !TIME!" 11:01:20.27 11:06:59.78 = 5:39.51 Starting cygserver: 11:08:31.55 11:08:31.62 = 0:00.07 Stopping it again: 11:09:19.02 11:15:04.45 = 05:45.43 With the 'db' entry excluded as a control: 11:15:56.80 11:15:56.90 = 00:00.10 I reverted back to use files+db and my larger passwd and group files, turned on cygserver: 11:19:34.31 11:19:34.38 = 00:00.07 Regards Dennis -- 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