Using MariaDB with TCMalloc or jemalloc
Instructions on building and configuring MariaDB to use alternative memory allocators like TCMalloc or jemalloc for improved performance and profiling.
Using tcmalloc or jemalloc
Checking the malloc Implementation in Use
SHOW GLOBAL VARIABLES LIKE 'version_malloc_library';Building MariaDB with an alternative to malloc
cmake -DCMAKE_EXE_LINKER_FLAGS='-ltcmalloc' -DWITH_SAFEMALLOC=OFFStarting mariadbd-safe with an alternative to malloc
/usr/sbin/mariadbd-safe --malloc-lib=tcmallocStarting mariadbd with an alternative to malloc
Configuring systemd
Dockerfile
Vagrantfile
Finding memory leaks with jemalloc
See Also
Last updated
Was this helpful?

