delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/12/10/09:04:17

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 10 Dec 2007 15:03:34 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Updated: cygwin-1.5.25-5
Message-ID: <20071210140334.GD6618@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <475C2AAE DOT 9030800 AT alum DOT mit DOT edu> <20071210095725 DOT GA13109 AT calimero DOT vinschen DOT de> <20071210132802 DOT GA15065 AT calimero DOT vinschen DOT de> <BAY108-W25D2E2410F50C13F068CD5BE6B0 AT phx DOT gbl>
MIME-Version: 1.0
In-Reply-To: <BAY108-W25D2E2410F50C13F068CD5BE6B0@phx.gbl>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Dec 10 08:40, Mike Marchywka wrote:
> > I can't reproduce worse I/O performance. I tested different scenarios
> > with lots of disc I/O and the performance was identical between 1.5.24
> > and 1.5.25 within the bounds of a performance test.
> >
> 
> 
> One thing I found out, after originally blaming my inner computational loops,
> was that console IO is very slow. Using ">" on the command line makes a big
> difference compared to opening a destination file. This seemed to be the
> speed limit in many programs I thought were computationally limited. 
> [...]
>   Has the console buffering
> changed lately? 

I don't understand what you mean.  Using > on the command line or
opening the file by using some option of the tool has both nothing to do
with console output.  In both cases a file is opened.  The only
difference in that in the > case the shell opens the file and the child
inherits the file descriptor, in the other case the child opens the file
by itself.  However, I don't see how getting a file descriptor to a file
from the parent should be different than opening the file in the child,
at least as long as parent and child are both Cygwin processes.

In fact, one of my tests was a loop using `cat < foo > bar', which got
much faster under 1.5.25 due to the new 64K buffering.

Give me a really simple testcase which shows reproducibly worse
performance on 1.5.25 compared to 1.5.24 and I'll have another look.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019