delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/06/26/10:13:27

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C41613858C2A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1687788760;
bh=D2hOR7yyoVvpvnHhyFrb7jjcrxhXXt6ulTLjgTYi9sI=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=oO74CvMYbrGcLMuGUqU5M74kG/ZdBSKCVMaa9h96pBiLbIDkOGaUKEfUWATyV3LUg
r1FxTmle5ftAntRFeYnRY+PuDDH1xGYbg3Q68V+GGSKgS2cnK1XaYqXh/qFD65OqZq
QylSd5Z4CDZGSpMnQrgN6wPA8kwBWc6w5LqUhtL4=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7710A3858D1E
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
Subject: Re: Slow startup time on AD joined PCs
To: cygwin AT cygwin DOT com
References: <CA+we9ADqrxdGa7T=2H0asjK-Lm2iExTnHWuwOun6YZX4i5ueVg AT mail DOT gmail DOT com>
Organization: Inglis
In-Reply-To: <CA+we9ADqrxdGa7T=2H0asjK-Lm2iExTnHWuwOun6YZX4i5ueVg@mail.gmail.com>
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
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT Shaw DOT ca>,
Cristi Anichitei <cristi DOT anichitei AT gmail DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 35QED6Jk010971

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

- Raw text -


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