[MDEV-2754] LP:923772 - performance regression in mariadb-5.3 with many threads Created: 2012-01-30 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Axel Schwenke | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
sysbench OLTP benchmark with 64 threads yields 50% or fewer operations per second with MariaDB 5.3.3-rc compared to MariaDB 5.2.10. I.e. on a machine with 24 cores we get 125K ops/sec with 5.2.10 but only 64K ops/sec with 5.3.3. With more cores the result gets worse. I.e. 32 cores give 175K vs. 39K. sysbench parameters: --test=oltp --num-threads=64 --max-time=60 --max-requests=0 --oltp-table-size=10000000 --db-driver=mysql --mysql-table-engine=innodb my.cnf: skip-external-locking PMP shows significant mutex contention in the Query_cache::try_lock() method. If the query cache is disabled, 5.3.3 performance gets dramatically better. Still 5.2.10 is about 20% faster. There seems to be extra contention inside InnoDB, caused by make_join_statistics(). The same call stack can be seen in 5.2.10, but less often. |
| Comments |
| Comment by Axel Schwenke [ 2012-01-30 ] |
|
Re: performance regression in mariadb-5.3 with many threads |
| Comment by Axel Schwenke [ 2012-01-30 ] |
|
stack dumps from PMP for 5.2.10 and 5.3.3 with and w/o QC |
| Comment by Rasmus Johansson (Inactive) [ 2012-02-14 ] |
|
Launchpad bug id: 923772 |