[Unbound-users] preferred library ?
wouter at NLnetLabs.nl
Mon Apr 28 13:44:15 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
Alexander Kolesnikoff wrote:
| Excellent! I'm just curious, how unbound use kqueue(2) ? On my
| top(1) said:
| PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
| 6158 bind 1 96 0 7852K 3744K select 0:00 0.00% unbound
| Why STATE is "select" but not "kqueue" ? unbound was compiled with
Scan through libev-3.2 shows this:
~ /* kqueue is borked on everything but netbsd apparently */
~ /* it usually doesn't work correctly on anything but sockets and pipes */
~ flags &= ~EVBACKEND_KQUEUE;
So that is why it is not using kqueue on FreeBSD. Seems like
libevent-1.4.3-stable does do kqueue on FreeBSD (from a cursory source
Now, unbound only uses sockets and pipes, so you could edit out this bit
in your source (for unbound only) if you really want kqueue and libev.
If you find bugs or fixes for FreeBSD, let those two projects know.
(This is a nice of saying, that unbound uses libev, libevent precisely
to avoid this kind of portability trouble).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Unbound-users