Transparent Huge Pages

Jakob Blomer jakob.blomer at cern.ch
Mon Feb 20 07:44:37 PST 2012


Hi,

jemalloc seems to be prone to transparent huge pages 
(https://lwn.net/Articles/423584), presumably due to its use of mmap(). 
  In my case (fuse module), the initial memory consumption jumped from 
~12M to ~27M.  The use of --enable-dss helps a little, bringing the 
consumption down to ~19M.

Did anyone else experienced similar behavior?  Is there an easy way of 
avoiding transparent huge pages for jemalloc'ed memory?  The only 
workaround that comes to my mind is a malloc wrapper that runs 
madvise(..., MADV_NOHUGEPAGE) on every newly allocated chunk.

Cheers,
Jakob




More information about the jemalloc-discuss mailing list