From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sa-prd-fep-044.btinternet.com (mailomta26-sa.btinternet.com [213.120.69.32]) by sourceware.org (Postfix) with ESMTPS id 4713D385701A for ; Fri, 17 Sep 2021 17:40:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4713D385701A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=dronecode.org.uk Received: from sa-prd-rgout-001.btmx-prd.synchronoss.net ([10.2.38.4]) by sa-prd-fep-044.btinternet.com with ESMTP id <20210917174005.JRZY24689.sa-prd-fep-044.btinternet.com@sa-prd-rgout-001.btmx-prd.synchronoss.net> for ; Fri, 17 Sep 2021 18:40:05 +0100 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com; bimi=skipped X-SNCR-Rigid: 613006A902432CDB X-Originating-IP: [81.129.146.163] X-OWM-Source-IP: 81.129.146.163 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvtddrudehiedguddtfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpedtjeelgeehgfdvieeutedtkedvvdehvdfggeekhfehueffkeetfefgkedtteffudenucffohhmrghinhepughllhdrmhihpdgulhhlrdhithdpmhgrkhgvfhhilhgvrdgrmhenucfkphepkedurdduvdelrddugeeirdduieefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdefngdpihhnvghtpeekuddruddvledrudegiedrudeifedpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhrtghpthhtoheptgihghifihhnqdguvghvvghlohhpvghrshestgihghifihhnrdgtohhm X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.103] (81.129.146.163) by sa-prd-rgout-001.btmx-prd.synchronoss.net (5.8.716.04) (authenticated as jonturney@btinternet.com) id 613006A902432CDB for cygwin-developers@cygwin.com; Fri, 17 Sep 2021 18:40:04 +0100 Subject: Re: cygrunsrv + sshd + rsync = 20 times too slow -- throttled? To: cygwin-developers@cygwin.com References: <20210915205433.014102a9c1204687135e1417@nifty.ne.jp> <20210915220450.a96397d8b8159d9adfbdab07@nifty.ne.jp> <3ca95472-9fb2-3e62-3e28-1bd2f85bc018@cornell.edu> <99e3ac84-bee1-4abd-de9a-4ea2e7b62b61@cornell.edu> <20210916180905.5f857dad0568be96ac36cba5@nifty.ne.jp> <20210916220201.63924a67f337ea876954d7c0@nifty.ne.jp> <20210916232756.fe8c744401b6cf703b1fe993@nifty.ne.jp> <4d9e4a0d-1fb0-5fe6-5e09-27ffde8f3174@cornell.edu> <0d5488da-3238-09be-5713-2f20e374ca21@cornell.edu> <20210917050108.0427cacf58fc473c63013386@nifty.ne.jp> <20210917173130.7e62602a5ef1bb5ae952d3bb@nifty.ne.jp> <7ec3a773-a75e-23ce-e827-850443b7d832@cornell.edu> <20210918012300.3c62456e1d2091d3086d1e69@nifty.ne.jp> From: Jon Turney Message-ID: <4e8a78e1-597f-0633-320d-c1b97d400b30@dronecode.org.uk> Date: Fri, 17 Sep 2021 18:39:44 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1190.1 required=5.0 tests=BAYES_00, BODY_8BITS, FORGED_SPF_HELO, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=no 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-developers@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component developers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2021 17:40:08 -0000 On 17/09/2021 18:08, Ken Brown wrote: > On 9/17/2021 12:23 PM, Takashi Yano wrote: >> On Fri, 17 Sep 2021 07:16:03 -0400 >> Ken Brown wrote: >>> Sorry, I was unclear.  The pop-up wasn't saying that mintty needs >>> libgcc_s_sjlj-1.dll; it was saying that strace needs it.  Even >>> 'strace -h' >>> causes that pop-up to appear.  In order to get strace to run, I have >>> to copy >>> libgcc_s_sjlj-1.dll and libwinpthread-1.dll to my CWD.  Then I run >>> strace on >>> mintty and it starts up instantly, and the strace output shows both >>> of those >>> libs being loaded. >>> >>> One other thing I should mention is that for my testing, I did a >>> complete >>> install of the cygwin package (as produced by cygport), not just >>> cygwin1.dll. >>> My cygport file is attached. >>> >>> I have a feeling that something is wrong with my 32-bit installation, >>> perhaps as >>> a result of prior testing.  I'm going to start fresh with a new 32-bit >>> installation and see what happens. >> >> I can reproduce your problem by replacing cygwin-console-helper.exe >> to newly build one. >> >> With cygwin-console-helper.exe of cygwin 3.2.0, >> ldd /bin/cygwin-console-helper.exe shows >>          ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x77460000) >>          KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL >> (0x76ef0000) >>          KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll >> (0x75f10000) >>          msvcrt.dll => /cygdrive/c/WINDOWS/System32/msvcrt.dll >> (0x75640000) >> >> However, with newlib-built one, >> ldd /bin/cygwin-console-helper.exe shows >>          ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x77460000) >>          KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL >> (0x76ef0000) >>          KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll >> (0x75f10000) >>          msvcrt.dll => /cygdrive/c/WINDOWS/System32/msvcrt.dll >> (0x75640000) >>          libgcc_s_sjlj-1.dll => not found >> >> It seems to depend on libgcc_s_sjlj-1.dll and libwinpthread-1.dll. >> >> It seems that the tools under winsup/utils/mingw get dynamically linked >> while old ones are statically linked. > > This even happens on 64 bit for at least one tool... > > $ ldd /bin/cygcheck.exe >         ntdll.dll => /c/WINDOWS/SYSTEM32/ntdll.dll (0x7ff8046b0000) >         KERNEL32.DLL => /c/WINDOWS/System32/KERNEL32.DLL (0x7ff802e60000) >         KERNELBASE.dll => /c/WINDOWS/System32/KERNELBASE.dll > (0x7ff801f30000) >         ADVAPI32.dll => /c/WINDOWS/System32/ADVAPI32.dll (0x7ff802d80000) >         msvcrt.dll => /c/WINDOWS/System32/msvcrt.dll (0x7ff803a90000) >         sechost.dll => /c/WINDOWS/System32/sechost.dll (0x7ff803e20000) >         RPCRT4.dll => /c/WINDOWS/System32/RPCRT4.dll (0x7ff803b30000) >         PSAPI.DLL => /c/WINDOWS/System32/PSAPI.DLL (0x7ff803a70000) >         USER32.dll => /c/WINDOWS/System32/USER32.dll (0x7ff8030c0000) >         win32u.dll => /c/WINDOWS/System32/win32u.dll (0x7ff802540000) >         GDI32.dll => /c/WINDOWS/System32/GDI32.dll (0x7ff803030000) >         gdi32full.dll => /c/WINDOWS/System32/gdi32full.dll > (0x7ff802400000) >         msvcp_win.dll => /c/WINDOWS/System32/msvcp_win.dll > (0x7ff802200000) >         ucrtbase.dll => /c/WINDOWS/System32/ucrtbase.dll (0x7ff802600000) >         WININET.dll => /c/WINDOWS/SYSTEM32/WININET.dll (0x7fffea2e0000) >         zlib1.dll => not found > > ...but not for all... > > $ ldd cygwin-console-helper.exe >         ntdll.dll => /c/WINDOWS/SYSTEM32/ntdll.dll (0x7ff8046b0000) >         KERNEL32.DLL => /c/WINDOWS/System32/KERNEL32.DLL (0x7ff802e60000) >         KERNELBASE.dll => /c/WINDOWS/System32/KERNELBASE.dll > (0x7ff801f30000) >         msvcrt.dll => /c/WINDOWS/System32/msvcrt.dll (0x7ff803a90000) > > Are we just missing AM_LDFLAGS containing "-static" in > winsup/utils/mingw/Makefile.am?  But why is this just affecting some Yes, it seems I missed that when doing the automake conversion. Apologies for the inconvenience. > tools, and why the difference between 32 bit and 64 bit? I believe that on 64-bit, SEH exception handling is being used, which doesn't have a personality DLL.