<font size=2 face="sans-serif">Hello,</font>
<br>
<br><font size=2 face="sans-serif">we ( the DENIC eG ) are using your nameserver
software NSD now for several years.</font>
<br><font size=2 face="sans-serif">After switching to NSD-3.2.3 we
are getting trouble with the memory footprint of NSD-3.2.3.</font>
<br><font size=2 face="sans-serif">The memory consumtion is raising
until its physical limit ist reached, then swap is used.</font>
<br><font size=2 face="sans-serif"> After all limits are reached NSD-3.2.3
can't start an ixfr anymore.</font>
<br>
<br><font size=2 face="sans-serif">It looks like if swapped memory is not
freed.</font>
<br><font size=2 face="sans-serif">Starting NSD with one process, NSD forks
a second process as usual. </font>
<br><font size=2 face="sans-serif">Then another process is opened<strike>.</strike>
beeing independent from the others.</font>
<br><font size=2 face="sans-serif">I assume the forked process is used
to perform the ixfr<strike>.</strike></font>
<br><font size=2 face="sans-serif">I don't know the purpose of the independent
process. </font>
<br>
<br><font size=2 face="sans-serif">We run our servers on Xen virtual machines
using 12 GB of RAM and 10 GB Swap.</font>
<br><font size=2 face="sans-serif">The size of our zonefile is about 1.1
GB.</font>
<br><font size=2 face="sans-serif">What size of RAM and swao do you recommend
for a zonefile of this size ?</font>
<br><font size=2 face="sans-serif">In the past, using NSD-2.1.4,
a RAM size of 8 GB had been sufficient.</font>
<br>
<br><font size=2 face="sans-serif">Here an output of top of our server
after a fresh start:</font>
<br>
<br><font size=2 face="sans-serif">top - 15:14:33 up 50 days, 3:15,
2 users, load average: 0.00, 0.23, 0.34</font>
<br><font size=2 face="sans-serif">Tasks: 61 total, 1 running,
60 sleeping, 0 stopped, 0 zombie</font>
<br><font size=2 face="sans-serif">Cpu(s): 0.0%us, 0.0%sy,
0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st</font>
<br><font size=2 face="sans-serif">Mem: 12582912k total, 6505944k
used, 6076968k free, 1088k buffers</font>
<br><font size=2 face="sans-serif">Swap: 9999992k total, 689732k
used, 9310260k free, 8348k cached</font>
<br>
<br><font size=2 face="sans-serif"> PID USER PR
NI VIRT RES SHR S %CPU %MEM TIME+
COMMAND</font>
<br><font size=2 face="sans-serif">20616 dnsadm 15
0 86632 1612 912 S 0 0.0 0:00.00 sshd</font>
<br><font size=2 face="sans-serif">20617 dnsadm 15
0 67276 1988 988 S 0 0.0 0:00.01 tcsh</font>
<br><font size=2 face="sans-serif">20909 dnsadm 15
0 63536 992 836 S 0 0.0 0:00.00 less</font>
<br><font size=2 face="sans-serif">21936 dnsadm 15
0 86628 1608 912 S 0 0.0 0:00.00 sshd</font>
<br><font size=2 face="sans-serif">21937 dnsadm 15
0 67268 1984 988 S 0 0.0 0:00.02 tcsh</font>
<br><font size=2 face="sans-serif">22259 dnsadm 15
0 10704 992 776 R 0 0.0 0:00.15 top</font>
<br><font size=2 face="sans-serif">22273 dnsadm 16
0 3282m 2.6g 608 S 0 21.3 0:14.30 nsd</font>
<br><font size=2 face="sans-serif">22284 dnsadm 15
0 3439m 3.3g 412 S 0 27.7 5:40.85 nsd</font>
<br><font size=2 face="sans-serif">22526 dnsadm 18
0 3439m 3.3g 136 S 0 27.7 0:00.00 nsd</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">Here the output of top approx.
1 week of running:</font>
<br>
<br><font size=2 face="sans-serif">top - 14:53:59 up 50 days, 2:54,
2 users, load average: 0.00, 0.00, 0.00</font>
<br><font size=2 face="sans-serif">Tasks: 61 total, 2 running,
59 sleeping, 0 stopped, 0 zombie</font>
<br><font size=2 face="sans-serif">Cpu(s): 0.0%us, 0.0%sy,
0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st</font>
<br><font size=2 face="sans-serif">Mem: 12582912k total, 9097360k
used, 3485552k free, 94196k buffers</font>
<br><font size=2 face="sans-serif">Swap: 9999992k total, 2720028k
used, 7279964k free, 1953724k cached</font>
<br>
<br><font size=2 face="sans-serif"> PID USER PR
NI VIRT RES SHR S %CPU %MEM TIME+
COMMAND</font>
<br><font size=2 face="sans-serif">19608 dnsadm 15
0 5758m 5.6g 340 S 0 46.5 0:00.84 nsd</font>
<br><font size=2 face="sans-serif">19609 dnsadm 18
0 5758m 5.6g 136 S 0 46.5 0:00.00 nsd</font>
<br><font size=2 face="sans-serif">20197 dnsadm 15
0 3282m 704m 616 S 0 5.7 0:14.68 nsd</font>
<br><font size=2 face="sans-serif">20616 dnsadm 15
0 86632 1624 912 S 0 0.0 0:00.00 sshd</font>
<br><font size=2 face="sans-serif">20617 dnsadm 15
0 67276 1988 988 S 0 0.0 0:00.01 tcsh</font>
<br><font size=2 face="sans-serif">20909 dnsadm 15
0 63536 992 836 S 0 0.0 0:00.00 less</font>
<br><font size=2 face="sans-serif">21936 dnsadm 16
0 86628 1616 912 R 0 0.0 0:00.00 sshd</font>
<br><font size=2 face="sans-serif">21937 dnsadm 15
0 67268 1984 988 S 0 0.0 0:00.02 tcsh</font>
<br><font size=2 face="sans-serif">21970 dnsadm 15
0 10704 992 776 R 0 0.0 0:00.00 top</font>
<br>
<br>
<br><font size=2 face="sans-serif">As You can see, NSD is using a lot of
RAM space.</font>
<br><font size=2 face="sans-serif">The longer NSD is running the more memory
is allocated until the limit is reached having the famous oom-killer (out
of memory) inside the kernel killing some process.</font>
<br>
<br><font size=2 face="sans-serif">There seems to be a memory leak somewhere.</font>
<br>
<br><font size=2 face="sans-serif">Can you assist us with this problem
?</font>
<br>
<br><font size=2 face="sans-serif">Thank you very much..</font>
<br>
<br><font size=2 face="sans-serif">kind regards</font>
<br>
<br><font size=2 face="sans-serif">-- <br>
Christian Petrasch <br>
IT-Services<br>
<br>
DENIC eG<br>
Kaiserstraße 75-77<br>
60329 Frankfurt am Main<br>
GERMANY<br>
<br>
E-Mail: petrasch@denic.de<br>
Fon: +49 69 27235-429<br>
Fax: +49 69 27235-239<br>
</font><a href=http://www.denic.de/><font size=2 face="sans-serif">http://www.denic.de</font></a><font size=2 face="sans-serif"><br>
<br>
PGP-KeyID: 17613DFA, Fingerprint: 791A 40DF 47EF DBBD D8E3 72D0 9A6A 846E
1761 3DFA<br>
<br>
Angaben nach § 25a Absatz 1 GenG:<br>
DENIC Domain Verwaltungs- und Betriebsgesellschaft eG (Sitz: Frankfurt
am Main)<br>
Vorstand: Sabine Dolderer, Marcus Schäfer, Carsten Schiefner, Dr. Jörg
Schweiger <br>
Vorsitzender des Aufsichtsrats: Elmar Knipp<br>
Eingetragen unter Nr. 770 im Genossenschaftsregister, Amtsgericht Frankfurt
am Main</font>