From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) by sourceware.org (Postfix) with ESMTPS id 7710A3858D1E for ; Mon, 26 Jun 2023 14:12:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7710A3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4002a.ext.cloudfilter.net ([10.228.9.250]) by cmsmtp with ESMTP id Dkw4qJf4QLAoIDmx3qZfWh; Mon, 26 Jun 2023 14:12:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1687788741; bh=D1r9wza6GrCF7hMzWnJpkjw2vfmqYy5n+9p0xuEdYa4=; h=Date:Reply-To:Subject:To:References:Cc:From:In-Reply-To; b=IYWlIWa35fPuztUr+9MnlX0lrs8MUGiPc3Pw1NPfj2XINe6Mr8loYI1FKHL+IA98R xVWM9C0XW3oC0jY4QiN/GuvUqcsG/BuX7AjiMdJ2lw5152VMTMtdXvcF3i5YnRRQiK 0oCrTjkFo5UpWGOurCFVwaY3WLoSBsa3K6DQY8s+aKl8alyh3h6CgxxlKD9m2fI5r+ 5Y3FeDVBedibAjXohsT5NDD4Er94LYXMoG1O2DPxXKXVIVVjsFERhi52UInH1OFHBt Mu0BFcctTlw92rghSRLx2fGsbrgQ2oUAnikYgtoKbd5f0CcqeLn0Xe2FXCd8G6dl7m iswmmDJceXXrg== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id Dmx3q66OPyAOeDmx3qHZGZ; Mon, 26 Jun 2023 14:12:21 +0000 X-Authority-Analysis: v=2.4 cv=e5oV9Il/ c=1 sm=1 tr=0 ts=64999cc5 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=NEAV23lmAAAA:8 a=VwQbUJbxAAAA:8 a=w_pzkKWiAAAA:8 a=lsehvIpp1JmyHakYPscA:9 a=QEXdDO2ut3YA:10 a=daI9ojH3vpgA:10 a=AjGcO6oz07-iQ99wixmX:22 a=sRI3_1zDfAgwuvI8zelB:22 Message-ID: <6290e8ba-1fd7-ce25-8b0a-bd050e94c45e@Shaw.ca> Date: Mon, 26 Jun 2023 08:12:21 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Reply-To: cygwin@cygwin.com Subject: Re: Slow startup time on AD joined PCs Content-Language: en-CA To: cygwin@cygwin.com References: Cc: Cristi Anichitei From: Brian Inglis Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfD2qL79oSJRu6AO6y+7If79t8xAsh+kx8zPNohz85KIOq4/2kAgoXdxrDzzOXy5HvqEHOCVed41rADAIvMLhRcMY887BtXPdCFddIlpX6YZ0BuV08GUf nbXVt9ejIGuuP+3uIVF04Ncd++69onpAJXLB2nZhh8k+FPWaBWMzUJeDcYurSd67az59CT1xwSRJ6WfT6RooIC7iyRTeQfwVhu/duO4SdXGDquhxvLZtUxIR X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2023-06-26 00:15, Cristi Anichitei via Cygwin wrote: > This has been initially reported as a Git for Windows issue: > https://github.com/git-for-windows/git/issues/4459 > > But it has been tracked down to originate in the Cygwin project (see > https://github.com/git-for-windows/git/issues/4459#issuecomment-1580526636 > and maybe > https://github.com/git-for-windows/git/issues/4459#issuecomment-1602566700). > > Using 3.4.6.1 (from > http://mirrors.kernel.org/sourceware/cygwin/x86_64/release/cygwin/cygwin-3.4.6-1-src.tar.xz), > running any program from /usr/bin takes at least 20 seconds, for example > > $ .\ldd.exe --version > ldd (cygwin) 3.4.6 > Print shared library dependencies > Copyright (C) 2009 - 2023 Chris Faylor > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > $ Measure-Command { .\ldd.exe --help } > Days : 0 > Hours : 0 > Minutes : 0 > Seconds : 22 > Milliseconds : 552 > Ticks : 225529747 > TotalDays : 0.000261029799768519 > TotalHours : 0.00626471519444444 > TotalMinutes : 0.375882911666667 > TotalSeconds : 22.5529747 > TotalMilliseconds : 22552.9747 > > I have also tried this with 3.4.7 - same issue. > > Using 3.1.7 there is no slow down. I haven't tried any versions between > 3.1.7 and 3.4.7 yet, but I can do that. > > I'm running Windows 10 21H2 (19044.3086). https://cygwin.com/faq.html#faq.using.startup-slow Probably slow AD server or network connection, or long group membership lists, that can be ameliorated by running cygserver service at system startup, so only the first Cygwin process takes SAM/AD access hits, which are cached thereafter, and shared with all Cygwin processes on the system. Otherwise the first Cygwin process in each Cygwin process tree takes the hits, so if you are not running under Cygwin mintty terminal and/or Cygwin shell, every Cygwin process run from a Windows shell has to load all the SAM/AD info required to run the Cygwin process. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry