From owner-freebsd-threads@FreeBSD.ORG Wed Apr 13 23:13:15 2005 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C915B16A4CE for ; Wed, 13 Apr 2005 23:13:15 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE8CE43D55; Wed, 13 Apr 2005 23:13:15 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j3DNDEbq029322; Wed, 13 Apr 2005 23:13:15 GMT (envelope-from davidxu@freebsd.org) Message-ID: <425DA78E.2050701@freebsd.org> Date: Thu, 14 Apr 2005 07:13:18 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.5) Gecko/20050402 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Niall Douglas References: <425D8546.2050306@he.iki.fi> <425DAE1F.5558.EDA8BD7@localhost> In-Reply-To: <425DAE1F.5558.EDA8BD7@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: thread aware malloc X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2005 23:13:15 -0000 Niall Douglas wrote: >I've already ported ptmalloc2 to FreeBSD. The performance increase is >steller to put it mildly, even with FreeBSD's poor multithreading >performance. You're talking ten or more times faster in heavily >multithreaded code :) > > > Poor multithreading performance? I don't know what library you are talking about. I admit that malloc/free is the main bottleneck in userland, a SMP-aware and CPU locality allocator is welcome. >http://www.nedprod.com/programs/Win32/ptmalloc2/index.html > >All it requires is someone to merge it with FreeBSD's libc. The >licence is LGPL but the original ptmalloc2 is BSD-like. You almost >certainly could replicate the glibc changes and thus maintain the BSD >license in very little time. > >Cheers, >Niall > > >