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.
Traduction non disponible
Le manuel MySQL n'est pas encore traduit en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Document créé le 26/06/2006, dernière modification le 26/10/2018
Source du document imprimé : https://www.gaudry.be/mysql-rf-innodb-performance-schema.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.