Bug #70819 | SHOW ENGINE INNODB MUTEX does NOT work with timed_mutex properly | ||
---|---|---|---|
Submitted: | 5 Nov 2013 11:55 | Modified: | 22 Oct 2014 15:30 |
Reporter: | Valeriy Kravchuk | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | 5.6.14 | OS: | Any |
Assigned to: | Stefan Hinz | CPU Architecture: | Any |
Tags: | debug, regression, timed_mutexes |
[5 Nov 2013 11:55]
Valeriy Kravchuk
[5 Nov 2013 17:05]
MySQL Verification Team
Ran a couple of test cases and got the same results. Hence, verified as described ... Deserves one of the actions as proposed by the reporter.
[5 Nov 2013 21:49]
Sunny Bains
timed_mutex was a hack that was eventually moved under debug code. I can't imagine in their right mind profiling for performance with InnoDB debug mode enabled. Please fix the documentation.
[6 Nov 2013 11:20]
Valeriy Kravchuk
Remove this feature (providing extra information in debug builds) entirely even in 5.6+, I don't mind (not sure if this idea follows deprecation process properly though). But then remove it everywhere and document properly, explaining in details how to get the same information via PERFORMANCE_SCHEMA and what are performance implications in both cases. In the meantime I still consider current state: mysql> show engine innodb mutex; +--------+-------------------------+--------------------------------------------------------------------------------+ | Type | Name | Status | +--------+-------------------------+--------------------------------------------------------------------------------+ | InnoDB | log0log.cc:737 | os_waits=5 | | InnoDB | buf0buf.cc:1242 | os_waits=6 | | InnoDB | fil0fil.cc:1690 | os_waits=55 | | InnoDB | dict0dict.cc:896 | os_waits=4 | | InnoDB | log0log.cc:799 | os_waits=7 | | InnoDB | combined buf0buf.cc:993 | os_waits=3 | | InnoDB | rw_lock_mutexes | count=0, spin_waits=0, spin_rounds=0, os_waits=0, os_yields=0, os_wait_times=0 | +--------+-------------------------+--------------------------------------------------------------------------------+ 7 rows in set (0,00 sec) a regression and half-removed feature. I see the bug to fix, not something to just document. I wonder what text may explain in a polite way why for rw_lock_mutexes the (useless) information is still produced while for majority of cases it is no longer produced and collected...
[10 Mar 2014 18:36]
Daniel Price
Most SHOW MUTEX output was removed in 5.6.14, and was removed entirely in 5.7.2. This change was implemented when InnoDB mutex code was refactored as part of a server cleanup effort. A removal notice has been added to the MySQL 5.6 and 5.7 What's New documentation and to the SHOW ENGINE documentation. The notice will appear soon, with the next published documentation build. Under "Removed Features". http://dev.mysql.com/doc/refman/5.6/en/mysql-nutshell.html http://dev.mysql.com/doc/refman/5.7/en/mysql-nutshell.html https://dev.mysql.com/doc/refman/5.6/en/show-engine.html https://dev.mysql.com/doc/refman/5.7/en/show-engine.html