It would appear that FreeBSD's free(3) isn't the main issue here; I built
an image with the patch, and the performance is about the same as before.

From the stack trace in my earlier message, it looks as though most of the
time is being spent in dns_rbt_deletetreeflat, following pointers in a
tight loop.

I can probably live with things the way they are now, but if I find more
time to look at this I will probably attempt to build a profiling image to
confirm where the time is being spent.

Thanks for your help!


On Sat, 2 Oct 2004, JINMEI Tatuya / [ISO-2022-JP] ã wrote:

> >>>>> On Sat, 02 Oct 2004 07:20:07 +0900,
> >>>>> JINMEI Tatuya said:

> >> Yes - that is right. The daemon shuts down in ~6:36 now.

> > Hmm, okay. If you have time for an experimental, more-aggressive
> > solution, could you try the attached patch to see how it works (either
> > with or without ISC_MEM_USE_INTERNAL_MALLOC)? It will completely skip
> > freeing actual memory at the shutdown procedure.

> Oops, sorry, the previous patch was not really correct (it had missing
> initialization). Please use this one (attached below) instead.