From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 17 11:51:27 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F72E16A41F; Fri, 17 Mar 2006 11:51:27 +0000 (UTC) (envelope-from ahu@outpost.ds9a.nl) Received: from outpost.ds9a.nl (outpost.ds9a.nl [213.244.168.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9250E43D48; Fri, 17 Mar 2006 11:51:26 +0000 (GMT) (envelope-from ahu@outpost.ds9a.nl) Received: by outpost.ds9a.nl (Postfix, from userid 1000) id 930EB45D1; Fri, 17 Mar 2006 12:51:20 +0100 (CET) Date: Fri, 17 Mar 2006 12:51:20 +0100 From: bert hubert To: Jason Evans Message-ID: <20060317115120.GA28624@outpost.ds9a.nl> References: <20060316224912.GA14905@outpost.ds9a.nl> <441A150A.6000003@FreeBSD.org> <20060317075459.GA24298@outpost.ds9a.nl> <441A6FE1.4010909@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <441A6FE1.4010909@FreeBSD.org> User-Agent: Mutt/1.5.9i Cc: freebsd-hackers@freebsd.org Subject: Re: unsatisfying c++/boost::multi_index_container::erase performance on at least FreeBSD 6.0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Mar 2006 11:51:27 -0000 On Fri, Mar 17, 2006 at 12:14:25AM -0800, Jason Evans wrote: > >I'd hate to force PowerDNS users to recompile their libc for me :-) > > Yes, you should be able to use LD_PRELOAD to pre-load a shared library > that has nothing but malloc.o in it. In order to build jemalloc on 6.x, > you will also need sys/tree.h from -current. Ok, it turned out to be easier to use nedmalloc (http://www.nedprod.com/programs/portable/nedmalloc/). The FreeBSD version of the PowerDNS recursor now has performance on par with other platforms, happily serving 3000 queries/second. Thanks for your quick help Jason! I do hope FreeBSD makes the move to your allocator quickly. Regards, bert -- http://www.PowerDNS.com Open source, database driven DNS Software http://netherlabs.nl Open and Closed source services