<div dir="ltr"><p dir="ltr">I have been tracing what appears to be the same issue on my end for a month or two (NSD 4.0.1 on a 64bit Ubuntu Linux 12.04 machine). I have built a test harness that reloads a single one-record-zone as fast as it can, capturing the memory utility, memory maps, etc of the parent and xfrd processes coupled with system slab allocator statistics.I have seen large multipliers in RAM utilization of the parent process between where it started and where it was at the latest sample. Another problem is that the time a reload takes skyrockets. I can observe the reload time taking 40x or more time than when the daemon freshly started. I am also restarting servers periodically -- which fixes both the memory consumption and the reload time issues.</p>




<p dir="ltr">In my testing, I see that the memory growth does eventually start into a upper-bounded saw-tooth function. Given that the memory growth does seem bounded (although it seems to use far too much ram) -- and I profiled NSD repeatedly with valgrind and saw no memory leak -- I have been pursuing this as a potential memory fragmentation issue. However, looking at slabinfo while running my test harness, I am seeing multiple hundred times multipliers (400-500x from where it started) on the shared_policy_node and the anon_vma node after thousands of reloads.</p>


<p>I have data from this test harness (and the harness available if needed) for review. At this point, does anyone have any input on this?</p><p>Thanks,</p><p>Will Pressly</p><p><br></p>

<div class="gmail_quote">On Feb 17, 2014 5:07 AM, "Andreas Schulze" <<a href="mailto:sca@andreasschulze.de" target="_blank">sca@andreasschulze.de</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



Hello,<br>
<br>
I found my two of my name servers are consuming more and more memory over time.<br>
NSD is supervised and started by "/usr/sbin/nsd -c /var/lib/nsd/etc/nsd/nsd.conf -d"<br>
I have remote-control and chroot enabled. The server handle only one zone.<br>
Zone data updates are "pushed" by a bind master more then 1000 times per day (it's a dnsbl zone)<br>
There is also a rbldnsd on the same host but I assume it's unrelated to the problem.<br>
<br>
* nsd-4.0.0.png shows the problem on server #1<br>
* nsd-4.0.1.png shows my tests on server #2:<br>
<br>
In week 3,4 and 5 it was a nsd-4.0.0. A daily cronjob called "killall nsd".<br>
(NSD is restarted by the supervisor every time)<br>
In week 6 I updated to nsd-4.0.1 and stopped the daily "killall nsd"<br>
<br>
I think there is a little amount of memory not released somewhere in NSD.<br>
But I have no idea how to find the memory leak.<br>
<br>
Andreas<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>_______________________________________________<br>
nsd-users mailing list<br>
nsd-users@NLnetLabs.nl<br>
<a href="http://open.nlnetlabs.nl/mailman/listinfo/nsd-users" target="_blank">http://open.nlnetlabs.nl/mailman/listinfo/nsd-users</a><br>
<br></blockquote></div>
</div>