pthreads & dynamic memory in fbsd vs. the same in linux

Niall Douglas s_sourceforge at nedprod.com
Thu Feb 10 11:12:34 PST 2005


On 10 Feb 2005 at 16:04, Andriy Tkachuk wrote:

> > > It's interesting that the same program behaves differently
> > > when it is compiled in linux and run on my fbsd machine in
> > > linux_base-7.1_7 .

Linux uses ptmalloc2 as its memory allocator, an extremely efficient 
implementation whose performance under a heavily loaded multithreaded 
system is impressive. FreeBSD does not.

You can get ptmalloc2 from 
http://www.nedprod.com/programs/Win32/ptmalloc2/. It would be nice if 
FreeBSD were to adopt this allocator as the system default (it has a 
BSD type license).

Cheers,
Niall





More information about the freebsd-threads mailing list