[zeromq-dev] disabling epoll()

Martin Lucina mato at kotelna.sk
Mon Oct 4 15:39:08 CEST 2010


ph at imatix.com said:
> On Mon, Oct 4, 2010 at 3:23 PM, Martin Lucina <mato at kotelna.sk> wrote:
> 
> >> Could you explain how the build currently decides to use e/poll() or select()?
> >
> > This is determined at compile time by configure which sets the relevant
> > ZMQ_HAVE_XXX to detect the OS and the rest is done in the ifdefs in
> > poller.hpp.
> 
> Ah, so it's purely system dependent, with manual override...

Yes.

> > Where's the patch? It's not in your original email, maybe you forgot to
> > attach it?
> 
> Goshdarnit, I did forget!  And then I pulled a new snapshot of zeromq
> and lost it.  Anyhow it was just a line in configure.in, near the end:

I found it, in another thread, sorry...

> AC_CHECK_FUNCS(select poll epoll kqueue)
> 
> Since there is no actual problem to solve - as you said,
> cross-compiling for a 2.4 kernel needs manual override - it's moot.

Precisely.

> I guess we don't want to try stuff like switching between select() and
> e/poll() depending on the number of sockets we're working with?
> There's some evidence select() is faster for smaller sets[1].

That's an interesting idea; I'm curious to see how you implement it.

:-)

-mato



More information about the zeromq-dev mailing list