MariaDB [pdns]> SHOW VARIABLES LIKE 'version_malloc_library';
+------------------------+------------------------------------------------------------+
| Variable_name | Value |
+------------------------+------------------------------------------------------------+
| version_malloc_library | jemalloc 5.2.1-0-gea6b3e973b477b8061e0076bb257dbd7f3faa756 |
+------------------------+------------------------------------------------------------+
1 row in set (0.001 sec)
[mysqld_safe]
malloc-lib = /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
[Service]
Environment="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2"
Fri Apr 7 08:17:01 UTC 2023
Active: active (running) since Fri 2023-04-07 07:38:56 UTC; 38min ago
Memory: 109.4M
...
Fri Apr 7 15:17:01 UTC 2023
Active: active (running) since Fri 2023-04-07 07:38:56 UTC; 7h ago
Memory: 156.5M
Fri Apr 7 16:17:01 UTC 2023
Active: active (running) since Fri 2023-04-07 07:38:56 UTC; 8h ago
Memory: 162.3M
Fri Apr 7 17:17:01 UTC 2023
Active: active (running) since Fri 2023-04-07 07:38:56 UTC; 9h ago
Memory: 167.3M
# free -h
total used free shared buff/cache available
Mem: 1.8Gi 395Mi 151Mi 29Mi 1.3Gi 1.3Gi
Swap: 0B 0B 0B
# systemctl status mysql
● mariadb.service - MariaDB 10.5.18 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-04-06 09:09:33 CEST; 12h ago
...
Memory: 242.6M
root@ns1:~# my_print_defaults mysqld
--user=mysql
--pid-file=/run/mysqld/mysqld.pid
--basedir=/usr
--datadir=/var/lib/mysql
--tmpdir=/tmp
--lc-messages-dir=/usr/share/mysql
--lc-messages=en_US
--skip-external-locking
--bind-address=127.0.0.1
--expire_logs_days=10
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--innodb_buffer_pool_size=64M
root@ns1:~# pt-mysql-summary | grep -i empty
Empty_queries 150000 1
root@ns1:~# systemctl restart mysql
root@ns1:~# pt-mysql-summary | grep -i empty
Empty_queries 500000 6 2
root@ns1:~# pt-mysql-summary | grep -i empty
Empty_queries 350000 3 1
root@ns1:~# pt-mysql-summary | grep -i empty
Empty_queries 250000 2 1