【mysql】show engine innodb status命令

执行结果:

'InnoDB', '', '
=====================================
2020-03-18 10:47:11 3994 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 20 seconds
-----------------
BACKGROUND THREAD
-----------------
//srv_idle:每10秒的操作  138742次
//srv_active:每秒的操作  49次
srv_master_thread loops: 49 srv_active, 0 srv_shutdown, 138742 srv_idle
srv_master_thread log flush and writes: 138791
----------
SEMAPHORES(信号标、信号量)
----------
OS WAIT ARRAY INFO: reservation count 15
OS WAIT ARRAY INFO: signal count 15
Mutex spin waits 98, rounds 141, OS waits 0
RW-shared spins 15, rounds 450, OS waits 15
RW-excl spins 0, rounds 0, OS waits 0
Spin rounds per wait: 1.44 mutex, 30.00 RW-shared, 0.00 RW-excl
------------
TRANSACTIONS
------------
Trx id counter 133324
Purge done for trx's n:o < 133269 undo n:o < 0 state: running but idle
History list length 2100
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 0, not started\nMySQL thread id 18, OS thread handle 0x3994, query id 1132 localhost ::1 root init
show engine InnoDB status
---TRANSACTION 0, not started\nMySQL thread id 17, OS thread handle 0x35f8, query id 1130 localhost ::1 root
--------
FILE I/O
//在Innodb存储引擎中大量使用了AIO(Async IO)来处理写IO请求,这样可以极大提高数据库的性能。
//4个read thread,4个write thread,1个insert buffer thread,1个log thread
//读线程的id总是小于写线程
--------
I/O thread 0 state: wait Windows aio (insert buffer thread)
I/O thread 1 state: wait Windows aio (log thread)
I/O thread 2 state: wait Windows aio (read thread)
I/O thread 3 state: wait Windows aio (read thread)
I/O thread 4 state: wait Windows aio (read thread)
I/O thread 5 state: wait Windows aio (read thread)
I/O thread 6 state: wait Windows aio (write thread)
I/O thread 7 state: wait Windows aio (write thread)
I/O thread 8 state: wait Windows aio (write thread)
I/O thread 9 state: wait Windows aio (write thread)
Pending normal aio reads: 0 [0, 0, 0, 0] , aio writes: 0 [0, 0, 0, 0] ,
 ibuf aio reads: 0, log i/o's: 0, sync i/o's: 0\nPending flushes (fsync) log: 0; buffer pool: 0
494 OS file reads, 108 OS file writes, 82 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 0.00 writes/s, 0.00 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 0, seg size 2, 0 merges
merged operations:
 insert 0, delete mark 0, delete 0
discarded operations:
 insert 0, delete mark 0, delete 0
Hash table size 869599, node heap has 1 buffer(s)
0.00 hash searches/s, 0.00 non-hash searches/s
---
LOG
---
Log sequence number 3117095
Log flushed up to   3117095
Pages flushed up to 3117095
Last checkpoint at  3117095
//chkp:checkpoint
0 pending log writes, 0 pending chkp writes
46 log i/o's done, 0.00 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
//
//额外的内存池:0
Total memory allocated 449871872; in additional pool allocated 0
Dictionary memory allocated 156977
//当前Buffer pool size共有26816个页,即26816*16K,总共大约0.4GB的缓冲池
Buffer pool size   26816
//当前free列表中页的数量
Free buffers       26357
//LRU列表中页的数量
//可能的情况是Free buffers与Database pages的数量之和不等于Buffer pool size。因为缓冲池中的页还可能会被分配给自适应哈希索引、Lock信息、Insert Buffer等页,而这部分页不需要LRU算法进行维护,因此不存在于LRU列表中。
Database pages     458
Old database pages 0
Modified db pages  0
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
//LRU列表中,midpoint之后的列表称为old列表,之前的列表称为new列表,可以简单理解为new列表中的页都是最为活跃的热点数据。
//当页从LRU列表的old部分加入到new部分时,称此时发生的操作为page made young,因因为innodb_old_blocks_time的设置而导致页没有从old部分移动到new部分的操作成为page not made young
Pages made young 0, not young 0
0.00 youngs/s, 0.00 non-youngs/s
Pages read 458, created 0, written 53
0.00 reads/s, 0.00 creates/s, 0.00 writes/s
No buffer pool page gets since the last printout
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 458, unzip_LRU len: 0
I/O sum[0]:cur[0], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
0 read views open inside InnoDB
Main thread id 6252, state: sleeping
Number of rows inserted 0, updated 14, deleted 0, read 68\n0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================'

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值