LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-13-2015, 10:22 AM   #1
borepstein
LQ Newbie
 
Registered: Jun 2010
Location: Boston, MA, USA
Distribution: OpenSUSE, Ubuntu, Centos
Posts: 10

Rep: Reputation: 2
DJBDNS: very weird dnscache issue


Hello all,

We have put a DNS server online running DJBDNS v1.06 (ndjbdns-1.06-1.el6.x86_64) on a 64-bit CentOS 6.6 server. We have done some limited testing on the machine which it passed - i.e., dnscache was talking to tinydns, the queries went through fine, etc.

As soon as we put it online subjecting it to live load the following happened:

1) Within a short time period (about a minute) the dnscache process reached the CPU utilisation level of 100%.

2) The process would then die reporting the following message to the log:

dnscache: BUG: out of in progress slots

NOTE: Random sampling indicates that at no point sampled did the load exceed 200 requests per second. In tests conducted earlier the DNS server successfully demonstrated speeds in tens of thousands of requests per second.

We then proceeded to edit the following parameters in the dnscache.conf as they seemed to be the only ones that seemed relevant: DATALIMIT and CACHESIZE. They are described as limints (in bytes) on the total data memory allocation and cache, default values are 80000000 and 50000000 respectively.

Playing with these demonstrated some highly counterintuitive results:

1) Setting the values lower (say, an order of magnitude lower) made the dnscache process run longer.

2) Shortening the relative gap between the two values (for instance, setting DATALIMIT at 52000 and CACHE at 50000) made it run for about an hour vs about 1 minute, load seeming to be about the same.

3) Running it with DATALIMIT not set was possible though it eventually failed anyways.

4) Running it with CACHESIZE not set was not possible at all.

So the issue is currently still not resolved and we are stuck.

Any advice will be much appreciated.

Cheers,

Boris.
 
Old 01-15-2015, 05:23 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,554

Rep: Reputation: 2384Reputation: 2384Reputation: 2384Reputation: 2384Reputation: 2384Reputation: 2384Reputation: 2384Reputation: 2384Reputation: 2384Reputation: 2384Reputation: 2384
I ran that once on lighter traffic but with a much smaller cache(Think I used 1MB). Perhaps your figures are right, but I would also like to see the memory allocation bigger than the cache.
 
  


Reply

Tags
centos6, dns


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] DJBDNS Connection issue: Dig & Telnet w00dy101 Linux - Server 4 07-16-2014 06:58 AM
LXer: Clean djbDNS DNS Server On CentOS - dnscache And tinydns - A To Z LXer Syndicated Linux News 0 08-04-2010 01:40 PM
DJBDNS telnet issue ph3ar Linux - Server 5 07-15-2008 01:04 PM
Tinydns and dnscache (djbdns) Astro Linux - Networking 1 04-27-2004 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration