Rechercher dans le manuel MySQL
15.15 InnoDB Integration with MySQL Performance Schema
[+/-]
This section provides a brief introduction to
InnoDB
integration with Performance Schema. For
comprehensive Performance Schema documentation, see
Chapter 26, MySQL Performance Schema.
You can profile certain internal InnoDB
operations using the MySQL
Performance Schema
feature. This type of tuning is primarily for expert users
who evaluate optimization strategies to overcome performance
bottlenecks. DBAs can also use this feature for capacity planning,
to see whether their typical workload encounters any performance
bottlenecks with a particular combination of CPU, RAM, and disk
storage; and if so, to judge whether performance can be improved by
increasing the capacity of some part of the system.
To use this feature to examine InnoDB
performance:
You must be generally familiar with how to use the Performance Schema feature. For example, you should know how enable instruments and consumers, and how to query
performance_schema
tables to retrieve data. For an introductory overview, see Section 26.1, “Performance Schema Quick Start”.You should be familiar with Performance Schema instruments that are available for
InnoDB
. To viewInnoDB
-related instruments, you can query thesetup_instruments
table for instrument names that contain 'innodb
'.- FROM performance_schema.setup_instruments
- +-------------------------------------------------------+---------+-------+
- | NAME | ENABLED | TIMED |
- +-------------------------------------------------------+---------+-------+
- ...
- ...
- +-------------------------------------------------------+---------+-------+
For additional information about the instrumented
InnoDB
objects, you can query Performance Schema instances tables, which provide additional information about instrumented objects. Instance tables relevant toInnoDB
include:The
mutex_instances
tableThe
rwlock_instances
tableThe
cond_instances
tableThe
file_instances
table
NoteMutexes and RW-locks related to the
InnoDB
buffer pool are not included in this coverage; the same applies to the output of theSHOW ENGINE INNODB MUTEX
command.For example, to view information about instrumented
InnoDB
file objects seen by the Performance Schema when executing file I/O instrumentation, you might issue the following query:- FROM performance_schema.file_instances
- *************************** 1. row ***************************
- OPEN_COUNT: 3
- *************************** 2. row ***************************
- OPEN_COUNT: 2
- *************************** 3. row ***************************
- OPEN_COUNT: 2
- *************************** 4. row ***************************
- OPEN_COUNT: 3
- ...
You should be familiar with
performance_schema
tables that storeInnoDB
event data. Tables relevant toInnoDB
-related events include:The Wait Event tables, which store wait events.
The Summary tables, which provide aggregated information for terminated events over time. Summary tables include file I/O summary tables, which aggregate information about I/O operations.
Stage Event tables, which store event data for
InnoDB
ALTER TABLE
and buffer pool load operations. For more information, see Section 15.15.1, “Monitoring ALTER TABLE Progress for InnoDB Tables Using Performance Schema”, and Monitoring Buffer Pool Load Progress Using Performance Schema.
If you are only interested in
InnoDB
-related objects, use the clauseWHERE EVENT_NAME LIKE '%innodb%'
orWHERE NAME LIKE '%innodb%'
(as required) when querying these tables.
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-innodb-performance-schema.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.