delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/04/30/10:07:39

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DFECE3858D28
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:from:date:message-id:subject:to;
bh=pHH5K7ufhLwlmVDhwtPJsHLVTBqdufRkmbuTnHyQkzc=;
b=WxA//RFSvC9/xP3qIY44xggudU0MmzVy3gQB60TrzSL+PBQyP17b0UDAndxz1Mllm0
4hBq1Bik+H83/cKDLI1scjJoJAVy8mJR2dTarBTwv1hDdfr04QvEMFh4OWArk43dupwj
wx/j3kqrUz2C9retdgJRiy4EIhdbhT4EeEljgAFOBXRbCfDHKHlHNw/G7hBMqte3qZ0W
s/vjUzDaDfL5HPfItFcsYvWnTa9dqkWBMuEKJEsy9WwJ3QxOH6pTc380eb5TyNLCGX3/
20CgW48e6h+CeouHSxZSRuV5XUoM23+FxN/0WM9sXVy/VmsGSbd0qpsNsQ1T4zD/00r2
dRCg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
bh=pHH5K7ufhLwlmVDhwtPJsHLVTBqdufRkmbuTnHyQkzc=;
b=mqmwl/dm3s23vSNgxh7voYW6eB6E7ViZtq7kHA4jzNSxi3AdW+Ay7YJBAM8ITYUS3z
2D2TT4Gtq/UIxjNFqUFnwQHIEVxw3TrQiKGbN62PpcWq9C948R8mxEwLOJhT4DPR/KXp
9XEVobgdib1CAp2mKwzbxkN3CoEUWAfDNTitLspgK8jarrsrmcXsZzMpwzUHaRVHiXy3
5Ko9lYguxX24sHgo+qNEx03Kd5gxu4RV3LTfcj435CSgg8EpGM/ljZyAAcSvs8Ao5BlY
Vy3OdUpH6rlbMfKZnYjjsh10xm/MxZx6HESH4adxMc13WqCIO/7kEQxcPrOdEFWyY/Xr
LAzA==
X-Gm-Message-State: AOAM530J09V28s6lFccfD/1PtM06myxbCdWvwu3BVqr6dnxlW4Bt0oAJ
YxowOGUuOw1lisWk0nbiwgErY1Mw706nV6cqzoByTPSQgMqla1g=
X-Google-Smtp-Source: ABdhPJzAxOqm7YJ1CP2OecVVwWc7k3s+cj3w7wUTZyjof3TWFQvwpEmBeXUj6RvW1Dp7pjWtjUysEqWVLAExFV2/plo=
X-Received: by 2002:a05:6808:1a25:b0:325:be23:bedb with SMTP id
bk37-20020a0568081a2500b00325be23bedbmr3129022oib.180.1651327619300; Sat, 30
Apr 2022 07:06:59 -0700 (PDT)
MIME-Version: 1.0
From: Cary Lewis <cary DOT lewis AT gmail DOT com>
Date: Sat, 30 Apr 2022 10:06:48 -0400
Message-ID: <CAEF1h+XAZmeBN2QGhy=_JFz_75q-Hp4vtcGTimupmaqyL2zdXw@mail.gmail.com>
Subject: Slow cygwin executable start up
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-0.4 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 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-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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?

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.

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019