Huge page support would be useful in JEMalloc

Jeff Hammond at
Tue Dec 2 00:09:47 PST 2014

On Mon, Dec 1, 2014 at 3:25 PM, Eric Wong <normalperson at> wrote:
> Kenneth Steele <ken at> wrote:
>> Ideally, JEMalloc with Huge pages would be the best.
> For some apps such as yours, yes.  And jemalloc can already use
> transparent hugepages, but there are downsides to apps (e.g. redis)
> which fork:
> Not sure if there's an automatic, best-of-both worlds approach...

Large pages are widely known to be a win in high-performance
computing, e.g. Cray supercomputers.  Not that anyone sane forks
(outside of program launch) in HPC programs, but you can't do it if
you want to in Cray Linux anyways (at least the last time I read the
docs).  Same story for Blue Gene, but since Blue Gene doesn't run
Linux, there are a different set of issues to consider in the context
of jemalloc.

The positive effective of large pages on TLB misses are pretty
obvious, but there are plenty of papers written about this topic if
people need evidence.  TLB misses are more common than fork() in all
of the codes where I care about performance...

I'm optimistic that will let me exploit
large pages on Cray machines, but I haven't had time to try it yet.



Jeff Hammond at

More information about the jemalloc-discuss mailing list