Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.4.2
-
None
Description
Once the audit plugin is loaded into MariaDB server, it causes a performance loss. Even if the plugin is turned off with
SET GLOBAL server_audit_logging=OFF |
Unloading the audit plugin restores the original condition.
Attachments
Issue Links
- includes
-
MDEV-19174 server_audit plugin locks mutex for every event when server_audit_logging=OFF
-
- Closed
-
-
MDEV-19291 server_audit plugin mutex causes stalls at very high concurrency
-
- Closed
-
- relates to
-
MDEV-20236 Add audit plugin API functions to disable/enable specific audit plugins
-
- Closed
-
-
MDEV-20269 Create new "Auditing" thread state
-
- Open
-
reproduced with MariaDB 10.4.2:
#sysbench OLTP read/write, 14 reads + 4 writes per TRX, 1 table
#numbers are queries per second
#
#thread count 1 8 16 32 64 128 256
mariadb-10.4.2 4346.2 26684 53754 106532 155031 169569 161245
mariadb-10.4.2-audit 4335.4 27140 53612 98709 137914 149979 145754
The effect gets more visible at higher concurrency, so it is probably some shared global resource. The test machine has 16 cores (32 hardware threads). Customer with 40 core hardware reports up to 70% reduction in throughput.