Memory Reduction

Mark_Andrews at isc.org Mark_Andrews at isc.org
Tue Aug 20 23:47:35 UTC 2002


> Am Die, 2002-08-20 um 23.03 schrieb Mark.Andrews at isc.org:
> > 
> > 	If you want to control the cache size use "max-cache-size".
> > 
> > 	Note: this does *not* cover the adb cache in BIND 9.2 but does
> > 	in BIND 9.3 (see the snapshots).
> > 
> > 	datasize should *not* be used to limit the amount of memory
> > 	used by named.  It purpose is to *raise* the limit if the system
> > 	default is too small for what you have asked it to do.
> > 
> > 	Mark
> > --
> > Mark Andrews, Internet Software Consortium
> > 1 Seymour St., Dundas Valley, NSW 2117, Australia
> > PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews at isc.org
> 
> So i changed like suggested to:
> 
> options {
>         directory "/var/named/";
>         allow-query { "corpnets"; };
>         recursion yes;
>         allow-recursion {192.168.0.12; 192.168.0.1; 127.0.0.1; };
>         listen-on {192.168.0.12; 127.0.0.1; };
>         listen-on-v6 { none; };
>         minimal-responses yes;
>         auth-nxdomain no;
>         notify no;
>         coresize 5M;
>         datasize default;
>         stacksize 5M;
>         max-cache-size 10M;
>         heartbeat-interval 0;
>         interface-interval 0;
>         lame-ttl 1800;
>         max-ncache-ttl 86400;
>         forward only;
>         forwarders {
>         194.25.2.131;
>         145.253.2.11;
>         };
> };
> 
> and top says again (still bad more):
> 
> 30419 named     15   0 67744  66M  1944 S     0,0 26,3   0:00 named
> 30420 named     15   0 67744  66M  1944 S     0,0 26,3   1:57 named
> 30421 named     15   0 67744  66M  1944 S     0,0 26,3   0:00 named
> 30422 named     15   0 67744  66M  1944 S     0,0 26,3   0:00 named
> 30417 named     17   0 67744  66M  1944 S     0,0 26,3   0:00 named

	Did you bother to restart named?  Depending upon the malloc
	implementation free'd memory may / may not be released to the
	system.  Is named serving zones?  If so they consume memory.

	Did you fetch a snapshot so that the adb cache would also
	be controlled?

	Mark

> 
> --
> Frank
> 
> 
--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews at isc.org


More information about the bind-users mailing list