show engine innodb status 输出结果解读

输出示例

mysql> show engine innodb status\G
*************************** 1. row ***************************
  Type: InnoDB
  Name:
Status:
=====================================
2021-04-22 11:33:11 0x7fe51c222700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 10 seconds

-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 780 srv_active, 0 srv_shutdown, 12 srv_idle
srv_master_thread log flush and writes: 792

----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 1225
OS WAIT ARRAY INFO: signal count 1336
RW-shared spins 0, rounds 2286, OS waits 398
RW-excl spins 0, rounds 2371, OS waits 70
RW-sx spins 229, rounds 699, OS waits 8
Spin rounds per wait: 2286.00 RW-shared, 2371.00 RW-excl, 3.05 RW-sx

------------
TRANSACTIONS
------------
Trx id counter 15061670
Purge done for trx's n:o < 15061468 undo n:o < 0 state: running but idle
History list length 1107
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 422101800984176, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 422101800982352, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 15061669, ACTIVE (PREPARED) 0 sec
2 lock struct(s), heap size 1136, 1 row lock(s), undo log entries 2
MySQL thread id 5, OS thread handle 140621995427584, query id 523581 42.192.58.85 kk starting
commit

--------
FILE I/O
--------
I/O thread 0 state: waiting for completed aio requests (insert buffer thread)
I/O thread 1 state: waiting for completed aio requests (log thread)
I/O thread 2 state: waiting for completed aio requests (read thread)
I/O thread 3 state: waiting for completed aio requests (read thread)
I/O thread 4 state: waiting for completed aio requests (read thread)
I/O thread 5 state: waiting for completed aio requests (read thread)
I/O thread 6 state: waiting for completed aio requests (write thread)
I/O thread 7 state: waiting for completed aio requests (write thread)
I/O thread 8 state: waiting for completed aio requests (write thread)
I/O thread 9 state: waiting for completed aio requests (write thread)
I/O thread 10 state: waiting for completed aio requests (write thread)
I/O thread 11 state: waiting for completed aio requests (write thread)
Pending normal aio reads: [0, 0, 0, 0] , aio writes: [0, 0, 0, 0, 0, 0] ,
 ibuf aio reads:, log i/o's:, sync i/o's:
Pending flushes (fsync) log: 1; buffer pool: 0
95343 OS file reads, 195458 OS file writes, 135366 OS fsyncs
49.90 reads/s, 16384 avg bytes/read, 241.48 writes/s, 169.18 fsyncs/s

-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 192, seg size 194, 1122 merges
merged operations:
 insert 1226, delete mark 0, delete 0
discarded operations:
 insert 0, delete mark 0, delete 0
Hash table size 1182691, node heap has 315 buffer(s)
Hash table size 1182691, node heap has 313 buffer(s)
Hash table size 1182691, node heap has 307 buffer(s)
Hash table size 1182691, node heap has 403 buffer(s)
Hash table size 1182691, node heap has 293 buffer(s)
Hash table size 1182691, node heap has 290 buffer(s)
Hash table size 1182691, node heap has 313 buffer(s)
Hash table size 1182691, node heap has 298 buffer(s)
66.29 hash searches/s, 1026.70 non-hash searches/s

---
LOG
---
Log sequence number 14187726461
Log flushed up to   14187725424
Pages flushed up to 14142755783
Last checkpoint at  14142399692
1 pending log flushes, 0 pending chkp writes
92454 log i/o's done, 102.50 log i/o's/second

----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 4397727744
Dictionary memory allocated 450320
Buffer pool size   262112
Free buffers       163810
Database pages     95770
Old database pages 35430
Modified db pages  43010
Pending reads      0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 312, not young 0
0.00 youngs/s, 0.00 non-youngs/s
Pages read 95265, created 505, written 97170
0.00 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 988 / 1000, young-making rate 0 / 1000 not 0 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 95770, unzip_LRU len: 0
I/O sum[0]:cur[792], unzip sum[0]:cur[0]

----------------------
INDIVIDUAL BUFFER POOL INFO
----------------------
...
...
<same as BUFFER POOL AND MEMORY>
...

