Dan Nelson wrote:
> Faisal Feroz wrote:
>> On solaris malloc calls block all threads and create heap contention.
>> Indeed, Sun actually dis-courages the use of malloc. This would
>> explain why we could never see our CPU utilization go up on solaris.
>
> Solaris has a malloc library especially for threaded apps. Just link
> your binary with -lmtmalloc. Also see "A Comparison of Memory
> Allocators in Multiprocessors":
> http://developers.sun.com/solaris/articles/multiproc/multiproc.html
I should have waited before posting. There's also libumem (link with
-lumem). Paper at http://www.usenix.org/event/usenix01/full_papers/bonwick/
I recommend you do your own benchmarks.