Memory Reduction
Frank
Frank at duranicub.sytes.net
Wed Aug 21 01:49:59 UTC 2002
Am Die, 2002-08-20 um 23.47 schrieb Mark.Andrews at isc.org:
>=20
> > Am Die, 2002-08-20 um 23.03 schrieb Mark.Andrews at isc.org:
> > >=20
> > > If you want to control the cache size use "max-cache-size".
> > >=20
> > > Note: this does *not* cover the adb cache in BIND 9.2 but does
> > > in BIND 9.3 (see the snapshots).
> > >=20
> > > 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.
> > >=20
> > > 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
> >=20
> > So i changed like suggested to:
> >=20
> > 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;
> > };
> > };
> >=20
> > and top says again (still bad more):
> >=20
> > 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
>=20
> 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.
>=20
> Did you fetch a snapshot so that the adb cache would also
> be controlled?
>=20
> Mark
>=20
> >=20
> > --
> > Frank
> >=20
> >=20
> --
> Mark Andrews, Internet Software Consortium
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742 INTERNET: Mark.Andrews at isc.org
you right:
zone "blackholes.wirehub.net" {
type slave;
file "db.blackholes.wirehub.net.sec";
masters {
194.165.94.1; 195.86.49.227;
};
};
zone "dynablock.wirehub.net" {
type slave;
file "db.dynablock.wirehub.net.sec";
masters {
194.165.94.1; 195.86.49.227;
};
};
ll /var/named
-rwxr----- 1 named named 200 Jan 13 2002
0.0.127.in-addr.arpa.zone
-rwxr----- 1 named named 439 M=E4r 7 18:26
0.168.192.in-addr.arpa
-rw------- 1 named named 1199386 Aug 21 01:37
db.blackholes.wirehub.net.sec
-rw------- 1 named named 19409497 Aug 21 01:37
db.dynablock.wirehub.net.sec
-rwxr----- 1 named named 595 M=E4r 7 18:26 home.zone
-rwxr----- 1 named named 169 Sep 14 2001 localhost.zone
-rwxr----- 1 named named 427 Jan 13 2002 named.local
So i tested with and withoute the slave Zone, with Success.
Sorry if i made Confusion or stupid Irritations. I think now it is the
slave Zone.
--
Frank
More information about the bind-users
mailing list