From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by sourceware.org (Postfix) with ESMTPS id E50A43858D1E for ; Mon, 26 Jun 2023 14:45:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E50A43858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-5768a7e3adbso36867487b3.0 for ; Mon, 26 Jun 2023 07:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687790737; x=1690382737; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=FsitomSAgJd0OnwSaYuKHrEcUjUFylSNYLwMTxr56xA=; b=qjKPNiYBZPZ6vGpUNBrbiRRxk70O3JF5hRSifjOhtasNv18u43CJNUjHOTwco5N2dt KEbqrN5xTjL4UVwaLdBKQyifC8rllceI8T0RG5Bb1DiR2V5Nf05WX3lkKe4hntlqi3Hv fuyV8sgvmgxaYHtqyHB0utqa9UiTmbyMo3tq+G3eDuZPvebgALOoqEaOEdZGNOtTv3KI t1QTBe8CssZR3Mi8f4Mowh5DYugks64h5UgRn8WC1QedWyfgLayPt+EWgFUToSSOtD9Q nPqs/uyDlxRA+nmld72uamdS1PgFUVXClx/NK1gXoWjhxixWFHGmCP+SliCMwpc8x5np 1oOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687790737; x=1690382737; 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=FsitomSAgJd0OnwSaYuKHrEcUjUFylSNYLwMTxr56xA=; b=kzl6hhtYMJMSjsrMOMg74ogWbmnVTjStvuzSBqrymDZgeGDkcVoA/6+W0SoscnO/ZZ trpsvp3S/rqHkH9SqvWXOMMdO7o9axMWnwtvlpJ9UqIitJPstxGrdTzIqEU+b6RBYe+K dGvj3Op06cKlASIYh2IUIHio86vJ1KV/vSVMffdjvCLBywhDirzvkJVK0ZCpH7Urf8dJ +ODwl6fJDSLng3n2R5vU+LlQAd6P8oZSzUZNoriRLB9BHQ76LCTAOtk6IroqlHPAK6bC TFCAICPF7kjgVDPN71CP5vUPTiK+x0Y6zXgYQP5dUF0kIwbN0La/nnpkHdp8uEtkfhiT RoRg== X-Gm-Message-State: AC+VfDwubzr6++OJHuhK7m/lJJnP01M3rr3WtnHu0GQCYt3yzzfEr1kK Jh7SBgaVQg2MGV0/qmaO3piESY6+reYx5J/hCg2g4lYgnq4= X-Google-Smtp-Source: ACHHUZ6nshQ7ZLDP48uP7HGWoHpkPbXcRLocJ0/fxwkrgt64nJnM3foqWOcM3LbeEafYpqxnS7BZlrdR6Sxgqcfb0+8= X-Received: by 2002:a25:2f85:0:b0:bd5:eeb4:55be with SMTP id v127-20020a252f85000000b00bd5eeb455bemr30083887ybv.0.1687790736982; Mon, 26 Jun 2023 07:45:36 -0700 (PDT) MIME-Version: 1.0 References: <6290e8ba-1fd7-ce25-8b0a-bd050e94c45e@Shaw.ca> In-Reply-To: <6290e8ba-1fd7-ce25-8b0a-bd050e94c45e@Shaw.ca> From: Cristi Anichitei Date: Mon, 26 Jun 2023 17:45:26 +0300 Message-ID: Subject: Re: Slow startup time on AD joined PCs To: cygwin@cygwin.com Content-Type: multipart/alternative; boundary="000000000000554b4f05ff096716" X-Spam-Status: No, score=0.2 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 List-Id: --000000000000554b4f05ff096716 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks! I'll take a look at that, but I'm not able to change what runs at system startup. It is a bit weird that multiple users (from different organizations) started to experience this after a Cygwin update. If I'm using an older version I don't have these issues on the same machine (the cygserver service does not run at system startup). Is there any change between 3.1.7 and 3.4.2 (the oldest version I was able to use in my tests) that could have caused it? =C3=8En 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 =C3=A0 ajouter not when there is no mo= re to > add > mais lorsqu'il n'y a plus rien =C3=A0 retirer but when there is no mo= re to > cut > -- Antoine de Saint-Exup=C3=A9ry > --000000000000554b4f05ff096716--