cygrunsrv + sshd + rsync = 20 times too slow -- throttled?

Takashi Yano takashi.yano@nifty.ne.jp
Fri Sep 17 16:23:00 GMT 2021


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.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>


More information about the Cygwin-developers mailing list