Subject: Re: removal of threading in bind9
To: Rui Paulo <rpaulo@NetBSD.org>
From: Mipam <mipam@ibb.net>
List: tech-net
Date: 08/14/2005 23:10:14
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--0-50781116-1124053814=:29690
Content-Type: TEXT/PLAIN; charset=US-ASCII
> /usr/sbin/named:
> -lpthread.0 => /usr/lib/libpthread.so.0
> -lc.12 => /usr/lib/libc.so.12
In /etc/mk.conf i put:
NAMED_USE_PTHREADS=no
Result:
ldd /usr/sbin/named:
-lc.12 => /usr/lib/libc.so.12
So named is no longer linked against libpthread.
Difference with before:
Normally at startup time the memory named 9.3.0 consumed was about 4,5
megs. This was with named linked against libpthread.
With named not linked against libpthread, named 9.3.0 uses about 1,9 meg
at startup time. I didnt messure performance difference yet.
Without the option in /etc/mk.conf the attached trivial patch would work
as well i guess?
Bye,
Mipam.
--0-50781116-1124053814=:29690
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=named_patch
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.BSO.4.56.0508142310140.29690@ux11.ltcm.net>
Content-Description:
Content-Disposition: attachment; filename=named_patch
LS0tIE1ha2VmaWxlLmluYy5vcmlnaW5hbAkyMDA1LTA4LTE0IDIzOjI5OjIz
LjAwMDAwMDAwMCArMDIwMA0KKysrIE1ha2VmaWxlLmluYwkyMDA1LTA4LTE0
IDIzOjI5OjQzLjAwMDAwMDAwMCArMDIwMA0KQEAgLTUsNyArNSw3IEBADQog
DQogV0FSTlM/PQkxDQogV0ZPUk1BVD89Mg0KLU5BTUVEX1VTRV9QVEhSRUFE
Uz89eWVzDQorTkFNRURfVVNFX1BUSFJFQURTPz1ubw0KIA0KIC5pbmNsdWRl
IDxic2Qub3duLm1rPg0KIA0K
--0-50781116-1124053814=:29690--