delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/15/14:30:32

X-Spam-Check-By: sourceware.org
Date: Wed, 15 Mar 2006 14:30:25 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: select() too slow
Message-ID: <20060315193025.GE20011@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1753CE61-D772-46F7-8393-84E419E49307 AT ptnix DOT com> <4412EF74 DOT 1070500 AT byu DOT net> <890F74C6-8E51-405F-86CC-551170A2EA70 AT honeynet-pt DOT org> <20060311181653 DOT GA10054 AT trixie DOT casa DOT cgf DOT cx> <F8A4659D-D483-4219-9EAF-7698FFC5A938 AT honeynet-pt DOT org> <20060314191855 DOT GA17565 AT trixie DOT casa DOT cgf DOT cx> <1B24AE67-B28C-4D8E-A655-5D42E92B7F0C AT honeynet-pt DOT org> <20060314224304 DOT GC7159 AT trixie DOT casa DOT cgf DOT cx> <A0A99977-0C6D-4AFB-834A-5A451F3760F8 AT honeynet-pt DOT org>
Mime-Version: 1.0
In-Reply-To: <A0A99977-0C6D-4AFB-834A-5A451F3760F8@honeynet-pt.org>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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 Wed, Mar 15, 2006 at 07:07:05PM +0000, Pedro Inacio wrote:
>On 2006/03/14, at 22:43, Christopher Faylor wrote:
>
>>On Tue, Mar 14, 2006 at 09:42:25PM +0000, Pedro Inacio wrote:
>>
>>I don't have any 100MB files sitting around but when I tried this on a
>>14MB file, I find that cygwin is about 2X slower, not an order of
>>magnitude slower.  Taking away the pipe and using regular file  
>>redirection
>>makes things a little faster on cygwin.
>>
>>So, I can't explain why you are seeing such extreme slowdowns.  I am
>>using the equivalent of a snapshot in my tests, however.  Maybe that's
>>the difference.
>
>I have created a 14MB file and the results were:
>
>On Linux: 4 seconds On Cygwin: 44 Seconds
>
>The test were made on 3 different platforms, and the results the same.
>Cygwin is not just 2X slower but 11X slower, each is too much.

>Another thing, what have the pipe and the file redirection to do with
>the results?  That command is given always on a Unix box which is the
>client of the echo_server.  Is just the echo_server that runs on Cygwin
>or Linux.  ;)

Ah.  When you said "run it and do the same", I thought you were saying
to run the the client/server on Cygwin, as you did with linux, not to
run the client on linux and the server on Cygwin.  I do see a slowdown
when running the client on linux however, since it's the same select()
connected to the same IP address, running the same way, it's hard to see 
how select() would be implicated.  That seems to point to winsock, if
anything.

cgf

--
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