Bugzilla – Bug 841
big local-zone's make it consume large amounts of memory
Last modified: 2016-09-29 15:13:07 CEST
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:
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.
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