improving zonec performance on many zones

Erik Rozendaal erik at NLnetLabs.nl
Tue Apr 19 11:53:01 UTC 2005


fujiwara at jprs.co.jp wrote:
> 
> This patch needs more memory space(number of ownernames * sizeof(pointer)).
> But large number of zones case, it improves "zonec" performance.

If you are sure every zone is passed to zonec only once (the usual case) 
you can simply always start a new zone when a SOA record is encountered 
by applying the attached patch. This avoids the memory overhead of 
another pointer in domain_type.

In the future NSD will use a binary search instead here, so that should 
also solve this performance problem.

Erik
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: zonec.c.patch
URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20050419/d7ac0307/attachment.ksh>


More information about the nsd-users mailing list