[nsd-users] NSD 4 / OS limitation problem?

Fredrik Pettai pettai at nordu.net
Thu Jul 2 09:26:21 UTC 2015


On 02 Jul 2015, at 08:43 , Jeroen Massar <jeroen at massar.ch> wrote:

> On 2015-07-02 08:10, Fredrik Pettai wrote:
>> Hi,
>> 
>> I recently tried to switch from nsd-3.2.19 -> nsd-4.1.3 on our largest DNS slave
>> 
>> $ grep -c zone: nsd.conf
>> 514
>> 
>> But I stumbled upon a problem with NSD4. The log complains about memory allocation:
>> 
>>>> [2015-07-01 19:40:26.285] nsd[29189]: info: zone itsnat.se read with success
>> [2015-07-01 19:40:26.302] nsd[29189]: info: rehash of zone itsnat.se. with parameters 1 0 5 c393596e0fd9f7de
>> [2015-07-01 19:40:26.789] nsd[29189]: error: mmap(/var/nsd/nsd.db, size 1376910080) error Cannot allocate memory
>> [2015-07-01 19:40:26.846] nsd[29395]: error: did not get start signal from main
>> 
>> While I know that the database is much bigger in NSD4, this shouldn’t be a problem for a modern OS.
> [..]
>> (OS is NetBSD 6_STABLE)
> 
> 32 or 64 bit?

I forgot it was a 32-bit machine… time to upgrade.

> Also how much memory does the box have physically?

8 GB, but I could be that I hit the 32-bit limit.

Anyway, running nsd with database: “” solved it for now.

Re,
/P


More information about the nsd-users mailing list