thread aware malloc

David Xu davidxu at freebsd.org
Wed Apr 13 16:13:15 PDT 2005


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
>
>  
>



More information about the freebsd-threads mailing list