
On Thu, Mar 16, 2006 at 11:58:31PM +0100, JOAQUIN_LOPEZ_MU?Z wrote:
2) Undo 1) and try running the 100..5000 loop in reverse order 5000..100. What do you get? If the quadratic behavior shows as we approach n=100 (the opposite of the original benchmark) I would tend to think the issue has to do with memory fragmentation.
Didn't make a difference I'm afraid.
3) Try a pool allocator like for instance boost::fast_pool_allocator:
That might be an option but has other drawbacks, but I'll try. Joaquin, many thanks for your help! I've mentioned you in the PowerDNS release notes: http://doc.powerdns.com/changelog.html#CHANGELOG-2-9-20 I've reported the FreeBSD problem to the freebsd-hackers list: http://lists.freebsd.org/pipermail/freebsd-hackers/2006-March/015765.html I hope they can make something of it. Thanks again! -- http://www.PowerDNS.com Open source, database driven DNS Software http://netherlabs.nl Open and Closed source services