Bug #116539 | MySQL 8.0/8.4 performs worse on RHEL9 than on RHEL8 | ||
---|---|---|---|
Submitted: | 4 Nov 2024 14:15 | Modified: | 6 Nov 2024 9:22 |
Reporter: | Truls Bergskaug | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 8.0, 8.4 | OS: | Red Hat (RHEL9) |
Assigned to: | CPU Architecture: | x86 (Any) |
[4 Nov 2024 14:15]
Truls Bergskaug
[4 Nov 2024 14:29]
MySQL Verification Team
Hi Mr. Bergskaug, Thank you for your bug report. You have provided the following sentence: " Using MySQL 8.0 and 8.4 (different patches) performs worse on RHEL9 than on RHEL8 using TCP/IP connection. Local connect (localhost) seems to work fine. " This proves that a problem is in TCP/IP implementations on different versions of the Red Hat Linux. The problem is in TCP/IP. The fact that differences in 8.4 are smaller is due to some changes in the client-server protocol in 8.4. Code is simplified, since there is no more native password, a number of system settings have been disabled and so on and so forth ...... You can read all about it in 8.4 Reference Manual. Not a bug.
[4 Nov 2024 15:37]
Terje Røsten
RHEL9 is using OpenSSL 3.0, can you try to repeat with TLS/SSL disabled on RHEL9?
[4 Nov 2024 15:45]
MySQL Verification Team
Thank you, Terje ....
[6 Nov 2024 9:22]
Truls Bergskaug
We have now tested with or without ssl enabled, thanks to hint from Terje Røsten. With SSL enabled: rhel9, MySQL 8.0.36: [root@m8r9-bserver1.lab ~]# mysqlslap -a -h 10.144.8.88 -i 100 -c 100 Benchmark Average number of seconds to run all queries: 3.628 seconds Minimum number of seconds to run all queries: 3.314 seconds Maximum number of seconds to run all queries: 4.099 seconds Number of clients running queries: 100 Average number of queries per client: 0 Without ssl (user auth with 'mysql_native_password'. [root@m8r9-bserver1.lab ~]# mysqlslap -a -u mysqlslap -p -h 10.144.8.88 -i 100 -c 100 Enter password: Benchmark Average number of seconds to run all queries: 0.162 seconds Minimum number of seconds to run all queries: 0.129 seconds Maximum number of seconds to run all queries: 0.356 seconds Number of clients running queries: 100 Average number of queries per client: 0 Skipping SSL seems to solve the performance-issue. It seems that MySQL 8.4 not allows to skip ssl, so using MySQL 8.4 may show very different performance using socket and TCP connections when using RHEL9
[6 Nov 2024 11:07]
MySQL Verification Team
Thank you Mr. Bergskaug, For confirming the cause of the performance degradation. TLS/SSL libraries shipped with OS seem to get more and more complex.