X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B769A3858410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1687862735; bh=y8G/DqqUW7Q/0Rh1BT5sB4qrPGem6TRFT5HLLQ0Ah5s=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=NItZpDwmW0glLSAanxAZwR3pIK8GTS1vegcyKqTZkg0oxSlEoxntY9BdiGD77AIY3 nVJEi5BW0qr0MPBNi4UVyHfHQqWeIRWGKnAoZiRhxcVNdNOStQDyueBAPLZ2V4g0u8 nV5vQihEYUlTq+8BeKHkWHgL3wkE9U9+aMPDSDjI= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EB9823858D28 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687862718; x=1690454718; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kr/mFJYovBfwTQ9E0/xED0bcI0++/wWLbCPyaJGWtuY=; b=EeNauRQuHbhWIpGqlTH3RCA3qIanXyuV/jjYN+IcjpEEAxPRbOuK0yXaxhMhBUxn34 KxijadKX1OW6BO1w2clAmJ7FYIMnBaEBpSPxAOZ27ATQeK+f+1FEDrj94EOmJCaxq3WM RLeV2hk2ofU3hArMkgKkXpKuqjOv91U9O7xke4bKlaF3LHGzVDGPmTc2/HqPqfcvRzjn ygoUNm9usrMTDeDvojZIstoSCG/LUTIH7kMzpruowUc9pEL5AfxmlilbpeAew5Svmogf Oxaama7tFWcA3aofC/pdFYpCJuGExzWbBCsODI6CCaw+hhPKLBtT4gs+GcKm1YAojNka mFnQ== X-Gm-Message-State: AC+VfDyoZ4Bm7vmw11r4qa4XuCzSEYqX6vCh9hHo+fMxUjuLT9N0DDtM V28KNd3rSeZxqojhIqnMKZZIe7+C7tkC3cLWKscqnGyoSlQ= X-Google-Smtp-Source: ACHHUZ7QajcMEFwBLtSEsJMd3dN4vvNgiHtk/BLoZ6yLSS6/8K39eb1DLvW32dF19XOMKv4NyoBbmWh44Bv4hMSBvkQ= X-Received: by 2002:a25:374e:0:b0:c13:34ad:6dc4 with SMTP id e75-20020a25374e000000b00c1334ad6dc4mr8460010yba.43.1687862717939; Tue, 27 Jun 2023 03:45:17 -0700 (PDT) MIME-Version: 1.0 References: <6290e8ba-1fd7-ce25-8b0a-bd050e94c45e AT Shaw DOT ca> In-Reply-To: <6290e8ba-1fd7-ce25-8b0a-bd050e94c45e@Shaw.ca> Date: Tue, 27 Jun 2023 13:45:06 +0300 Message-ID: Subject: Re: Slow startup time on AD joined PCs To: cygwin AT cygwin DOT com X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, 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 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Cristi Anichitei via Cygwin Reply-To: Cristi Anichitei Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 35RAjxfw025271 I tried the second workaround and it solved the problem for me. I'll update the GitHub issue with this and suggest that others try the same thing as well. Thanks! În lun., 26 iun. 2023 la 17:12, Brian Inglis a scris: > 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 > -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple