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 2C2263858D33 for ; Sun, 1 May 2022 12:40:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2C2263858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=systematicsw.ab.ca Received: from shw-obgw-4004a.ext.cloudfilter.net ([10.228.9.227]) by cmsmtp with ESMTP id l5Prn6y1r43Sgl8rpnwKpW; Sun, 01 May 2022 12:40:01 +0000 Received: from [10.0.0.5] ([184.64.124.72]) by cmsmtp with ESMTP id l8ronGW4gd7Rfl8rpn2d2c; Sun, 01 May 2022 12:40:01 +0000 X-Authority-Analysis: v=2.4 cv=XrLphHJ9 c=1 sm=1 tr=0 ts=626e7fa1 a=oHm12aVswOWz6TMtn9zYKg==:117 a=oHm12aVswOWz6TMtn9zYKg==:17 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=uYT-Tk0qkVT609LjNaIA:9 a=QEXdDO2ut3YA:10 a=9c8rtzwoRDUA:10 a=sRI3_1zDfAgwuvI8zelB:22 Message-ID: <2b3204b6-4ce4-583d-f68b-37d1b47d41cd@SystematicSw.ab.ca> Date: Sun, 1 May 2022 06:40:00 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Reply-To: cygwin@cygwin.com Subject: Re: Slow cygwin executable start up Content-Language: en-CA To: cygwin@cygwin.com References: From: Brian Inglis Organization: Systematic Software In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfO8QiTiQQp18iOh2c6/A3H/au2Qcz9XZGDejDGFpWmfPckGsqKGAS3jUa+rJ9/vVaWc2Bz8dJLDKVNgJs5ugW9nnV2c4jw435eTG8W6NUqK1mL1v2bgW DkWxeZMhXpdeT6ysZD0C030/2uBXMQ8Pg68Zvsy1IM/0KA8H14wekzMAaYELbedcR3zXFBDR30wvztqzP0U3QuCur/gqjfOWMNE= X-Spam-Status: No, score=-1164.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.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: , X-List-Received-Date: Sun, 01 May 2022 12:40:03 -0000 On 2022-04-30 08:06, Cary Lewis wrote: > I am experiencing a problem with Cygwin on my Dell 7590. > > There is a multi-second delay when starting a cygwin program from a mintty > window, but only the first time that a program is run. > > E.g. if run openssl version, then sometimes there is a delay before > anything is outputted. > > If I run the command again, there is no delay. > > I ran a test with strace, and I believe the delay occurs during the initial > loading of the cygwin dlls: > > --- Process 6232 created > --- Process 6232 loaded C:\Windows\System32\ntdll.dll at 00007ffe3b4c0000 > --- Process 6232 loaded C:\Windows\System32\kernel32.dll at 00007ffe3a660000 > --- Process 6232 loaded C:\Windows\System32\KernelBase.dll at > 00007ffe38c60000 > --- Process 6232 thread 24052 created > --- Process 6232 thread 28400 created > --- Process 6232 thread 2788 created > --- Process 6232 loaded C:\cygwin64\bin\cygssl-1.1.dll at 00000003f7a60000 > --- Process 6232 loaded C:\cygwin64\bin\cygcrypto-1.1.dll at > 00000003fa540000 > --- Process 6232 loaded C:\cygwin64\bin\cygwin1.dll at 0000000180040000 > --- Process 6232 loaded C:\cygwin64\bin\cygz.dll at 00000003f7320000 > --- Process 6232 loaded C:\cygwin64\bin\cygwin1.dll at 0000000000da0000 > > Can anyone suggest why this is happening? Check the time stamp deltas between strace outputs for large gaps, especially look for and around open_shared, user_info, and initialization, e.g. $ less '+/open_shared|user_info|initialization' ../pcmanfm.strace and post them here or attach the complete strace startup output for diagnosis. > The version of cygwin is: > > $ uname -r > 3.2.0(0.340/5/3) > > By the way, I don't see this on my older PC, it's version of cygwin is: > 3.1.7(0.340/5/3) > > I don't really want to upgrade my older PC to the latest cygwin to test if > the 3.2 version is the culprit or not. > > I also upgraded from windows 10 to windows 11 on the PC experiencing the > slow start issue, and that didn't have any effect on the problem. Search the FAQ for slow e.g. https://cygwin.com/faq/faq.html#faq.using.startup-slow This sounds like large initial AD entries load delays, and/or slow remote DC replies and/or network connection, covered in the list a few years ago. The recommended solution is setting up cygserver with appropriate parameter settings to cache your AD entries across processes. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary units and prefixes, physical quantities in SI.]