Huge page support would be useful in JEMalloc
Kenneth Steele
ken at ezchip.com
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 (http://suricata-ids.org/) on the Tile-Gx architecture (http://www.tilera.com/products/processors/TILE-Gx_Family), 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.
Thanks,
-Ken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jemalloc.net/mailman/jemalloc-discuss/attachments/20141125/eafc2004/attachment.html>
More information about the jemalloc-discuss
mailing list