From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by sourceware.org (Postfix) with ESMTPS id D48293858005 for ; Tue, 31 Aug 2021 09:04:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D48293858005 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 (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M1HuU-1mJM3o1Hmk-002p9g for ; Tue, 31 Aug 2021 11:04:06 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 9B3F9A80D9A; Tue, 31 Aug 2021 11:04:05 +0200 (CEST) Date: Tue, 31 Aug 2021 11:04:05 +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: <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> <20210831175215.def1505083d496e164fe7ca7@nifty.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210831175215.def1505083d496e164fe7ca7@nifty.ne.jp> X-Provags-ID: V03:K1:JNM/zsDW6iTSbO/eRRd8/CjA4ANXai5uS1J79CkYPqVT+pkpm+K SMp9odk7er/NZn2a735vXQnZSgEQZSjQAqI9VrzxAlxM3mQ4ZjeJOxxWNoUEE4z9QBxYE10 oLRQFUI6PlztYkq/mG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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: Tue, 31 Aug 2021 09:04:10 -0000 On Aug 31 17:52, Takashi Yano wrote: > On Mon, 30 Aug 2021 17:19:44 +0200 > Corinna Vinschen wrote: > > 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... > > With FILE_SYNCHRONOUS_IO_NONALERT, what kind of problems are you > specifically concerned about cygwin pipe? We're using asynchronous IO to be able to call WFMO and thus to be able to handle signals and thread cancellation events. Wit hsynchronous IO this is not possible. Corinna