基于:Mysql 5.7
查看 innodb_buffer_pool 具体使用情况
命令: SHOW ENGINE INNODB STATUS\G;
案例:
mysql> SHOW ENGINE INNODB STATUS\G;*************************** 1. row ***************************Type: InnoDBName:Status:=====================================2020-10-21 20:55:11 0x7fdf0c17e700 INNODB MONITOR OUTPUT=====================================Per second averages calculated from the last 59 seconds-----------------BACKGROUND THREAD-----------------srv_master_thread loops: 174 srv_active, 0 srv_shutdown, 3070475 srv_idlesrv_master_thread log flush and writes: 3070642----------SEMAPHORES----------OS WAIT ARRAY INFO: reservation count 96OS WAIT ARRAY INFO: signal count 75RW-shared spins 0, rounds 142, OS waits 71RW-excl spins 0, rounds 1, OS waits 1RW-sx spins 0, rounds 0, OS waits 0Spin rounds per wait: 142.00 RW-shared, 1.00 RW-excl, 0.00 RW-sx------------TRANSACTIONS------------Trx id counter 1209023Purge done for trx's n:o < 1209022 undo n:o < 0 state: running but idleHistory list length 85LIST OF TRANSACTIONS FOR EACH SESSION:---TRANSACTION 422071226222432, not started0 lock struct(s), heap size 1136, 0 row lock(s)--------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)Pending normal aio reads: [0, 0, 0, 0] , aio writes: [0, 0, 0, 0] ,ibuf aio reads:, log i/o's:, sync i/o's:Pending flushes (fsync) log: 0; buffer pool: 01009 OS file reads, 622 OS file writes, 267 OS fsyncs0.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 47, seg size 49, 0 mergesmerged operations:insert 0, delete mark 0, delete 0discarded operations:insert 0, delete mark 0, delete 0Hash table size 34673, node heap has 1 buffer(s)Hash table size 34673, node heap has 0 buffer(s)Hash table size 34673, node heap has 0 buffer(s)Hash table size 34673, node heap has 1 buffer(s)Hash table size 34673, node heap has 1 buffer(s)Hash table size 34673, node heap has 0 buffer(s)Hash table size 34673, node heap has 1 buffer(s)Hash table size 34673, node heap has 1 buffer(s)0.00 hash searches/s, 0.00 non-hash searches/s---LOG---Log sequence number 303613174Log flushed up to 303613174Pages flushed up to 303613174Last checkpoint at 3036131650 pending log flushes, 0 pending chkp writes170 log i/o's done, 0.00 log i/o's/second----------------------BUFFER POOL AND MEMORY----------------------Total large memory allocated 137428992Dictionary memory allocated 556898Buffer pool size 8191Free buffers 7456Database pages 721Old database pages 278Modified db pages 0Pending reads 0Pending writes: LRU 0, flush list 0, single page 0Pages made young 0, not young 00.00 youngs/s, 0.00 non-youngs/sPages read 649, created 72, written 4100.00 reads/s, 0.00 creates/s, 0.00 writes/sNo buffer pool page gets since the last printoutPages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/sLRU len: 721, unzip_LRU len: 17I/O sum[0]:cur[0], unzip sum[0]:cur[0]--------------ROW OPERATIONS--------------0 queries inside InnoDB, 0 queries in queue0 read views open inside InnoDBProcess ID=1, Main thread ID=140595880257280, state: sleepingNumber of rows inserted 1799, updated 14, deleted 0, read 38160.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s----------------------------END OF INNODB MONITOR OUTPUT============================1 row in set (0.01 sec)
