- this diff causes the update-index regression. The diff adds support for instant add/drop column to InnoDB and landed in 8.0.29, then 8.0.29 was retracted and the diff is new to most of us in 8.0.30.
- MySQL 8.0.40 fixes regressions for many of the read-only microbenchmarks. I failed to acknowledge that in my previous post. But the large regression for long range scans remains, especially at lower concurrency levels. And the regression for update-index also remains in 8.0.40.
- I remain confused about why this problem is so much worse on one of my servers (dell32) than on my other large servers
- bug 111538 - compile-time inlining was changed leading to less-inlining for performance critical code and more CPU overhead. This bug has been closed as of 8.0.40 but the perf regression is still here.
- bug 116463 - InnoDB busy-wait loops wait ~20% longer on average. This change wasn't intended but arrived as part of rewriting hash functions used by InnoDB. The impact from this is more CPU overhead and more context switches when there is contention. I filed this bug recently and expect it to be fixed soon.
- new hash functions - the hash functions used by InnoDB were rewritten and while the new algorithms are likely better at hashing uniformly, they changes also brought a few bugs and bug fixes
- I filed bug 116531 for the update-index regression
InnoDB: To improve code quality and facilitate debugging, instances of
#define
in theInnoDB
sources were replaced byconstexpr
specifiers or inline functions. (WL #14680)InnoDB:
InnoDB
now supportsALTER TABLE ... DROP COLUMN
operations usingALGORITHM=INSTANT
.Operations that support
ALGORITHM=INSTANT
only modify metadata in the data dictionary. Table data is unaffected, making the operations instantaneous. If not specified explicitly,ALGORITHM=INSTANT
is used by default by DDL operations that support it.Prior to MySQL 8.0.29, an instantly added column could only be added as the last column of the table. From MySQL 8.0.29, an instantly added column can be added to any position in the table.
Instantly added or dropped columns create a new row version. Up to 64 row versions are permitted. A new
TOTAL_ROW_VERSIONS
column was added to theINFORMATION_SCHEMA.INNODB_TABLES
table to track the number of row versions.For more information about DDL operations that support
ALGORITHM=INSTANT
, see Online DDL Operations. (WL #13899)
InnoDB: Hash and random generator functions in the
InnoDB
sources were improved. (Bug #16739204, Bug #23584861)
InnoDB: Changes in hashing functions made in MySQL 8.0.30 had an adverse effect on performance. (Bug #34870256)
Performance; InnoDB: Several functions internal to
InnoDB
, which were defined as inline in MySQL 8.0.28, were found to be no longer inline in MySQL 8.0.33, due in part to refactoring which accompanied improvements made in MySQL 8.0.30 to improve theInnoDB
adaptive hash index. This had an adverse effect on queries using joins onInnoDB
tables. (Bug #111538, Bug #35531293)References: This issue is a regression of: Bug #81814, Bug #16739204, Bug #23584861.
- my8028_rel_o2nofp
- MySQL 8.0.28 community release
- my8029_rel_o2nofp
- MySQL 8.0.29 from the git repo
- my8040_rel_o2nofp
- MySQL 8.0.40 community release
- my8029_rel_o2nofp_preidrop_155cf3d902
- this is after 8.0.28 but prior to 8.0.29 and is the diff immediately prior to the diff that adds support for instant add/drop column. It is here in github.
- my8029_rel_o2nofp_drop_e8f422de
- this is after 8.0.28 but prior to 8.0.29 and is the diff that adds support for instant add/drop column. It is here in github.
- dell32
- Dell Precision 7865 Tower Workstation with 1 socket, 128G RAM, AMD Ryzen Threadripper PRO 5975WX with 32-Cores, 2 m.2 SSD (each 2TB, RAID SW 0, ext4).
- ax162-s
- AMD EPYC 9454P 48-Core Processor with SMT disabled, 128G RAM, Ubuntu 22.04 and ext4 on 2 NVMe devices with SW RAID 1. This is in the Hetzner cloud.
- rQPS is: (QPS for my version / QPS for base version)
- base version is the QPS from MySQL 8.0.28
- my version is one of the other versions
- Throughput on update-index drops almost in half starting in 8.0.29. The problem arrives in the diff that adds instant add/drop column support. The problem remains in 8.0.40.
- Metrics from vmstat and iostat are here and the results for update-index show a ~1.4X increase in both CPU overhead (cpu/o) and context switch rates (cs/o) per update statement.
- Throughput per microbenchmark is here for relative (csv, tsv) and absolute (csv, tsv)
- Throughput on update-index drops by 20% starting in 8.0.29. The problem arrives in the diff that adds instant add/drop column support. The regression isn't as bad in 8.0.40 where the drop is only ~10% relative to 8.0.28.
- Metrics from vmstat and iostat are here and the results for update-index show a ~1.15X increase in both CPU overhead (cpu/o) and context switch rates (cs/o) per update statement in 8.0.29 and smaller (1.09X for CPU, 1.03X for context switches) in 8.0.40.
- Throughput per microbenchmark is here for relative (csv, tsv) and absolute (csv, tsv)
No comments:
Post a Comment