X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 	tests=AWL,BAYES_00,J_CHICKENPOX_54,SPF_PASS
X-Spam-Check-By: sourceware.org
From: Haojun Bao <baohaojun@gmail.com>
To: cygwin@cygwin.com
Subject: Re: How cygwin realize posix pipe?
In-Reply-To: <20090730104914.52236.qmail@web3314.mail.ogk.yahoo.co.jp> 	(Tatsuro MATSUOKA's message of "Thu, 30 Jul 2009 19:49:14 +0900 	(JST)")
References: <20090730104914.52236.qmail@web3314.mail.ogk.yahoo.co.jp>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.96 (cygwin)
Date: Thu, 30 Jul 2009 21:45:39 +0800
Message-ID: <7v1vny2sjg.fsf@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com


Tatsuro MATSUOKA <tmacchant2@yahoo.co.jp> writes:

> Hello
>
> I have involved in the octave project.
> Octave uses gnuplot as a graphic backend and data are sent and recieved via pipe.
>
> A report of slowness issue of the plot on octave on windows reported.

So one of your program is native and the other cygwin.

It's like a similar issue I met when using native Emacs+Gnus and cygwin
programs (openssl client) to read imap mails, it is very slow.

I guess it was a pipe size issue, for old DOS compatibility, the pipe
buffer is 64K, and if I check the i/o rate of openssl with Procexp, I
can see something like 64K.

This is a very wild guess though. First I see sth. in Procexp to be
about 64K, then I googled with "windows pipe 64k". Maybe you can try
tweak the pipe buffer size.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

