The benefits of jemalloc versus glibc memory allocator for use with MySQL have been widely discussed. With jemalloc (along with Transparent Huge Pages disabled) there is less memory fragmentation, and thus more efficient resource management of the server memory. For MySQL 5.6, installing jemalloc is enough to enable it when starting the MySQL process. However, for MySQL 5.7 and 8.0.X series, you will need to take a few extra steps.
Enabling jemalloc on Percona Server for MySQL
Installing the jemalloc package is simple for Percona. This is
because the library is available on the Percona repository, which
is available for both apt and
yum package management:
- …