From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-06.nifty.com (conssluserg-06.nifty.com [210.131.2.91]) by sourceware.org (Postfix) with ESMTPS id 4EE303858437 for ; Mon, 13 Sep 2021 18:40:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4EE303858437 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp Received: from Express5800-S70 (z221123.dynamic.ppp.asahi-net.or.jp [110.4.221.123]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 18DIdjkw003573 for ; Tue, 14 Sep 2021 03:39:46 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 18DIdjkw003573 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1631558386; bh=PCjrCR6FYjLtApH/3atOy9JJONG8a8M48NPnmc9B50E=; h=Date:From:To:Subject:In-Reply-To:References:From; b=JB08K+OgaMeFEoeHLO7aGsLPUcCXY8GetN6LFx4JrSyYp5q9tvbBqDCF5RN8wccsM PuptaYVVor6cNiOTm+eOPPvCZsDRaYVcyY4fLvTrk+JvwWuhkSfEGc4k3bTr6513fz /Q/tkJzv4biiyVkQTqVaSearP8JDYgfVEXeitceleDt7tsm0b4XZXNk7kH5fc5IbGD AK3vdL7WfJg0kujoSvcsZ1NwgcfLpCDu3smfhGV6dy28X79+Q6SxAs0vCDqmXDWK7G BvpjKDJob7lmEEKEXNOXniX8JaLharvGfDEpC74Hi9rV3JBsCLbeP58LI8HwDLXa+f 9BxbvMUcb2M+w== X-Nifty-SrcIP: [110.4.221.123] Date: Tue, 14 Sep 2021 03:39:51 +0900 From: Takashi Yano To: cygwin-developers@cygwin.com Subject: Re: cygrunsrv + sshd + rsync = 20 times too slow -- throttled? Message-Id: <20210914033951.aad06cd7322b6bc66b6e9dea@nifty.ne.jp> In-Reply-To: <8c5a6140-1082-f429-efe3-e968e3bc4dba@cornell.edu> References: <33386baf-3b2d-d57f-2ad3-1bd328ed7935@cornell.edu> <20210911075734.aaf37697ba7db2ad14d911a3@nifty.ne.jp> <20210911113517.f74fc3ac1971bbf04c7a9bd1@nifty.ne.jp> <695ce1f4-4f7d-f3f3-6dd3-087467d67b28@cornell.edu> <20210912174849.3d38107568065a95aeb19c7c@nifty.ne.jp> <20210912200423.667e40eb1adc52461bbefa20@nifty.ne.jp> <8c5a6140-1082-f429-efe3-e968e3bc4dba@cornell.edu> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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: Mon, 13 Sep 2021 18:40:19 -0000 On Mon, 13 Sep 2021 09:03:04 -0400 Ken Brown wrote: > On 9/13/2021 5:42 AM, Corinna Vinschen wrote: > > Didn't we also have a problem with C# in terms of non-blocking pipes? > > I wonder if we could just do the following: As soon as we spawn a > > non-Cygwin process, just call set_pipe_non_blocking(false) for all > > pipes. Blocking vs. nonblocking mode is a per-handle thingy anyway. > > > > What do you think? > > I don't remember exactly what the issue was with C# programs, so I'll defer to > Takashi on this. Actually, piping C# program has a problem even if setting the pipe blocking. It needs also pipe_byte and FILE_SYNCHRONOUS_IO_NONALERT. However, I agree it is safer to set the pipe blocking for non-cygwin apps. -- Takashi Yano