[zeromq-dev] disabling epoll()
Pieter Hintjens
ph at imatix.com
Mon Oct 4 15:30:01 CEST 2010
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...
> 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:
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.
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].
-
Pieter Hintjens
iMatix - www.imatix.com
[1] http://sheddingbikes.com/posts/1280829388.html
More information about the zeromq-dev
mailing list