[zeromq-dev] [PATCH] Custom zmq_msg_t allocator

Dhammika Pathirana dhammika at gmail.com
Thu Jan 20 19:05:15 CET 2011


Hi Douglas,

On Thu, Jan 20, 2011 at 7:23 AM, Douglas Creager <dcreager at dcreager.net> wrote:
> I like the tcmalloc suggestion, it sounds like an easier way around the problem.  That wouldn't require any changes at all to zeromq, right?  I'd only do the -ltcmalloc when linking the final application, and not with any of the intervening libraries.  I'll do some quick tests on that to see how it works.
>
> If tcmalloc works as expected, then the patch will no longer be necessary.  But here are the answers to your questions for posterity.
>

There's jemalloc too,
http://www.canonware.com/jemalloc

It's similar to tcmalloc with thread local cache, but has better
fragmentation support.
For long running apps, it'll do better.


Dhammika



More information about the zeromq-dev mailing list