From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2109.outbound.protection.outlook.com [40.107.243.109]) by sourceware.org (Postfix) with ESMTPS id BD1733858D29 for ; Fri, 17 Sep 2021 11:16:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BD1733858D29 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=cornell.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cornell.edu ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Swp4VEykSXApfSjp8a+VAusf967M9Gduuiz7tiiYsPa9AqhJ1xlyEVnpAtbEIs0zfTYtf95m6pz7XBLumrKUqyjYZMdWLN1aw661Rbels8AKpB/y7vrE/YNF2r4xD/cvdLyBMXuLTG2k6tPtn15ahiFe3V7sESfobqdFp0CJVcjsEoV/cnIEoxhWCv1GYU3SFg23cxlv6MNvjseDnDVv9qT6Q3UJLTzJ//iqNJxbMoLL5m678aPmahBcyRG8SculAwkl8YHw1CcBhXZXQO1RDRTBnKJ1DiTqhYHAtta7eeglbYRHejWTJgnf6APFQquGP6SxcFwU1PpTE4yNQaxoDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=aKDi9s4U/PS3gcfh+xIJliOL3w3UVChwDvuVNJ+6bIc=; b=cD24+2vq1J+7ADsSoS8eyrY6nc91aggBqKtDs3tTZzn8LIxcC390krZ4EGt7NVg8N/CNy6oqIXIJq2M1dv6eq0nxxP6dj0m6YjfPbrvoqJT/sO0m6YvCvZqqUimjgTcaSDCYfmx+bNDZhPGP1JIeGGTslsFsq31DaXGT2i9XdJ3/3Ke24AoU7AXVz/l4Hii97P0EAFRwElx0mCIn37tLlobsNgnd0urKCJuaE/23R3yH1oz2z8EvAS1/kP3kDSdY+puWUJB/P0u1ih4IkOeBsV6xDAZNAWQwyfo6T7e39AFFKF6N78W0c41jySQ+uhtFmHGD9y74fOxmmXv4d5mMMQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aKDi9s4U/PS3gcfh+xIJliOL3w3UVChwDvuVNJ+6bIc=; b=iq8Z+c7XFpi7NpQENZ53PfLy1mq7SUYeLZhOe7DC/Ou6MvoA9kCxn8fjOcdImr28sA7mWYxKDPiqQiJ1kaSmjb9w//TbIdfVAOP1lm8hYdyiwmecTM+9YRZeIpSzuP1sGIySQ+wTIvGwpE8XagVEWmYv1NomrpidtBw3fr9X6io= Authentication-Results: cygwin.com; dkim=none (message not signed) header.d=none;cygwin.com; dmarc=none action=none header.from=cornell.edu; Received: from BN7PR04MB4388.namprd04.prod.outlook.com (2603:10b6:406:f8::19) by BN7PR04MB5172.namprd04.prod.outlook.com (2603:10b6:408:38::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Fri, 17 Sep 2021 11:16:06 +0000 Received: from BN7PR04MB4388.namprd04.prod.outlook.com ([fe80::5113:e84a:b38a:7a66]) by BN7PR04MB4388.namprd04.prod.outlook.com ([fe80::5113:e84a:b38a:7a66%6]) with mapi id 15.20.4523.016; Fri, 17 Sep 2021 11:16:05 +0000 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> From: Ken Brown Message-ID: <7ec3a773-a75e-23ce-e827-850443b7d832@cornell.edu> Date: Fri, 17 Sep 2021 07:16:03 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 In-Reply-To: <20210917173130.7e62602a5ef1bb5ae952d3bb@nifty.ne.jp> Content-Type: multipart/mixed; boundary="------------FB66103441B7634FEFF4721E" Content-Language: en-US X-ClientProxiedBy: MN2PR10CA0016.namprd10.prod.outlook.com (2603:10b6:208:120::29) To BN7PR04MB4388.namprd04.prod.outlook.com (2603:10b6:406:f8::19) MIME-Version: 1.0 Received: from [IPv6:2603:7081:7e3f:3419:7498:180e:3338:3659] (2603:7081:7e3f:3419:7498:180e:3338:3659) by MN2PR10CA0016.namprd10.prod.outlook.com (2603:10b6:208:120::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14 via Frontend Transport; Fri, 17 Sep 2021 11:16:05 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6ed4c355-a762-4aea-d8a1-08d979cc8a88 X-MS-TrafficTypeDiagnostic: BN7PR04MB5172: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:901; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: k3QBNHFgxIDRxQO6gtF0r0nM19/jz+orpKisUhenb4ISAXRfX0Dt9yKNJI0ua49nZoFVCNNmPS/FK2yhbQ8cFC3vtDwUShi9QIdzVvfCylC2baSugNOM01dFEmCUB5VJlaWKYUi8PQDW0j62YreLN+7SN1OxLalpWOc102syGmUNMpuQjMIMf4EnOU8QgQMbHWKXwfLLKhIMm/Wd02APDsMQD0DMEaBLIacum27wbyGtfIINvF4q7xCMfAOCX3Sz4UErsKVx+8Lx5Z1u33Ac0xEtmOCduuuzmHV8P35fBJ2at51cfb2GCxQyJgf1Ym6Jz1+e4Ku26H9tCilTVOaTXHLp4CtesExv0SEjDCIL5pUcI2u88QMq8I2ac1lVq78p+dM7rF3l+PaSq/fBYqNU2vGSVJ9CfKwTmjFz43MbDneLXrPK1mbm0mLZ8orUwQz5cR6hRbxiiwDVmgkjQS5xcrRALPv9r40+BJZQZNWZfKGOcM+gjX89DRIvjYudgPQrInFuXno08kA3vJUi5S4A8k4yDNKcJUmcmUMhgSZHwYNeHYLMGmTqNr/U4+f//rd4oT7Q+MwmKm1S0iqPgCnq6ZZKHpnWVtdeVEs9SrZHQ9rBpFNFCcgsvaXh16TKnKBs6pfRlkR7GtfXyjPZ5et5fzBNfU+D9FsQ4GXvQuPf9DMjUYQ0b8W78zwUV1WWkFmzEG78hgxEcntHf8JkqSgXdlw7zY0Vh4Q008z3fZrEWBnRD84Bonc+gcWBalT+wLTH X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR04MB4388.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(186003)(53546011)(86362001)(5660300002)(235185007)(8676002)(2616005)(31696002)(36756003)(38100700002)(8936002)(66556008)(66946007)(508600001)(75432002)(66476007)(31686004)(66616009)(33964004)(316002)(6486002)(2906002)(6916009)(83380400001)(43740500002)(45980500001)(460985005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?Windows-1252?Q?XrliavRC78usF3tFOrCrt1r+Fp8yHAXNdP0rM8uIiRKZAXU/HtvjNG/7?= =?Windows-1252?Q?1gUDQ47dpCSIylk2zM7asrBW3i4tb+0ZKqDgD2SYf8axGPNPSAjDc4YJ?= =?Windows-1252?Q?XhnkIzYfn0ArQE+eQ0aEvppuC+VBPid/r9s35EdN4RqRqfnGXYNhFe9g?= =?Windows-1252?Q?8I6Yb9zprNrysoVaQZrMlA2hnOO7m8Y+sDcnxX8p+QgqQJSQyNvDESvG?= =?Windows-1252?Q?G1AQ+VHHwU1gMQDEGIJ1LutqqdNwZjyx2T6FRkWXxZ3Aj0GerF2OHbGe?= =?Windows-1252?Q?eJrjZSu88I7T4xtshlQBxcrymh8rGb5WpCgpBe7WlhBnwrYlWkAFAR8q?= =?Windows-1252?Q?UUFwr1Fz33eTnhSLzo/d65ePfc1tSgnw54RJvHVqxPY4pEDvaEWBeGD2?= =?Windows-1252?Q?53afMc529eIRMJfB/r08n2oOgY0nre8RF9gs+ZVvVqQynx7TVBgmoyGs?= =?Windows-1252?Q?JMDvJgVzoEtPJg3wn57ZBi1vHmSKoU8NZuW/BSvOMunZAMzlkuh6bd/A?= =?Windows-1252?Q?5YlFqSlhy2s7k4yPOWP+2GAOJ1Y76k86Jipmd9QBIPw+40O3SyN/QWiu?= =?Windows-1252?Q?2CD27PpPe84wmiuC+JQU3IdQcMPa0qigR7pmNzCi5LBYuJe3s/Gbhg3R?= =?Windows-1252?Q?s0I0khWpgvmPSmCg3a9pmk7CN/tsHvP569Z5RV4xO8/2AwuxpYUVJQQ/?= =?Windows-1252?Q?75qhE4d1osakETxv/6wXajUOrMCES2YivOri/l52taiN7SZD4wqWg1l3?= =?Windows-1252?Q?tLrPpPxR2jJlRM46SZkPkuw4ygw1EJjp+yRoMiz9MOorjfkU1RKBtokS?= =?Windows-1252?Q?MTRaS8SrqOaB33k8Q1MrDObgRzC0yVbMRkQOB6KF7gXShJvFEudXp9TH?= =?Windows-1252?Q?nbfIllDVVZ7RXG0biyLKzarnpFV60NnfKQVeeEB5/L1gr5nE+scXU7MS?= =?Windows-1252?Q?j3E3xmtFu20YbWTO4cGA8tv+xtfDPMScKSaphRsaVxP7Yf9FX+aPi6CM?= =?Windows-1252?Q?Wl7BFyY0/jEjP69pPDcNf01K6AzRpcEwNIwTyBrILTyhXz3D2HU80wLw?= =?Windows-1252?Q?iNErITUsTlnTmbHSZqGBY7xuFGhm0Oizr8zYKGuyTcRJ7lIF8leHguKz?= =?Windows-1252?Q?1QerhpIdZMnfAryXzxLuMEDIJu8jrkYPwItUx8vvMJU7GKJIc9meU/Vm?= =?Windows-1252?Q?6JPF+pFnsWZMnOlqwupHH3HftwtnkFLyBl/nFs2Nwo4kNUF45MRF9Fch?= =?Windows-1252?Q?IARQkGguvsOW9ey6B6JGDxeqVAR8eIq38BwCzqN71rdwFOW0HOfkp/9U?= =?Windows-1252?Q?E7IA/Xj+qAGvr9qRPbjg4Ta5YE9bPMoxFmowEd+Iwwe6GYBSCpq7FGQr?= =?Windows-1252?Q?rXUjLJWWkLhllKGs8Tmtrxch9j9EWSOF/OcAU/21xIewpJ6AQmcdyuuU?= =?Windows-1252?Q?XF3SGCy/6pa36bwD98KqPSAV960TtfU+22StK1iTwQ4zJFTAnt5zTgFj?= =?Windows-1252?Q?IRctgLIV?= X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 6ed4c355-a762-4aea-d8a1-08d979cc8a88 X-MS-Exchange-CrossTenant-AuthSource: BN7PR04MB4388.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2021 11:16:05.7427 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 76TxAT7sDqSPBMBLbCY8PsTPZ0ptDFs1H3T4FV6A7Xhsw8hGxfH3Huvyd+tztRJ8CGNXtG2jpGQRYfK4kKS5FA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR04MB5172 X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, MSGID_FROM_MTA_HEADER, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, 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-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 11:16:13 -0000 --------------FB66103441B7634FEFF4721E Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 9/17/2021 4:31 AM, Takashi Yano wrote: > On Thu, 16 Sep 2021 22:25:33 -0400 > Ken Brown wrote: >> On 9/16/2021 4:01 PM, Takashi Yano wrote: >>> On Thu, 16 Sep 2021 15:48:58 -0400 >>> Ken Brown wrote: >>>> I just noticed something very surprising. Up to now, all my tests have been on >>>> 64-bit. But I just tested the current git head on 32-bit Cygwin, and found that >>>> mintty is very slow to start. If I click on the Cygwin Terminal shortcut, >>>> there's a long delay (about 10 seconds on my system) before the window appears. >>>> Moreover, the window doesn't have focus when it does appear. >>>> >>>> Can anyone else reproduce this? >>> >>> I cannot reproduce that. >>> Proberbly 'strace -o mintty.log mintty' may help to find >>> what is wrong. >> >> This is getting stranger and stranger. When I try to run strace, I get a pop-up >> complaining that libgcc_s_sjlj-1.dll was not found. >> >> I'll have to try to sort it out tomorrow. > > 32bit mintty seems to require only the following files. > > bash.exe > cyggcc_s-1.dll > cygiconv-2.dll > cygintl-8.dll > cygncursesw-10.dll > cygreadline7.dll > cygwin1.dll > cygwin-console-helper.exe > mintty.exe > > None of them depends on libgcc_s_sjlj-1.dll. > > What happes if you put them into a new directory and run > mintty in it? > > 'strace mintty' also should work with these minimum files. 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. Ken --------------FB66103441B7634FEFF4721E Content-Type: text/plain; charset=UTF-8; name="cygwin.cygport" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="cygwin.cygport" NAME="cygwin" VERSION="3.3.0" RELEASE="0.1.199482654b07" HOMEPAGE="https://cygwin.com/" GIT_URI="https://cygwin.com/git/newlib-cygwin.git" # Release #GIT_TAG="cygwin-${PV//\./_}-release" # Test GIT_REV="199482654b07" inherit git TOOLCHAIN_TARGET="native" inherit toolchain # From .appveyor.yml in Cygwin git repo BUILD_REQUIRES="\ gcc-core \ gcc-g++ \ autoconf \ automake \ make \ perl \ patch \ cocom \ gettext-devel \ libiconv-devel \ zlib-devel \ mingw64-${ARCH}-gcc-core \ mingw64-${ARCH}-gcc-g++ \ mingw64-${ARCH}-zlib \ dejagnu \ dblatex \ docbook2X \ docbook-xml45 \ docbook-xsl \ texlive-collection-latexrecommended \ texlive-collection-fontsrecommended \ texlive-collection-pictures \ xmlto \ python38-lxml \ python38-ply" PKG_NAMES="cygwin cygwin-devel cygwin-doc" # cygwin base package cygwin_CATEGORY="Base" cygwin_SUMMARY="The UNIX emulation engine" cygwin_DESCRIPTION="The UNIX emulation engine" cygwin_CONTENTS="--exclude=cygwin1.dbg etc/defaults/ usr/bin/ usr/sbin/ usr/share/cygwin/ usr/share/doc/Cygwin/" # cygwin-devel package cygwin_devel_CATEGORY="Devel" cygwin_devel_SUMMARY="Core development files" cygwin_devel_DESCRIPTION="Core development files required to build Cygwin packages" cygwin_devel_CONTENTS="usr/include/ usr/lib/" # cygwin doc package cygwin_doc_CATEGORY="Doc" cygwin_doc_SUMMARY="Cygwin-specific documentation, including man pages" cygwin_doc_DESCRIPTION="Documentation for Cygwin and newlib, including man pages and texinfo files." cygwin_doc_CONTENTS="usr/share/man/ usr/share/info/ usr/share/doc/cygwin-doc/ usr/share/doc/newlib/ etc/postinstall/ etc/preremove/" PKG_IGNORE="usr/bin/cygwin1.dbg" DIFF_EXCLUDES="libc.info libm.info parser.out parsetab.py" # This is needed since we otherwise end up with two dirs in usr/share/doc # which only differ by case, "cygwin" and "Cygwin". That's not feasible for # the distro. Therefore we suppress generation of the default docs and create # our own cygwin-${PV} dir for the docs in src_install. RESTRICT="postinst-doc" CYGCONF_ARGS="--docdir=/usr/share/doc/cygwin-doc --htmldir=\${docdir}/html" src_compile() { cd ${S} winsup/autogen.sh cd ${B} # cygport compiles with _FORTIFY_SOURCE=2 -fstack-protector by default. # This doesn't work for the lib itself CFLAGS+=" -Wp,-U_FORTIFY_SOURCE -fno-stack-protector" CXXFLAGS+=" -Wp,-U_FORTIFY_SOURCE -fno-stack-protector" cygconf cygmake # make newlib info and manpage documentation cd ${B}/${CHOST}/newlib cygmake info man } src_install() { cd ${B} # tooldir and gcc_tooldir must be set to install correctly even when # building on a non-Cygwin build machine. cyginstall -j1 tooldir=/usr gcc_tooldir=/usr # Workaround the problem that the Cygwin DLL is already stripped and # a cygwin1.dbg file exists. insinto /usr/lib/debug/usr/bin doins ${B}/${ARCH}-pc-cygwin/winsup/cygwin/cygwin1.dbg dosym ../lib/debug/usr/bin/cygwin1.dbg /usr/bin/cygwin1.dbg # install newlib info and manpage documentation cd ${B}/${CHOST}/newlib cygmake DESTDIR=${D} install-info install-man # cygwin-doc postinstall cd ${I} cd ${B}/${CHOST}/winsup/doc cygmake DESTDIR=${D} install-etc cd ${S} docinto /cygwin-doc dodoc winsup/COPYING winsup/CYGWIN_LICENSE README docinto /newlib dodoc COPYING.NEWLIB newlib/HOWTO newlib/NEWS newlib/README cd ${D} rm -rf usr/include/iconv.h usr/include/unctrl.h usr/include/rpc \ usr/lib/libiberty.a usr/share/locale \ usr/share/info/standards.info usr/share/info/configure.info } SCALLYWAG="nobuild" --------------FB66103441B7634FEFF4721E--