Bug #82422 | GTIDS REDUCE PERFORMANCE ON WORKLOADS WITH MANY SMALL TRANSACTIONS | ||
---|---|---|---|
Submitted: | 3 Aug 2016 11:27 | Modified: | 16 Dec 2016 14:41 |
Reporter: | Vitor Oliveira | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.7.14 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[3 Aug 2016 11:27]
Vitor Oliveira
[8 Sep 2016 17:01]
Vitor Oliveira
Posted by developer: The proposed patch was tested with Sysbench RW, Update Index and Write-only (RW without reads). +-----------+---------+-----------------+----------------+--------------+ | BENCHMARK | THREADS |OVERHEAD BEFORE | OVERHEAD AFTER | SANITY CHECK | +-----------+---------+-----------------+----------------+--------------+ | Sysbench | 20 | 0,1% | -0,5% | 0.4% | | RW | 50 | 1,4% | 0,3% | -0.5% | | (SSD) | 100 | 1,4% | -1,3% | 0.0% | | | 300 | 7,3% | -1,1% | 0.2% | +-----------+---------+-----------------+----------------+--------------+ | Sysbench | 20 | 9,0% | 2,3% | 1.2% | | Update | 50 | 21,2% | 3,0% | -0.3% | | Index | 100 | 41,1% | 4,5% | 1.5% | | (SSD) | 300 | 61,1% | 5,5% | 1.0% | +-----------+---------+-----------------+----------------+--------------+ | Sysbench | 20 | 1,0% | 0,5% | 1.5% | | Write- | 50 | -3,0% | 1,1% | 1.1% | | only | 100 | -2,2% | -0,2% | -3.2% | | (SSD) | 300 | 28,7% | -1,1% | 0.1% | +-----------+---------+-----------------+----------------+--------------+ The sanity check column presents the results of the binlog without GTID setup with the new patch compared to baseline, in order to evaluate if the patch introduced a degradation. The tests were repeated 5 times and the median overhead was chosen (small variations may be the result of this). The issues seems to be solved: no degradation found in RW and Write-only and only a small degradation in Update Index, which I consider justified.
[16 Dec 2016 14:41]
David Moss
Posted by developer: Thank you for your feedback, this has been fixed in upcoming versions and the following was added to the 5.7.17 and 8.0.1 changelogs: The group commit update of GTIDs has been refactored to improve performance on workloads with many small transactions.
[26 Jan 2017 19:15]
Erlend Dahl
Bug#75299 group commit with GTID enabled need more optimization was marked as a duplicate.