dnsperf and BIND memory consumption
JINMEI Tatuya / 神明達哉
Jinmei_Tatuya at isc.org
Thu Dec 18 01:27:21 UTC 2008
At Wed, 17 Dec 2008 17:07:12 -0800,
JINMEI Tatuya <Jinmei_Tatuya at isc.org> wrote:
>
> At Mon, 15 Dec 2008 09:53:23 +0300,
> Dmitry Rybin <rybin_d at post.ru> wrote:
>
> > Thank's to JINMEI Tatuya for support.
> > I have over 40 views, defined in named.conf, max-memory for cache -
> > 32Mb. Named daemon allocate over 2 Gb per 24 hours of work.
>
> Each view has a separate cache DB. So if each of these 40 views
> really needs to cache a certain amount of data, a footprint of 2GB is
> not a surprising situation, even with a 32MB of max-cache-size for
> each view.
>
> > Have you any ideas how to limit memory usage?
>
> Unfortunately not, unless you can consolidate the caching views to a
> small number of views.
If you can allow the multiple views to share a single cache, one
possibility is to create a separate "localhost" view as the single
caching view and forward all recursive queries to that view:
view "localhost" {
match-clients { ::1; };
};
view "view1" {
match-clients { view1-clients; };
max-cache-ttl 0; //disable caching to save memory
zone "." {
type forward;
forwarders { ::1; };
forward only;
};
// add other authoritative zones if necessary
};
view "view2" {
match-clients { view2-clients; };
max-cache-ttl 0;
zone "." {
type forward;
forwarders { ::1; };
forward only;
};
// add other authoritative zones if necessary
};
....
---
JINMEI, Tatuya
Internet Systems Consortium, Inc.
More information about the bind-users
mailing list