From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) by sourceware.org (Postfix) with ESMTPS id 647D23858D39 for ; Mon, 3 Apr 2023 18:34:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 647D23858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4004a.ext.cloudfilter.net ([10.228.9.227]) by cmsmtp with ESMTP id jMqrpoxG3uZMSjP0wpuH6F; Mon, 03 Apr 2023 18:34:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1680546886; bh=gSn++F13YhND1/gnJycoXxaGpTpParwSkQy2vhl1iNw=; h=Date:Reply-To:Subject:To:References:Cc:From:In-Reply-To; b=Dnely3R5U+r4FdJPIK/5VrLyJo/cIb9yEG5gyGKaGy5BxqG4GN6BN4d6d0PKmgsU8 DQ4Pltu4zC22+MkoB3WJDkDG/oiMxSH6ZDO3nGFqt9NM91akmpKqzewDBwpYtjmxuF Wyj1p2Suc5Icu9nja48dYFyJqzP/2EI3UHtLyYZuzcS0NT/gIuR1AVHyC3QNYfy3ho FuVVJqa51wuopaWa4lyBMWC0TIqHnjBsGU9bE3sPilKFqDC4vURW8BAAlrfHdjUBOp gMJ5mXc0P1NCyxE9lTBVlSUU0RDgM+aQAr7PrM4wN3sQaW9JxnswvkGfJMwbHBVLxH /xcw4FuFdZvYA== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id jP0vpTsHg3fOSjP0vpJAu7; Mon, 03 Apr 2023 18:34:46 +0000 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 Reply-To: cygwin@cygwin.com Subject: Re: Cygwin starts take long since march. Three minutes to prompt. Content-Language: en-CA To: cygwin@cygwin.com References: <5e891786-ad67-050d-b8c0-aeb250d5303c@bfs.de> <921a8ae6-b272-56b1-abfa-8ce662caaefc@cs.umass.edu> <0c114a30-b97d-6175-8bae-eb3767d129a1@bfs.de> Cc: Thomas Schweikle From: Brian Inglis Organization: Inglis In-Reply-To: <0c114a30-b97d-6175-8bae-eb3767d129a1@bfs.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 List-Id: 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