+1-208-473-2904 (USA - Sales)
0-800-051-8984 (UK - Sales)
0-800-181-0665 (GER - Sales)
+1-925-271-5054 (Training)
This feature reorganizes the output of SHOW ENGINE INNODB STATUS for a better readability and prints the amount of memory used by the internal hash tables. In addition, new variables are available to control the output.
This feature modified the SHOW ENGINE INNODB STATUS command as follows:
- TRANSACTION section was moved to the end of the output, so that important information is not overlooked when the there is a large amount of it.
- Added two variables to control SHOW ENGINE INNODB STATUS information presented (bugfix for #29123):
- innodb_show_verbose_locks - Whether to show records locked
- innodb_show_locks_held - Number of locks held to print for each InnoDB transaction
- Added extended information about InnoDB internal hash table sizes (in bytes) in the BUFFER POOL AND MEMORY section; also added buffer pool size in bytes.
- Added additional LOG section information (beginning in release 5.5.8-20.0).
- 5.5.8-20.0 Added status variables showing information from SHOW ENGINE INNODB STATUS.
- 5.5.8-20.0 Added additional information in the LOG section.
- 5.5.10-20.1: Renamed status variable innodb_row_lock_numbers to innodb_current_row_locks.
- 5.5.31-30.3: Added innodb_read_views_memory and innodb_descriptors_memory to improve InnoDB memory diagnostics.
- Author / Origin: Baron Schwartz, http://lists.mysql.com/internals/35174
| Command Line: | Yes |
|---|---|
| Config File: | Yes |
| Scope: | Global |
| Dynamic: | Yes |
| Variable Type: | ULONG |
| Default Value: | 0 |
| Range: | 0 - 1 |
Specifies to show records locked in SHOW ENGINE INNODB STATUS. The default is 0, which means only the higher-level information about the lock (which table and index is locked, etc.) is printed. If set to 1, then traditional InnoDB behavior is enabled: the records that are locked are dumped to the output.
| Command Line: | Yes |
|---|---|
| Config File: | Yes |
| Scope: | Global |
| Dynamic: | Yes |
| Variable Type: | ULONG |
| Default Value: | 10 |
| Range: | 0 - 1000 |
Specifies the number of locks held to print for each InnoDB transaction in SHOW ENGINE INNODB STATUS.
The status variables here contain information available in the output of SHOW ENGINE INNODB STATUS, organized by the sections SHOW ENGINE INNODB STATUS displays. If you are familiar with the output of SHOW ENGINE INNODB STATUS, you will probably already recognize the information these variables contain.
The following variables contain information in the BACKGROUND THREAD section of the output from SHOW ENGINE INNODB STATUS. An example of that output is:
Insert an example of BACKGROUND THREAD section output here.
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
The following variables contain information in the SEMAPHORES section of the output from SHOW ENGINE INNODB STATUS. An example of that output is:
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 9664, signal count 11182
Mutex spin waits 20599, rounds 223821, OS waits 4479
RW-shared spins 5155, OS waits 1678; RW-excl spins 5632, OS waits 2592
Spin rounds per wait: 10.87 mutex, 15.01 RW-shared, 27.19 RW-excl
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
The following variables contain information in the INSERT BUFFER AND ADAPTIVE HASH INDEX section of the output from SHOW ENGINE INNODB STATUS. An example of that output is:
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 6089, seg size 6091,
44497 inserts, 44497 merged recs, 8734 merges
Hash table size 276707, node heap has 1 buffer(s)
0.00 hash searches/s, 0.00 non-hash searches/s
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
The following variables contain information in the LOG section of the output from SHOW ENGINE INNODB STATUS. An example of that output is:
---
LOG
---
Log sequence number 28219393219
Log flushed up to 28219393219
Last checkpoint at 28212583337
Max checkpoint age 7782360
Checkpoint age target 7539162
Modified age 6809882
Checkpoint age 6809882
0 pending log writes, 0 pending chkp writes
8570 log i/o's done, 2000.00 log i/o's/second
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
The following variables contain information in the BUFFER POOL AND MEMORY section of the output from SHOW ENGINE INNODB STATUS. An example of that output is:
----------------------
BUFFER POOL AND MEMORY
----------------------
Total memory allocated 137625600; in additional pool allocated 0
Total memory allocated by read views 88
Internal hash tables (constant factor + variable factor)
Adaptive hash index 3774352 (2213656 + 1560696)
Page hash 139144
Dictionary cache 629811 (554864 + 74947)
File system 83536 (82672 + 864)
Lock system 380792 (332872 + 47920)
Recovery system 0 (0 + 0)
Threads 84040 (82696 + 1344)
Dictionary memory allocated 74947
Buffer pool size 8192
Buffer pool size, bytes 134217728
Free buffers 0
Database pages 8095
Old database pages 2968
Modified db pages 5914
Pending reads 0
Pending writes: LRU 0, flush list 129, single page 0
Pages made young 372084, not young 0
2546000.00 youngs/s, 0.00 non-youngs/s
Pages read 103356, created 154787, written 979572
469000.00 reads/s, 78000.00 creates/s, 138000.00 writes/s
Buffer pool hit rate 994 / 1000, young-making rate 34 / 1000 not 0 / 1000
Pages read ahead 0.00/s, evicted without access 15000.00/s
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
This status variable shows the current size of the descriptors array (in bytes). The descriptor array is an XtraDB data structure that contains the information on currently running transactions.
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
This status variable shows the total amount of memory allocated for the InnoDB read view (in bytes).
This part contains the information about the oldest active transaction in the system. An example of that output is:
---OLDEST VIEW---
Normal read view
Read view low limit trx n:o 3300
Read view up limit trx id 3300
Read view low limit trx id 3300
Read view individually stored trx ids:
The following variables contain information in the TRANSACTIONS section of the output from SHOW ENGINE INNODB STATUS. An example of that output is:
------------
TRANSACTIONS
------------
Trx id counter F561FD
Purge done for trx's n:o < F561EB undo n:o < 0
History list length 19
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 0, not started, process no 993, OS thread id 140213152634640
mysql thread id 15933, query id 32109 localhost root
show engine innodb status
---TRANSACTION F561FC, ACTIVE 29 sec, process no 993, OS thread id 140213152769808 updating or deleting
mysql tables in use 1, locked 1
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
| Version Info: |
|
|---|---|
| Variable Type: | Numeric |
| Scope: | Global |
version 5.5.8-20.0: Introduced. version 5.5.10-20.1: Renamed. vartype: Numeric scope: Global
This variable was named innodb_row_lock_numbers in release 5.5.8-20.0.