![]() |
< Day Day Up > |
![]() |
A.2 SHOW INNODB STATUSAs noted in Chapter 1, the SHOW INNODB STATUS command produces detailed statistics about what's going on inside the InnoDB storage engine (far more detailed than anything in MyISAM). A detailed understanding of all the statistics InnoDB provides is beyond the scope of what most database administrators will ever need. Much of the information InnoDB presents is useful only in rare and very specific diagnostic activities, so we'll keep the discussion fairly basic here and focus on the more commonly used values. Sample output from SHOW INNODB STATUS command is included at the end of this section. The output is broken up into several labeled groups. For most day to day use, the most informative sections are Transactions, Buffer Pool and Memory, and Row Operations.
Here's some sample output from a SHOW INNODB STATUS command: mysql> SHOW INNODB STATUS \G *************************** 1. row *************************** Status: = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 031218 8:29:53 INNODB MONITOR OUTPUT = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Per second averages calculated from the last 3 seconds ---------- SEMAPHORES ---------- OS WAIT ARRAY INFO: reservation count 5, signal count 5 Mutex spin waits 0, rounds 0, OS waits 0 RW-shared spins 6, OS waits 3; RW-excl spins 2, OS waits 2 ------------ TRANSACTIONS ------------ Trx id counter 0 1039616 Purge done for trx's n:o < 0 454662 undo n:o < 0 0 Total number of lock structs in row lock hash table 0 LIST OF TRANSACTIONS FOR EACH SESSION: ---TRANSACTION 0 0, not started, OS thread id 49162 MySQL thread id 16, query id 112 216.145.52.107 jzawodn show innodb status -------- 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 (write thread) Pending normal aio reads: 0, aio writes: 0, ibuf aio reads: 0, log i/o's: 0, sync i/o's: 0 Pending flushes (fsync) log: 0; buffer pool: 0 155 OS file reads, 4 OS file writes, 4 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 for space 0: size 1, free list len 314, seg size 316, 0 inserts, 0 merged recs, 0 merges Hash table size 138401, used cells 0, node heap has 0 buffer(s) 0.00 hash searches/s, 0.00 non-hash searches/s --- LOG --- Log sequence number 0 900654168 Log flushed up to 0 900654168 Last checkpoint at 0 900654168 0 pending log writes, 0 pending chkp writes 9 log i/o's done, 0.00 log i/o's/second ---------------------- BUFFER POOL AND MEMORY ---------------------- Total memory allocated 54384729; in additional pool allocated 1167488 Buffer pool size 2048 Free buffers 1983 Database pages 65 Modified db pages 0 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages read 65, created 0, written 0 0.00 reads/s, 0.00 creates/s, 0.00 writes/s No buffer pool page gets since the last printout -------------- ROW OPERATIONS -------------- 0 queries inside InnoDB, 0 queries in queue Main thread id 14344, state: waiting for server activity Number of rows inserted 0, updated 0, deleted 0, read 0 0.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.09 sec) |
![]() |
< Day Day Up > |
![]() |