Recent posts

Speeding up Asterisk with the Hoard Memory Allocator

After months of working Asterisk to improve performance with our routing engine, we're making a lot of headway. We can now run at greater than 250 calls/second in a stable manner. However, today I decided to run some tests of a different kind.
I installed the hoard memory allocator library from http://prisms.cs.umass.edu/emery/index.php?page=hoard and told the system to use that for asterisk instead of the standard system malloc.

LD_PRELOAD="/usr/lib64/libhoard.so" /opt/asterisk/sbin/asterisk -g

This resulted in about a 30 call per second increase in stable runs, and reduced cpu utilization on 250 calls per second by 10%. That's a pretty big increase for something that's almost free. Obviously more testing is needed, but we're going to run side by side comparisons and hopefully I'll be diligent enough to getting around to posting more data.