Bugzilla – Bug 841
big local-zone's make it consume large amounts of memory
Last modified: 2019-04-18 16:13:21 CEST
Hi, The discussion in https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=839 reminded me that I've forgotten to forward this bug report from the Debian BTS: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=696559 This bug is slightly different from #839 in that actual RR's are being created (and I think they are all in the same local-zone), so I'm not sure if the deferred allocation fix in #839 would be effective for this related issue.
Hi Robert, It fails because it creates one RRset with 60.000 elements. And it reallocates arrays for the rrset for every RR. The solution is to cap the number of RRs in an RRset to a sensible maximum. With 16 bytes for an A record and 64K, 4096 seems a safe maximum. Most RRsets are very much smaller so I see no real need to do anything about remaining couple Mb memory usage. Best regards, Wouter
The circumstance is progressively entangled on nonuniform memory get to systems. When in doubt, the allocator endeavors to find memory local to the processor playing out the distribution, despite the fact that there are ways. http://www.essayempire.co.uk