Bug #75388 Manual does not really explain how to get information on InnoDB mutexes from P_S

Submitted: 1 Jan 2015 20:29 Modified: 2 Jun 2015 14:45
Reporter: Valeriy Kravchuk Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Documentation Severity:S3 (Non-critical)
Version:5.6, 5.7 OS:Any
Assigned to: Daniel Price CPU Architecture:Any
Tags: missing_manual, show engine innodb mutex

[1 Jan 2015 20:29] Valeriy Kravchuk
Description:
Manual (both http://dev.mysql.com/doc/refman/5.7/en/show-engine.html and http://dev.mysql.com/doc/refman/5.6/en/show-engine.html) says:

"SHOW ENGINE INNODB MUTEX output is removed entirely in MySQL 5.7.2. Comparable information can be generated by creating views on Performance Schema tables."

But it does not provide (in one place) any details on how to enable instrumentation for these mutexes (this can be done only at startup at least in 5.6), how to "size" PERFORMANCE_SCHEMA properly for monitoring this kind of mutexes, what exact table(s) to use to get details similar to those in SHOW ENGINE INNODB MUTEX output, how names of mutexes in PERFORMANCE_SCHEMA "correspond" to lines of code/names of mutexes we see in INNODB MUTEX output, nothing of that...

How to repeat:
Try to get the same (or better) information from PERFORMANCE_SCHEMA as one can easily get with SHOW ENGINE INNODB MUTEX. Try to find in the manual all the details you may need for this.

Suggested fix:
Provide at least some specific example of what views can be created to replace SHOW ENGINE INNODB MUTEX, and how to query them.
[2 Jan 2015 6:59] MySQL Verification Team
Hello Valeriy,

Thank you for the report.

Thanks,
Umesh
[6 Jan 2015 19:39] Morgan Tocker
This was just posted today on Percona's blog.  It looks like a good example to use:

http://www.percona.com/blog/2015/01/06/getting-mutex-information-from-mysqls-performance_s...

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.