dnsperf and BIND memory consumption

ivan jr sy ivan_jr at yahoo.com
Fri Nov 28 07:04:58 UTC 2008


Could it be as simple as the ARCH not compatible with BIND 9.5.0 FreeBSD port under FreeBSD AMD??
- with a minor tweak, it fixed the memory consumption problem.

if you compile BIND9.5.0-P2 on FreeBSD by hand, the host_cpu is 'x86_32'
# grep -e "host_cpu" -e "ARCH" config.log
ISC_ARCH_DIR='x86_32'
host_cpu='x86_64'

and with threads enabled... you won't experience the high memory consumption...

But if you install using ports/bind95 (FreeBSD ports)
#grep -e "host_cpu" -e "ARCH" config.log
ISC_ARCH_DIR='noatomic'
host_cpu='amd64'

with threads enabled... then you will get high memory consumption after a several thousands of queries..


Do we need to patch Makefile of ports/bind95 to make use "x86_64"? (cc'ed in this thread is port maintenair for his comments...)

--- Makefile.orig       2008-11-28 13:16:32.000000000 +0800
+++ Makefile    2008-11-28 13:08:09.000000000 +0800
@@ -45,6 +45,10 @@
 .include <bsd.port.pre.mk>

 # We are ok by default from 7.0-RELEASE on
+.if (${ARCH} == "amd64")
+ARCH=           x86_64
+.endif
+
 .if ${OSVERSION} >= 700055
 OPTIONS+=      THREADS "Compile with thread support" on
 .else

Another thing... (not affected thou) is that if you compile BIND by hand under FreeBSD, the compiler is gcc while in ports thats cc...
(BIND95 port uses cc by default) 

Jin,

or how about make BIND aware of it? 

There are some conditions in configure.in about "x86_64" and the compiler being used. Should'nt it be able to interpret "amd64" and "cc" ?

I'll reply again to this post after some performance testing with this configuration.. if 9.5.0-P2 threaded and non-threaded differ in FreeBSD am64 with x number of AMD64 cores...

- ivan

--- On Thu, 11/27/08, JINMEI Tatuya / 神明達哉 <Jinmei_Tatuya at isc.org> wrote:

> From: JINMEI Tatuya / 神明達哉 <Jinmei_Tatuya at isc.org>
> Subject: Re: dnsperf and BIND memory consumption
> To: ivan_jr at yahoo.com
> Cc: "Vinny Abello" <vinny at tellurian.com>, "bind-users at isc.org" <bind-users at isc.org>
> Date: Thursday, November 27, 2008, 12:06 PM
> At Wed, 26 Nov 2008 10:34:59 -0800 (PST),
> ivan jr sy <ivan_jr at yahoo.com> wrote:
> 
> > I know this is a an old thread, but I wish to
> resurrect this in
> > hopes to find answers.. 
> > 
> > 9.5 + threads on FreeBSD 7 is better performance wise,
> but there is
> > this problem.
> > 
> > 9.4 + threads on FreeBSD 7 is almost 50% of the
> performance, but
> > there is no issues like this. 9.5 without threads
> doesnt have this
> > issue but same in performance. 
> 
> > more data below... its basically the same as
> Vinny's but im
> > stressing out that 9.5 with threads has a good
> performance.
> > 
> > hoping there's some shed of light as to where to
> get a patch for this issue.
> 
> Unfortunately, I've never succeeded in reproducing this
> problem.  If
> possible, can I see your test configuration (including
> named.conf and
> query data)?
> 
> Also, just out of curiosity (I actually don't think
> this matters), do
> you see the same problem if you build named by hand, not
> from FreeBSD
> ports?
> 
> ---
> JINMEI, Tatuya
> Internet Systems Consortium, Inc.


      



More information about the bind-users mailing list