From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by sourceware.org (Postfix) with ESMTPS id 895473858417 for ; Mon, 30 Aug 2021 15:19:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 895473858417 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=cygwin.com Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MpDVx-1mmrUt2Jtn-00qhGI for ; Mon, 30 Aug 2021 17:19:44 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 2687EA80DBC; Mon, 30 Aug 2021 17:19:44 +0200 (CEST) Date: Mon, 30 Aug 2021 17:19:44 +0200 From: Corinna Vinschen To: cygwin-developers@cygwin.com Subject: Re: cygrunsrv + sshd + rsync = 20 times too slow -- throttled? Message-ID: Reply-To: cygwin-developers@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com References: <20210830091314.f9a2cb71794d0f68cdb5eba7@nifty.ne.jp> <20210830092259.52f7d54fc3fa340738373af4@nifty.ne.jp> <20210830170204.fa91eaf110f310f13b67abc3@nifty.ne.jp> <20210830210423.00df7f37473b0ac1251e880f@nifty.ne.jp> <932300c9-2e09-5ee5-bbb1-3c060d33e3e1@cornell.edu> <474e1343-9cba-6b3c-b952-c92004968d8f@cornell.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <474e1343-9cba-6b3c-b952-c92004968d8f@cornell.edu> X-Provags-ID: V03:K1:KcShiPtiX2dvoql18Ywbt9l+oyRhlO6TTfhqI7NUawabDn2Wf0x /879WOvSs6cCxaA7E/1WUuuyjpbPjR8PP1pMigpT+1DiujyEGeQitD6QqZWj/A+vsh9+WvF 6Aa5WCoC4u2uaQgL4lV4wkgKQhPG0qQ2bM84+ZC9KYwC4act3DeX4hk40BZtv6w/4uCLXX2 y7CRSZBlLh5xdLiYJ29mg== X-UI-Out-Filterresults: notjunk:1;V03:K0:wmeVGyLfPH0=:zr7mtWyfm67bKmPyHANrLX INA7MpFsnWceWvmIg90FoCGio9ZyB7hhjDb9EN5Tyh0BYwDxiOR4GaOSpXgWjj20BiRQiud/3 L53GFMXCDVo/hM8ozD18erzeCrM8VK0ASIS1pdqShRJvGsn/ZGFZFAegWayOuGvNDH72bvcNM BnUVRTfJOYtWDX1TUQEyHyf/3rrqd/YVPjLMZKW6G1Jt9bRRJWaBqGdrOXBFNos3CIUCrHoXD yNns7wRtjoTDi8x8EDYfOHctiZnNtCXPVJSUEozNouseDBz/QIRV68ww7fHc8tP0bjP0/uPLZ XUmQPO5vKrnRyHJNcLE+ZRMvTLImoqmB/VZF2QBh0Xu11IaOotnEWFvWLYzPoh9kU02HBZVW3 auTfMcsW6OH4T+nMdV/kw9vZOPXnxi3BV4Hjb46PpUJSEulJ4y6r4Bl5CcU66j9SBsMNXstCM FW7m0BO0r4A1acwoj6gyuHxtTIKZJvnaPgGuxYMaSCys11R6YXZYqAClHaMXdX0MztSLX7kd2 ykWIinumRZEwP+xDyt2LvuWLJgD1tIsIakJnWhFLW8Y7WHMxenGqFlyt37pSeN4/nrZJcZ5// ZuL6NhC5XsCqhyFCMEFpVVjCv0z8bQZacHdbv4iEEFqMOC2vBACNOkP+wHlR24/TLu5W0dAdS t2UH0sZT5NfrrMVGATTpZn13DbAkGS2QE60mgjeUo9kU0aw/aofuvViyRJwKoslVkn781YDrG d38EUKatD3qTLApmdA/ULYtLc9XZ3oqZ1KWRuglcqDcupraO1UL0YMNw8o8= X-Spam-Status: No, score=-99.8 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, JMQ_SPF_NEUTRAL, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NEUTRAL, 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: Mon, 30 Aug 2021 15:19:48 -0000 On Aug 30 11:00, Ken Brown wrote: > On 8/30/2021 9:51 AM, Ken Brown wrote: > > On 8/30/2021 8:55 AM, Corinna Vinschen wrote: > > > On Aug 30 21:04, Takashi Yano wrote: > > > No worries.  The same should apply to the NtCreateFile side of the > > > pipe, btw. > > > > I'll add my thanks.  I should have checked the default flags that are > > typically used for other devices when I wrote nt_create.  I'm glad you > > caught this. > > > > So I'll reinstate the use of nt_create and then let Takashi recheck everything. > > I've done this now. I'm still not sure I've got all the flags right. For > unknown reasons, I've used FILE_SHARE_READ | FILE_SHARE_WRITE in the call to > NtCreateNamedPipeFile, and no sharing in the call to NtOpenFile. Should I > also use FILE_SHARE_READ | FILE_SHARE in NtOpenFile? Is sharing even > relevant in this context? This is only relevant if you want to open the pipe from another context, calling CreateNamedPipe/CreateFile. As long as the pipe is only duplicated, it shouldn't matter at all. But, as I just wrote in my previous mail, the FILE_SYNCHRONOUS_IO_NONALERT flag is probably a good thing for C# apps, but not for Cygwin, because it enforces synchronous operation. Sorry about that... Corinna