--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
0 read views open inside InnoDB
Process ID=17254, Main thread ID=140622046865152, state: sleeping
Number of rows inserted 52629, updated 104255, deleted 52135, read 156400
59.79 inserts/s, 115.49 updates/s, 59.39 deletes/s, 174.88 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================

1 row in set (0.01 sec)

1.HEAD

  • Per second averages calculated from the last 10 seconds

2.BACKGROUND THREAD

-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 780 srv_active, 0 srv_shutdown, 12 srv_idle
srv_master_thread log flush and writes: 792
  • srv_master_thread loops: 780 srv_active, 0 srv_shutdown, 12 srv_idle

  • srv_master_thread log flush and writes: 792

3.SEMAPHORES

----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 1225
OS WAIT ARRAY INFO: signal count 1336
RW-shared spins 0, rounds 2286, OS waits 398
RW-excl spins 0, rounds 2371, OS waits 70
RW-sx spins 229, rounds 699, OS waits 8
Spin rounds per wait: 2286.00 RW-shared, 2371.00 RW-excl, 3.05 RW-sx
  • OS WAIT ARRAY INFO: reservation count 1225

  • OS WAIT ARRAY INFO: signal count 1336

  • RW-shared spins 0, rounds 2286, OS waits 398

  • RW-excl spins 0, rounds 2371, OS waits 70

  • RW-sx spins 229, rounds 699, OS waits 8

  • Spin rounds per wait: 2286.00 RW-shared, 2371.00 RW-excl, 3.05 RW-sx

4.TRANSACTIONS

Trx id counter 15061670
Purge done for trx's n:o < 15061468 undo n:o < 0 state: running but idle
History list length 1107
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 422101800984176, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 422101800982352, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 15061669, ACTIVE (PREPARED) 0 sec
2 lock struct(s), heap size 1136, 1 row lock(s), undo log entries 2
MySQL thread id 5, OS thread handle 140621995427584, query id 523581 42.192.58.85 kk starting
commit
  • Trx id counter 15061670

  • Purge done for trx's n:o < 15061468 undo n:o < 0 state: running but idle

  • History list length 1107

  • ---TRANSACTION 422101800984176, not started

  • ---TRANSACTION 15061669, ACTIVE (PREPARED) 0 sec

  • 2 lock struct(s), heap size 1136, 1 row lock(s), undo log entries 2

  • MySQL thread id 5, OS thread handle 140621995427584, query id 523581 42.192.58.85 kk starting

5.FILE I/O

I/O thread 0 state: waiting for completed aio requests (insert buffer thread)
I/O thread 1 state: waiting for completed aio requests (log thread)
I/O thread 2 state: waiting for completed aio requests (read thread)
I/O thread 3 state: waiting for completed aio requests (read thread)
I/O thread 4 state: waiting for completed aio requests (read thread)
I/O thread 5 state: waiting for completed aio requests (read thread)
I/O thread 6 state: waiting for completed aio requests (write thread)
I/O thread 7 state: waiting for completed aio requests (write thread)
I/O thread 8 state: waiting for completed aio requests (write thread)
I/O thread 9 state: waiting for completed aio requests (write thread)
I/O thread 10 state: waiting for completed aio requests (write thread)
I/O thread 11 state: waiting for completed aio requests (write thread)
Pending normal aio reads: [0, 0, 0, 0] , aio writes: [0, 0, 0, 0, 0, 0] ,
 ibuf aio reads:, log i/o's:, sync i/o's:
Pending flushes (fsync) log: 1; buffer pool: 0
95343 OS file reads, 195458 OS file writes, 135366 OS fsyncs
49.90 reads/s, 16384 avg bytes/read, 241.48 writes/s, 169.18 fsyncs/s
  • I/O thread 0 state: waiting for completed aio requests (insert buffer thread)

  • I/O thread 1 state: waiting for completed aio requests (log thread)

  • I/O thread 2 state: waiting for completed aio requests (read thread)

  • I/O thread 6 state: waiting for completed aio requests (write thread)

  • Pending normal aio reads: [0, 0, 0, 0] , aio writes: [0, 0, 0, 0, 0, 0] ,

  • ibuf aio reads:, log i/o's:, sync i/o's:

  • Pending flushes (fsync) log: 1; buffer pool: 0

  • 95343 OS file reads, 195458 OS file writes, 135366 OS fsyncs

  • 49.90 reads/s, 16384 avg bytes/read, 241.48 writes/s, 169.18 fsyncs/s

