djbdns
[Top] [All Lists]

Re: tinydns - softlimit: fatal: out of memory

To: Emilio Perea <eperea@walkereng.com>
Subject: Re: tinydns - softlimit: fatal: out of memory
From: ax@ax-im.com
Date: Mon, 21 May 2007 08:09:06 -0700
Cc: dns@list.cr.yp.to
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-djbdns@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list dns@list.cr.yp.to
In-reply-to: <20070521143230.GA4892@hermes.walkereng.com>
Mailing-list: contact dns-help@list.cr.yp.to; run by ezmlm
Wow... I had gone as high as -d2000000 with no success, so I figured there was
no point in continuing to push it higher.  Obviously I'm a coward ;-)  But,
emboldened by your reply, I've just raised it to -d4000000, and indeed, it
starts up without errors.  But as you suggest, it still drops queries.  I raised
it to -d8000000 and it appears to be performing like a trooper.

I have to admit, I'm puzzled -- this machine isn't all that different from the
last one I set up, apart from the fact that it's 64-bit Intel Xeons instead of
Intel Pentiums, so it requires the amd64 OpenBSD distro in order to support SMP.
The previous machine is humming along peacefully with a setting of -d400000 with
no issues.  Why would it take 20x the value for amd64?

(sorry, this may have become more of an OpenBSD question than djbdns, although
maybe not... it does seem that tinydns is affected way more than any other
service... I didn't have to do anything to get dnscache, qmail, etc. to work.)

Thanks very much for the reply... any further information is purely to satisfy
my curiosity, as my machine is now working smoothly.

Cheers,
Alex F.
ax@ax-im.com




> Quoth eperea@walkereng.com (Emilio Perea),
> Monday, May 21, 2007 7:32 am -0500...

> On Mon, May 21, 2007 at 12:29:17AM -0700, ax@ax-im.com wrote:
> > Hi all.  My apologies in advance if any information is missing here.
> > Please let me know how I can help diagnose.
> 
> You didn't include your tinydns run file, but I'm guessing your
> softlimit is way too low.  I used -d300000 on i386 and thought I'd
> gradually increase it on amd64, but had errors until I used ten times
> that amount.  If you increase it gradually it will come to the point
> that the error logging stops, but it's still not enough to answer all
> queries, which get dropped silently.  Be sure you verify that it is
> actually working, not just stopped giving error messages.
> 
> As I said, I had to increase the softlimit from 300000 to 3000000 before
> it worked 100% of the time.  Had no problems with qmail or the http part
> of publicfile, though the softlimit for the ftp service also had to be
> increased.
> 
>  exec envuidgid Gtinydns envdir ./env softlimit -d3000000 \
>   /usr/local/bin/tinydns
> 
> !DSPAM:1,4651ae01326136266316336!
> 
> 

<Prev in Thread] Current Thread [Next in Thread>