jemalloc enhancement for small-memory systems

Jason Evans jasone at freebsd.org
Sun Dec 23 17:16:42 UTC 2012


On Dec 22, 2012, at 2:40 PM, Tim Kientzle <tim at kientzle.com> wrote:
> Would it be feasible for jemalloc to initially allocate
> small blocks (to not over-allocate for small programs and
> systems with small RAM) and then allocate successively
> larger blocks as the program requires more memory?

All chunks must be the same size in jemalloc, so it's not possible to increase chunk size over the lifetime of an application.  As Ian said, chunk size isn't a major factor in physical memory usage unless mlockall(2) enters the picture.

Jason


More information about the freebsd-arch mailing list