6.INSERT BUFFER AND ADAPTIVE HASH INDEX

Ibuf: size 1, free list len 192, seg size 194, 1122 merges
merged operations:
 insert 1226, delete mark 0, delete 0
discarded operations:
 insert 0, delete mark 0, delete 0
Hash table size 1182691, node heap has 315 buffer(s)
Hash table size 1182691, node heap has 313 buffer(s)
Hash table size 1182691, node heap has 307 buffer(s)
Hash table size 1182691, node heap has 403 buffer(s)
Hash table size 1182691, node heap has 293 buffer(s)
Hash table size 1182691, node heap has 290 buffer(s)
Hash table size 1182691, node heap has 313 buffer(s)
Hash table size 1182691, node heap has 298 buffer(s)
66.29 hash searches/s, 1026.70 non-hash searches/s
  • Ibuf: size 1, free list len 192, seg size 194, 1122 merges

  • merged operations:

  • insert 1226, delete mark 0, delete 0

  • discarded operations:

  • insert 0, delete mark 0, delete 0

  • Hash table size 1182691, node heap has 315 buffer(s)

  • 66.29 hash searches/s, 1026.70 non-hash searches/s

7.LOG

Log sequence number 14187726461
Log flushed up to   14187725424
Pages flushed up to 14142755783
Last checkpoint at  14142399692
1 pending log flushes, 0 pending chkp writes
92454 log i/o's done, 102.50 log i/o's/second
  • Log sequence number 14187726461

  • Log flushed up to 14187725424

  • Pages flushed up to 14142755783

  • Last checkpoint at 14142399692

  • 1 pending log flushes, 0 pending chkp writes

  • 92454 log i/o's done, 102.50 log i/o's/second

  • 8.BUFFER POOL AND MEMORY / INDIVIDUAL BUFFER POOL INFO

    Total large memory allocated 4397727744
    Dictionary memory allocated 450320
    Buffer pool size   262112
    Free buffers       163810
    Database pages     95770
    Old database pages 35430
    Modified db pages  43010
    Pending reads      0
    Pending writes: LRU 0, flush list 0, single page 0
    Pages made young 312, not young 0
    0.00 youngs/s, 0.00 non-youngs/s
    Pages read 95265, created 505, written 97170
    0.00 reads/s, 0.00 creates/s, 0.00 writes/s
    Buffer pool hit rate 988 / 1000, young-making rate 0 / 1000 not 0 / 1000
    Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
    LRU len: 95770, unzip_LRU len: 0
    I/O sum[0]:cur[792], unzip sum[0]:cur[0]
    
    • Total large memory allocated 4397727744

    • Dictionary memory allocated 450320

    • Buffer pool size 262112

    • Free buffers 163810

    • Database pages 95770

    • Old database pages 35430

    • Modified db pages 43010

    • Pending reads 0

    • Pending writes: LRU 0, flush list 0, single page 0

    • Pages made young 312, not young 0

    • 0.00 youngs/s, 0.00 non-youngs/s

    • Pages read 95265, created 505, written 97170

    • 0.00 reads/s, 0.00 creates/s, 0.00 writes/s

    • Buffer pool hit rate 988 / 1000, young-making rate 0 / 1000 not 0 / 1000

    • Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s

    • LRU len: 95770, unzip_LRU len: 0

    • I/O sum[0]:cur[792], unzip sum[0]:cur[0]

    9.ROW OPERATIONS

    0 queries inside InnoDB, 0 queries in queue
    0 read views open inside InnoDB
    Process ID=17254, Main thread ID=140622046865152, state: sleeping
    Number of rows inserted 52629, updated 104255, deleted 52135, read 156400
    59.79 inserts/s, 115.49 updates/s, 59.39 deletes/s, 174.88 reads/s
    
    • 0 queries inside InnoDB, 0 queries in queue

    • 0 read views open inside InnoDB

    • Process ID=17254, Main thread ID=140622046865152, state: sleeping

    • Number of rows inserted 52629, updated 104255, deleted 52135, read 156400

    • 59.79 inserts/s, 115.49 updates/s, 59.39 deletes/s, 174.88 reads/s

    04-24 05:48