jemalloc-5.3.1

Introduction to jemalloc

The jemalloc package provides a general-purpose, scalable, concurrent memory allocator. In addition to drop-in replacements for memory allocation functions defined in the standard C library (e.g., malloc), jemalloc provides several non-standard functions.

Additional Downloads

Installation of jemalloc

Apply a patch to fix building jemalloc with GCC 16:

patch -Np1 -i ../jemalloc-5.3.1-gcc-16-1.patch

Install jemalloc by running the following commands:

autoreconf -fiv &&
./configure --prefix=/usr --disable-static &&
make

Now, as the root user:

make install &&
mv -vf /usr/share/doc/jemalloc{,-5.3.1}

Contents

Installed Programs: jemalloc-config, jemalloc.sh, and jeprof
Installed Libraries: libjemalloc
Installed Directories: /usr/include/jemalloc and /usr/share/doc/jemalloc-5.3.1

Short Descriptions

jemalloc-config

prints information about the last compile, such as libraries linked against and prefix

jemalloc.sh

preloads libjemalloc before executing another program

jeprof

utility to parse and analyze jemalloc's heap profile dumps

libjemalloc

provides memory allocation functions