Question about a high load BIND server setup...



I currently have a FreeBSD 6-STABLE (a few months old) machine running bind 9.3.2. It is a caching only name server for a large base of internet T1 customers (like 5000 customers).

I just upgraded to 9.3.2 today. I have been having memory issues. For starter, when the named pid grows res mem to around 500m it craps out and stops resolving. The tentative fix was to restart bind every night at 2am.

However, today, the res mem grow from 25m at startup to 500m in about 4 hours. Quicker then usually, so I thought maybe there was a memory leak, and thats why I upgraded to the latest version of bind.


I need some pointers. I know alot of people dont recommend bind for large caching environments, but right now we can't easily change the setup. So I am trying to stabilize things as-is. The server used to be Redhat linux, just recently did it move to FreeBSD 6.

My sysctl kernel params are standard, somaxconn was bumped up to 512. I was also thinking about enabling kern.ipc.shm_use_phys. Do you think that will help? TUNING man pages says it improves memory performance for pids that use alot of memory.

During peak, the server is pushing around 1.6Mbps of pure dns traffic.

Here is my named.conf options:

directory "/etc/namedb";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
listen-on { 127.0.0.1; 209.50.171.81; };
recursive-clients 10000;
auth-nxdomain no;
tcp-clients 10000;
max-cache-size 400000000;

Any ideas?

Would something like djbdns really help? I can switch, but can't do it for at least a week while we wait for new hardware.

Thanks
John
_______________________________________________
freebsd-isp@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-isp
To unsubscribe, send any mail to "freebsd-isp-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • RE: ViewState vs. Database
    ... query instead of caching the data. ... Since that can save webserver memory. ... database server, I'll first consider caching data at server-side (such as ...
    (microsoft.public.dotnet.general)
  • Memory handling on large-file-copy jobs
    ... When I start copying large files from one Windows 2008 Server to another both servers consume the whole physical memory for file caching. ...
    (microsoft.public.windows.server.general)
  • Re: Memory used by caching name server?
    ... > I have set up a caching name server. ... About its cached data base, ... > 2) the maximum memory is adjustable in named.conf, ... When I do not have the caching name server running, ...
    (freebsd-questions)
  • Re: Blocking undesirable domains using BIND
    ... I didn't research too hard, but figured the only way to use Bind would be to make my server authoritative for all those domains, which meant a huge config file and potential overhead, as well as ... So hosts seemed easier, but apparently Bind never looks at hosts. ... to the exact same thing it seems to be needlessly wasting memory. ...
    (freebsd-questions)
  • Re: Slow, persistent memory leak in 2.6.20
    ... So I guess you are not seeing any memory leak at all, ... memory and the server would have to be rebooted. ... I understand there's kernel caching, ...
    (Linux-Kernel)