public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Cristi Anichitei <cristi.anichitei@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Slow startup time on AD joined PCs
Date: Tue, 27 Jun 2023 13:45:06 +0300	[thread overview]
Message-ID: <CA+we9AA7=zdKfu7t=1oi=AODf3EfTMuRkKiyj0G7i9vQkaoNwg@mail.gmail.com> (raw)
In-Reply-To: <6290e8ba-1fd7-ce25-8b0a-bd050e94c45e@Shaw.ca>

[-- Attachment #1: Type: text/plain, Size: 2932 bytes --]

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 <Brian.Inglis@shaw.ca> 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
>

      parent reply	other threads:[~2023-06-27 10:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-26  6:15 Cristi Anichitei
2023-06-26 14:12 ` Brian Inglis
2023-06-26 14:45   ` Cristi Anichitei
2023-06-27 10:45   ` Cristi Anichitei [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+we9AA7=zdKfu7t=1oi=AODf3EfTMuRkKiyj0G7i9vQkaoNwg@mail.gmail.com' \
    --to=cristi.anichitei@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).