v 9.10.3 max-cache-size not recognised

2016-01-04 Thread MAYER Hans

Dear Users,

I have a low end server with 1 GB of RAM running GNU/Linux version 3.4.104. I 
noticed that after a certain time the swap space is extensively used. This is 
normally not an issue but sometimes the system has long response times. I 
noticed that "named" is using a lot of memory. So I add the following lines in 
the options section of bind.conf

max-cache-size 629145600 ;
cleaning-interval 120 ; // 2 hours
max-cache-ttl 14400 ;   // 4 hours
max-ncache-ttl 14400 ;  // 4 hours

But this does not help. I thought that bind would not use much more than 600 
kB, but this is not true. When I look with "top" I see

  PID USER  PR  NI  VIRT  RES  SHR S  %CPU %MEMTIME+  COMMAND
32470 bind  20   0  982m 842m 2260 S   0.0 86.8 175:55.22 named

As you can see "named" is using 842 MB physical and 982 MB virtual memory. Much 
more than configured.

On this server I have bind version
BIND 9.10.3 
built by make with '--enable-shared' '--enable-static' '--enable-ipv6' 
'--with-openssl' 'CC=gcc' 'LDFLAGS=-L/usr/lib/arm-linux-gnueabihf'
compiled by GCC 4.6.3

On a different system ( same kernel version, same HW ) I am using BIND 9.9.5
Here I never noticed this issue.

Is there a major change for memory management in version 9.10 ?
Are there any other methods to reduce memory consumption for bind ?

Kind regards
Hans





___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: v 9.10.3 max-cache-size not recognised

2016-01-04 Thread Phil Mayers

On 04/01/16 13:54, MAYER Hans wrote:


As you can see “named” is using 842 MB physical and 982 MB virtual
memory. Much more than configured.


Well, bind will use memory for things other than cache.

Try accessing the statistics XML channel over HTTP with a browser; it'll 
render to HTML via stylesheet, and show you memory context usage. Have a 
look and see what stands out.


FWIW, max-cache-size works fine for us on 9.10.2-P4, and limits it to 
the appropriate value. We see this reflected in RSS as well.

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Writeable file already in use

2016-01-04 Thread Sathyan Arjunan
Team,

Recently, I updated my bind from 9.9.5 to 9.9.8-P2 from then I seen
problems with me named configuration. Interestingly, I seen this problem
only on my slaves NOT on Master DNS.

I am using multiple zones pointing to a same file. This configuration has
been in place for nearly 10 years with no issues...

Zone config on Master: ###No issues with Master###

 zone "domain1.com." {type master; file "db.file-1"; };
 zone "domain2.com." {type master; file "db.file-1"; };
 zone "domain3.com." {type master; file "db.file-1"; };

Zone config on Slave:

zone "domain1.com." {type slave; file "db.file-1"; masters { x.x.x.x; };
allow-query { any; }; };
zone "domain2.com." { type slave; file "db.file-1"; masters { x.x.x.x; };
allow-query { any; }; };
zone "domain3.com." { type slave; file "db.file-1"; masters{ x.x.x.x; };
allow-query { any; }; };

Below is the errors i seen from named on my slave dns

: named.conf:584: writeable file 'db.file-1': already in use: named.conf:194


Please advise...
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: Writeable file already in use

2016-01-04 Thread Reindl Harald



Am 05.01.2016 um 01:13 schrieb Sathyan Arjunan:

Recently, I updated my bind from 9.9.5 to 9.9.8-P2 from then I seen
problems with me named configuration. Interestingly, I seen this problem
only on my slaves NOT on Master DNS.

I am using multiple zones pointing to a same file


this is not supported - period



signature.asc
Description: OpenPGP digital signature
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: Writeable file already in use

2016-01-04 Thread Evan Hunt
On Mon, Jan 04, 2016 at 05:13:55PM -0700, Sathyan Arjunan wrote:
> Recently, I updated my bind from 9.9.5 to 9.9.8-P2 from then I seen
> problems with me named configuration. Interestingly, I seen this problem
> only on my slaves NOT on Master DNS.
> 
> I am using multiple zones pointing to a same file. This configuration has
> been in place for nearly 10 years with no issues...

It's actually an error and always has been.  Having named write to the
same file for multiple zones is risky; they can step on each other and
cause load failures later.  The only change is that named will now
prevent you from making this mistake.

> Zone config on Master: ###No issues with Master###
> 
>  zone "domain1.com." {type master; file "db.file-1"; };
>  zone "domain2.com." {type master; file "db.file-1"; };
>  zone "domain3.com." {type master; file "db.file-1"; };

On the master server, named doesn't write to zone files (unless the
zone is dynamically updatable) so this isn't an error.

> zone "domain1.com." {type slave; file "db.file-1"; masters { x.x.x.x; };
> allow-query { any; }; };
> zone "domain2.com." { type slave; file "db.file-1"; masters { x.x.x.x; };
> allow-query { any; }; };
> zone "domain3.com." { type slave; file "db.file-1"; masters{ x.x.x.x; };
> allow-query { any; }; };
> 
> Below is the errors i seen from named on my slave dns
> 
> : named.conf:584: writeable file 'db.file-1': already in use: named.conf:194

On a slave server, named transfers the zone from elsewhere and writes a
copy into a local file.  These all need to be different files.

> Please advise...

Change the filenames on the slave, or just don't have a "file" option
in the slave zone configuration.

-- 
Evan Hunt -- e...@isc.org
Internet Systems Consortium, Inc.
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users