From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 17 07:55:05 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 CBD9F16A420; Fri, 17 Mar 2006 07:55:05 +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 63CAE43D48; Fri, 17 Mar 2006 07:55:05 +0000 (GMT) (envelope-from ahu@outpost.ds9a.nl) Received: by outpost.ds9a.nl (Postfix, from userid 1000) id 63A34468D; Fri, 17 Mar 2006 08:54:59 +0100 (CET) Date: Fri, 17 Mar 2006 08:54:59 +0100 From: bert hubert To: Jason Evans Message-ID: <20060317075459.GA24298@outpost.ds9a.nl> References: <20060316224912.GA14905@outpost.ds9a.nl> <441A150A.6000003@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <441A150A.6000003@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 07:55:06 -0000 On Thu, Mar 16, 2006 at 05:46:50PM -0800, Jason Evans wrote: > I ran cache-test on -current using phkmalloc and a couple of different > versions of jemalloc. jemalloc does not appear to have the same issue > for this test. It isn't obvious to me why phkmalloc is performing so > poorly, but I think you can assume that this is a malloc performance > problem. Thanks Jason, this has helped narrow down the problem significantly. From this I understand that to work around this problem, I have some options: 1) tweak my code to not allocate such a large amount of small objects 2) move away from malloc/free based c++ allocators 3) recompile libc with jemalloc I'm really hoping for 4) where I can LD_PRELOAD only jemalloc, would that be possible? Or does libc include parts of malloc/free itself inlined? I'd hate to force PowerDNS users to recompile their libc for me :-) Thanks! -- http://www.PowerDNS.com Open source, database driven DNS Software http://netherlabs.nl Open and Closed source services