kqueue and libev
julian at elischer.org
Sat Dec 15 14:05:16 PST 2007
Julian Elischer wrote:
> James Mansion wrote:
>> Any idea what the author of libev is on about here (from
>> unsigned int ev_recommended_backends ()
>> Return the set of all backends compiled into this binary of libev
>> and also recommended for this platform. This set is often smaller
>> than the one returned by |ev_supported_backends|, as for example
>> kqueue is broken on most BSDs and will not be autodetected unless
>> you explicitly request it (assuming you know what you are doing).
>> |EVBACKEND_KQUEUE| (value 8, most BSD clones)
>> Kqueue deserves special mention, as at the time of this writing, it
>> was broken on all BSDs except NetBSD (usually it doesn't work with
>> anything but sockets and pipes, except on Darwin, where of course
>> its completely useless). For this reason its not being
>> "autodetected" unless you explicitly specify it explicitly in the
>> flags (i.e. using |EVBACKEND_KQUEUE|).
>> It looks like a decent library, but these comments seem unfortunate.
>> Does anyone know what the author is concerned about?
> he's just plain misinformed
kqueue works well with aio to files and raw devices for example.
(Only using AIO really makes sense in these cases anyhow, so
I've never really tried using kqueue with non-aio calls.)
>> freebsd-hackers at freebsd.org mailing list
>> To unsubscribe, send any mail to
>> "freebsd-hackers-unsubscribe at freebsd.org"
> freebsd-hackers at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
More information about the freebsd-hackers