Re: select() too slow

2006-03-19 Thread Pedro Inacio
Yes! I've confirmed that! With TCP_NODELAY Cygwin and Linux times are similar. It seems that there is some issue with the Naggle algorithm on Windows for sure. Thanks Pedro Inacio On 2006/03/15, at 21:49, Corinna Vinschen wrote: It looks like this is a TCP_NODELAY issue. You tend to g

Re: select() too slow

2006-03-15 Thread Corinna Vinschen
On Mar 15 19:07, Pedro Inacio wrote: > > On 2006/03/14, at 22:43, Christopher Faylor wrote: > > >On Tue, Mar 14, 2006 at 09:42:25PM +, 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

Re: select() too slow

2006-03-15 Thread Christopher Faylor
On Wed, Mar 15, 2006 at 07:07:05PM +, Pedro Inacio wrote: >On 2006/03/14, at 22:43, Christopher Faylor wrote: > >>On Tue, Mar 14, 2006 at 09:42:25PM +, 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

Re: select() too slow

2006-03-15 Thread Pedro Inacio
On 2006/03/14, at 22:43, Christopher Faylor wrote: On Tue, Mar 14, 2006 at 09:42:25PM +, 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

Re: select() too slow

2006-03-14 Thread Christopher Faylor
On Tue, Mar 14, 2006 at 09:42:25PM +, Pedro Inacio wrote: >I'm goin to explain everything step by step in order to be now doubts. > >One computer with dual boot, Linux in one partition and Windows with >Cygwin installed on another partition. > >Boot on Linux compile echo_server.c, run it and

Re: select() too slow

2006-03-14 Thread Pedro Inacio
I'm goin to explain everything step by step in order to be now doubts. One computer with dual boot, Linux in one partition and Windows with Cygwin installed on another partition. Boot on Linux compile echo_server.c, run it and it will listen on tcp port 12345 Imagine that the IP address of

Re: select() too slow

2006-03-14 Thread Christopher Faylor
On Tue, Mar 14, 2006 at 07:32:09PM -, Dave Korn wrote: >On 14 March 2006 19:19, Christopher Faylor wrote: >>On Tue, Mar 14, 2006 at 06:59:28PM +, Pedro Inacio wrote: >>>Hello again, >>> >>>as promised attached you will find a very simplistic non-blocking echo >>>server that compiles on Linu

RE: select() too slow

2006-03-14 Thread Dave Korn
On 14 March 2006 19:19, Christopher Faylor wrote: > On Tue, Mar 14, 2006 at 06:59:28PM +, Pedro Inacio wrote: >> Hello again, >> >> as promised attached you will find a very simplistic non-blocking >> echo server that compiles on Linux and Cygwin. >> The main objective is that you compile it

Re: select() too slow

2006-03-14 Thread Christopher Faylor
On Tue, Mar 14, 2006 at 06:59:28PM +, Pedro Inacio wrote: >Hello again, > >as promised attached you will find a very simplistic non-blocking >echo server that compiles on Linux and Cygwin. >The main objective is that you compile it and run on both environments. >Of course that the same hardwa

Re: select() too slow

2006-03-14 Thread Pedro Inacio
Hello again, as promised attached you will find a very simplistic non-blocking echo server that compiles on Linux and Cygwin. The main objective is that you compile it and run on both environments. Of course that the same hardware is recommended in order to compare the results in a more accu

Re: select() too slow

2006-03-11 Thread Pedro Inacio
On 2006/03/11, at 18:16, Christopher Faylor wrote: But we don't know what the actual problem *is*. What does "too slow" mean? select takes an extra twenty milliseconds under Cygwin? select doesn't respond within 24 hours? You are right, I recognize that I haven't gave sufficient detai

Re: select() too slow

2006-03-11 Thread Christopher Faylor
On Sat, Mar 11, 2006 at 06:04:37PM +, Pedro Inacio wrote: >On 2006/03/11, at 15:40, Eric Blake wrote: > >> >>I'm afraid that this is not a very good bug report, as you have not >>attempted to describe WHAT is too slow, and have not provided a simple >>test case that compiles out of the box, wit

Re: select() too slow

2006-03-11 Thread Pedro Inacio
On 2006/03/11, at 15:40, Eric Blake wrote: I'm afraid that this is not a very good bug report, as you have not attempted to describe WHAT is too slow, and have not provided a simple test case that compiles out of the box, with timing numbers on the test case compared between Linux and Cygwi

Re: select() too slow

2006-03-11 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Pedro Inacio on 3/11/2006 3:11 AM: > > Since I want to run the application on Windows also, I have ported it to > run on Cygwin. > Everything is ok except the poor performance of the select() function. > It is too dam slow. I'm afraid th

select() too slow

2006-03-11 Thread Pedro Inacio
Hello, according to the mailing list archives it seems that I'm not the only one reporting this problem, but I was unable to find any fix, workaround or even good explanation for the problem. I've done one application that uses the select() function, with sets for reading and writing, with