如何通过命令show engine innodb status 来观察磁盘和日志的差距,怎么看?

2114阅读 0评论2014-06-07 mchdba
分类:数据库开发技术

show engine innodb status ;结果记录如下:

=====================================
110908  8:26:52 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 19 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 716632 1_second, 716317 sleeps, 70533 10_second, 13289 background, 13288 flush
srv_master_thread log flush and writes: 722222
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 334124, signal count 424365
Mutex spin waits 18320329, rounds 30557883, OS waits 181809
RW-shared spins 103709, rounds 2216637, OS waits 70388
RW-excl spins 35874, rounds 2475925, OS waits 73297
Spin rounds per wait: 1.67 mutex, 21.37 RW-shared, 69.02 RW-excl
------------
TRANSACTIONS
------------
Trx id counter 133B0287
Purge done for trx's n < 133AF2E5 undo n < 0
History list length 193
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 133AE95C, not started, process no 19778, OS thread id 1239451968
MySQL thread id 4034926, query id 155550235 qapreview.chinascopefinancial.com 192.168.0.216 csfdp
---TRANSACTION 133B0008, not started, process no 19778, OS thread id 1234127168
MySQL thread id 3723938, query id 155596864 192.168.0.214 csfdp
---TRANSACTION 132D6761, not started, process no 19778, OS thread id 1237055808
MySQL thread id 3710314, query id 155602596 192.168.0.90 skyman.man
-- 这一夜过得十分凄凉,除了那山风吹拂着的野草之外,听不见一点声息。



show engine innodb status
---TRANSACTION 13327D89, not started, process no 19778, OS thread id 1236523328
MySQL thread id 3699853, query id 155578368 192.168.0.62 csfdp
---TRANSACTION 133B000C, not started, process no 19778, OS thread id 1233328448
MySQL thread id 3629237, query id 155596884 smxqa.chinascopefinancial.com 192.168.0.213 csfdp
---TRANSACTION 133B000A, not started, process no 19778, OS thread id 1237588288
MySQL thread id 3629236, query id 155596875 192.168.0.211 csfdp
---TRANSACTION 133B0005, not started, process no 19778, OS thread id 1240250688
MySQL thread id 3629234, query id 155596845 wsqa.chinascopefinancial.com 192.168.0.212 csfdp
---TRANSACTION 130ACFEC, not started, process no 19778, OS thread id 1242114368
MySQL thread id 3629197, query id 149417087 192.168.0.45 csfdp
---TRANSACTION 133B0286, ACTIVE 0 sec, process no 19778, OS thread id 1241581888 committing
MySQL thread id 4041896, query id 155602622 qapreview.chinascopefinancial.com 192.168.0.216 csfdp Sending data
select rpt_id from cdp.doc_trace where rpt_trace_nm='SSE_600638_SHNEWHP_2008Q4_FULL'
Trx read view will not see trx with id >= 133B0287, sees < 133B0287
--------
FILE I/O
--------
I/O thread 0 state: waiting for i/o request (insert buffer thread)
I/O thread 1 state: waiting for i/o request (log thread)
I/O thread 2 state: waiting for i/o request (read thread)
I/O thread 3 state: waiting for i/o request (read thread)
I/O thread 4 state: waiting for i/o request (read thread)
I/O thread 5 state: waiting for i/o request (read thread)
I/O thread 6 state: waiting for i/o request (write thread)
I/O thread 7 state: waiting for i/o request (write thread)
I/O thread 8 state: waiting for i/o request (write thread)
I/O thread 9 state: waiting for i/o request (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
Pending flushes (fsync) log: 0; buffer pool: 0
3183714 OS file reads, 247846804 OS file writes, 240601229 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 0.53 writes/s, 0.53 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 54, seg size 56, 18337 merges
merged operations:
insert 387852, delete mark 242063, delete 27042
discarded operations:
insert 0, delete mark 0, delete 0
Hash table size 276707, node heap has 805 buffer(s)
22.05 hash searches/s, 3.63 non-hash searches/s
---
LOG
---
Log sequence number 137216137345
Log flushed up to   137216137345
Last checkpoint at  137216137345
0 pending log writes, 0 pending chkp writes
239349985 log i/o's done, 0.32 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total memory allocated 137363456; in additional pool allocated 0
Dictionary memory allocated 1595727
Buffer pool size   8192
Free buffers       1
Database pages     7386
Old database pages 2706
Modified db pages  0
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 4750557, not young 0
0.00 youngs/s, 0.00 non-youngs/s
Pages read 3228754, created 522011, written 16600336
0.00 reads/s, 0.00 creates/s, 0.11 writes/s
Buffer pool hit rate 1000 / 1000, young-making rate 0 / 1000 not 0 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s
LRU len: 7386, unzip_LRU len: 0
I/O sum[2]:cur[0], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
1 read views open inside InnoDB
Main thread process no. 19778, id 1201326400, state: sleeping
Number of rows inserted 135665733, updated 2251030, deleted 116896761, read 149535556450
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 1115634.49 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================
上一篇:mysqldump Couldn't execute 'show create table.....的错误
下一篇:MySQL Server has gone away !