X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 11222385841A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1680546925; bh=cCYiPVtPdK+Y9nvCrng0jEeUbpjvuDbrq+xcqkKidV0=; 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=gkDuQ6YuDpMXiIaGXK6u294MxM22TPoNY/sSZ1Fzbup2VjHfJF5Q12CrufezszVdY GKckUOI8CJ73kxglPyrGu4XkAN0NtDX6FTWC4ECpBndiNl1rp7T7TPoluMgEKlFsat G3lFodVWd72mKuUwK8jVromZNN16YJOlxlink0xs= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 647D23858D39 X-Authority-Analysis: v=2.4 cv=J8G5USrS c=1 sm=1 tr=0 ts=642b1c46 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=Xkt_UzwOPzhCMFejU8IA:9 a=QEXdDO2ut3YA:10 a=sRI3_1zDfAgwuvI8zelB:22 Message-ID: Date: Mon, 3 Apr 2023 12:34:45 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: Cygwin starts take long since march. Three minutes to prompt. Content-Language: en-CA To: cygwin AT cygwin DOT com References: <5e891786-ad67-050d-b8c0-aeb250d5303c AT bfs DOT de> <921a8ae6-b272-56b1-abfa-8ce662caaefc AT cs DOT umass DOT edu> <0c114a30-b97d-6175-8bae-eb3767d129a1 AT bfs DOT de> Organization: Inglis In-Reply-To: <0c114a30-b97d-6175-8bae-eb3767d129a1@bfs.de> X-CMAE-Envelope: MS4xfIHGrHky0FPDjqjTvqoM7mOehDvvITnNkSDAz7lyY+o8Tf+nB0fAJ/nIi2EJzmW8FudGTStnSowV5oE9GkJoJnDVLz2+HmOxU1ZTVw0nL1VDUn3NvDNo Nxh/o0skxGELqcF49JF/ergDmOywEMOmNqByvsklWIhgUXHFUNYypakOkOlLCrotbC1FMEbr89dDKQtbO87lHacWjjIwG7hbwZA= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis , Thomas Schweikle Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 333IZmg6014271 On 2023-04-03 10:10, Thomas Schweikle via Cygwin wrote: > > > Am Mo., 03.Apr..2023 um 17:48:03 schrieb Brian Inglis via Cygwin: >> On 2023-04-03 08:59, Thomas Schweikle via Cygwin wrote: >>> Am Mo., 03.Apr..2023 um 16:47:42 schrieb Eliot Moss: >>>> On 4/3/2023 10:38 AM, Thomas Schweikle via Cygwin wrote: >>>>> Cygwin shell takes about three minutes until the prompt is shown. Any idea >>>>> how to find out the cause? >> >>>> I think the most common thing in the past had to do with >>>> probing remote mounts.  You could try pruning paths and >>>> see what happens, or adjusting mount parameters. >> >>> Mounts are: >>> $ cat /proc/mounts >>> C:/cygwin/bin /usr/bin ntfs binary,auto 1 1 >>> C:/cygwin/lib /usr/lib ntfs binary,auto 1 1 >>> C:/cygwin / ntfs binary,auto 1 1 >>> C: /cygdrive/c ntfs binary,posix=0,user,noumount,auto 1 1 >>> G: /cygdrive/g netapp binary,posix=0,user,noumount,auto 1 1 >>> L: /cygdrive/l netapp binary,posix=0,user,noumount,auto 1 1 >>> M: /cygdrive/m netapp binary,posix=0,user,noumount,auto 1 1 >>> O: /cygdrive/o netapp binary,posix=0,user,noumount,auto 1 1 >>> P: /cygdrive/p netapp binary,posix=0,user,noumount,auto 1 1 >>> T: /cygdrive/t netapp binary,posix=0,user,noumount,auto 1 1 >>> V: /cygdrive/v netapp binary,posix=0,user,noumount,auto 1 1 >>> W: /cygdrive/w netapp binary,posix=0,user,noumount,auto 1 1 >>> X: /cygdrive/x netapp binary,posix=0,user,noumount,auto 1 1 >>> Y: /cygdrive/y netapp binary,posix=0,user,noumount,auto 1 1 >>> Z: /cygdrive/z netapp binary,posix=0,user,noumount,auto 1 1 >> >>> I've read somewhere noacl should be given for these mounts. Could not find >>> it, even with a fresh installed cygwin on a fresh windows. >> >>> Trying to reset acls to defaults for "C:\cygwin" gives lots of "access >>> denied" errors, even if running as "Administrator" from an elevated shell. >>> Tried both "cmd.exe" and "powershell.exe". Both did not allow to change acls. >> >>> Seems as if "C:\cygwin" has lost ownership an some acls. Any idea to get them >>> back in place for the whole tree? >> >> Should not need anything special: >> >> $ ls -dl / && getfacl / && icacls `cygpath -m /`    # sanitized: >> drwxr-xr-x 1 $USER None 0 Mar 16 18:57 / >> >> # file: / >> # owner: $USER >> # group: None >> user::rwx >> group::r-x >> other::r-x >> default:user::rwx >> default:group::r-x >> default:other::r-x >> >> C:/.../cygwin64 $HOSTNAME/$USER:(F) >>                  $HOSTNAME/None:(RX) >>                  Everyone:(RX) >>                  CREATOR OWNER:(OI)(CI)(IO)(F) >>                  CREATOR GROUP:(OI)(CI)(IO)(RX) >>                  Everyone:(OI)(CI)(IO)(RX) >> >> Successfully processed 1 files; Failed processing 0 files > > $ ls -dl / && getfacl / && icacls `cygpath -m /` > drwxr-xr-x 1 SYSTEM SYSTEM 0 Mar 23 13:44 / > # file: / > # owner: SYSTEM > # group: SYSTEM > user::rwx > group::r-x > other::r-x > default:user::rwx > default:group::r-x > default:other::r-x > > C:/cygwin NT-AUTORITÄT\SYSTEM:(F) >           NT-AUTORITÄT\SYSTEM:(RX) >           Jeder:(RX) >           ERSTELLER-BESITZER:(OI)(CI)(IO)(F) >           ERSTELLERGRUPPE:(OI)(CI)(IO)(RX) >           Jeder:(OI)(CI)(IO)(RX) > > 1 Dateien erfolgreich verarbeitet, bei 0 Dateien ist ein Verarbeitungsfehler > aufgetreten. > > Is this ok? Not missing "Administrator"? Should not matter - depends on your setup. >> Those kinds of delays are often AD lookup for domain users and groups: >> see /etc/nsswitch.conf for settings, and consider running cygserver at system >> or Cygwin startup to preload and cache the info. > > $ cat /etc/nsswitch.conf > # /etc/nsswitch.conf > # > #    This file is read once by the first process in a > #    Cygwin process tree. > #    To pick up changes, restart all Cygwin processes. > #    For a description see https://cygwin.com/cygwin-ug- > #    net/ntsec.html#ntsec-mapping-nsswitch > # > # Defaults: > # passwd:   files db > # group:    files db > # db_enum:  cache builtin > # db_home:  /home/%U > # db_shell: /bin/bash > # db_gecos: > > It is at defaults. Perhaps read and change to suit your setup, and run cygserver: advantageous if you run a lot of Cygwin processes, or run many processes from cmd/Windows, not under a Cygwin mintty/shell process tree, where the top parent takes the hit. -- 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