Huge page support would be useful in JEMalloc

Kenneth Steele ken at
Tue Nov 25 09:51:40 PST 2014

I would like to be able to use Linux Huge pages in JEMalloc. It could have significant benefit for some programs performance.

The case I tested is running Suricata ( on the Tile-Gx architecture (, but it should be similar on other architectures. The glibc allocator on Linux allows using Huge pages with malloc() by running the program with "hugectl -heap". I have measured performance for two test cases under three conditions:

1)      Glibc 2.12, no huge pages (baseline)

2)      Glibc2 2.12, with 16MB huge pages

3)      JEMalloc, no huge pages

JEMalloc  gives a 4.7% increase for one test case and 5.6% increase for the other over baseline.
Hugepages gives a 27.2% and 25.3% increase over baseline for the same two test cases.

So, JEMalloc is better than glibc malloc, but much worse than glibc malloc with hugepages.

Ideally, JEMalloc with Huge pages would be the best.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the jemalloc-discuss mailing list