Subject: Re: removal of threading in bind9
To: Jason Thorpe <thorpej@shagadelic.org>
From: Rui Paulo <rpaulo@NetBSD.org>
List: tech-net
Date: 08/13/2005 17:04:39
--lMM8JwqTlfDpEaS6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2005.08.13 08:44:36 +0000, Jason Thorpe wrote:
| As far as I can tell, NetBSD already builds Bind 9's named non-=20
| threaded, and has ever since Bind 9 was incorporated into the tree.

Hmm, I'm not sure.
/usr/sbin/named:
        -lpthread.0 =3D> /usr/lib/libpthread.so.0
	-lc.12 =3D> /usr/lib/libc.so.12

And on a 2-way system, it creates two worker threads for me:
Aug 13 16:27:16 neutron named[470]: starting BIND 9.3.0
Aug 13 16:27:16 neutron named[470]: found 2 CPUs, using 2 worker threads

ps asx shows:
14 501    1   0   3    3  28  0 10400 2992 sawait   S-   ?     0:02.01 name=
d -t /var/chroot/named -u named=20
14 501    1   0   4    3   2  0 10400 2992 select   I-   ?     0:02.01 name=
d -t /var/chroot/named -u named=20
14 501    1   0   1    3  18  0 10400 2992 sigwait  I    ?     0:02.01 name=
d -t /var/chroot/named -u named=20


		-- Rui Paulo

--lMM8JwqTlfDpEaS6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFC/hoXZPqyxs9FH4QRAh/XAJ92FHVvNX00ocTKsrsBRVsj5m8/rwCgrXpz
4uB7uq1n45z8mXlJ/ndFG54=
=b/V1
-----END PGP SIGNATURE-----

--lMM8JwqTlfDpEaS6--