Bug #114903 | MySQL 8.4.0 is 10% slower for write workloads than MySQL 8.0.37 | ||
---|---|---|---|
Submitted: | 7 May 2024 7:22 | Modified: | 2 Jun 10:09 |
Reporter: | Przemysław Skibiński (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S5 (Performance) |
Version: | 8.4.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[7 May 2024 7:22]
Przemysław Skibiński
[8 May 2024 5:24]
MySQL Verification Team
Hello Przemysław, Thank you for the report and feedback. I'm still analyzing your report but in the meantime wanted to share lefred's article where he nicely explained about several InnoDB variable default values have been modified in MySQL 8.4 to match current workloads and hardware specifications - https://lefred.be/content/mysql-8-4-lts-new-production-ready-defaults-for-innodb/ Sincerely, Umesh
[29 May 2024 6:11]
Przemysław Skibiński
I used default values from MySQL 8.0.37 in MySQL 8.4.0 with: --innodb_buffer_pool_instances=8 --innodb_change_buffering=all --innodb_page_cleaners=4 --innodb_parallel_read_threads=4 --innodb_read_io_threads=4 --innodb_doublewrite_files=16 --innodb_doublewrite_pages=4 --innodb_log_buffer_size=16M --innodb_use_fdatasync=OFF It improved performance in MySQL 8.4.0 by 3.5% for write workloads on our test server. Even with these added parameters MySQL 8.4.0 is still 7% slower on average for write workloads than MySQL 8.0.37.
[29 May 2024 7:11]
MySQL Verification Team
Hello Przemysław, Thank you for the details, will let you know if anything further needed. Sincerely, Umesh
[5 Aug 2024 6:56]
MySQL Verification Team
Hello Przemysław, Thank you for the report and feedback. regards, Umesh
[21 Oct 2024 17:19]
Przemysław Skibiński
The issue was partially fixed in July with Percona Server 8.4.0-1 at https://github.com/percona/percona-server/pull/5353 Later it was also fixed in MySQL 8.4.3 and MySQL 9.0.1 at with https://github.com/mysql/mysql-server/commit/cb257cbc86e7d18
[2 Jun 10:09]
MySQL Verification Team
Hello Przemysław, Thank you, agree - observed this during the weekend with 8.4.5 build. Closing the report for now but please feel free to open. Thank you. Sincerely, Umesh