malloc vs ptmalloc2

Jason Henson jason at ec.rr.com
Sat Feb 12 22:45:16 PST 2005


I saw on a few of the lists here how linux uses ptmalloc2 and it  
outperforms bsd's malloc.  I tried to do some research into it and  
found PHK's pdf on it and it seems bsd's malloc was ment to be ok in  
most every situation. Because of this it shines when primary storage is  
seriously over committed.

So here is my question, I use FreeBSD as a desktop and never ever use  
swap(I just don't stress my system enough?), can I use ptmalloc in  
stead of malloc?  Like defining SCHED_ULE instead of SCHED_4BSD.  Can  
the system malloc be switched out?  



More information about the freebsd-hackers mailing list