develooper Front page | perl.loop | Postings from November 2007

Re: [simonhf@gmail.com: Fwd: event iocp request]

Thread Previous | Thread Next
From:
Simon Hardy-Francis
Date:
November 26, 2007 02:04
Subject:
Re: [simonhf@gmail.com: Fwd: event iocp request]
Message ID:
9b8745650711252007g2c04b82ch391df6ebba8787c0@mail.gmail.com
On Nov 22, 2007 7:43 PM, Marc Lehmann <schmorp@schmorp.de> wrote:
> > I was always hoping that he might build it into libevent (which also
> > suffers from the 64 handle limit problem on Win32).
>
> There is a replacement library called libev which doesn't suffer from
> that, and also has a perl module interface.

Thanks for the tip about the new libev -- I'll give it a try.

I was grepping the libev source code for FD_SETSIZE (which apparently
is set by default to 64 for Win32). Have you ever tried setting
FD_SETSIZE to a larger value? I found this mail here suggesting  that
a value of 16384 works fine:
http://www.mail-archive.com/dev@apr.apache.org/msg14069.html

Recently I was testing epoll on Ubuntu and managed to get 100k
connected sockets without problem. With the 100k sockets connected
then top reported a memory usage which lead be to believe that an
average socket connection used 9.5KB. Have you tried libev with large
amounts of sockets? Do you happen to know what the maximum number of
sockets is for Win32?

-- Simon

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About