show engine innodb status

  1. mysql>show engine innodb status \G


  2. *************************** 1. row ***************************


  3.  Type: InnoDB


  4.  Name:


  5. Status:


  6. =====================================


  7. 110412 20:45:39 INNODB MONITOR OUTPUT


  8. =====================================


  9. Per second averages calculated from the last 33 seconds 下面显示的信息是33秒之前的数据库状态


  10. -----------------


  11. BACKGROUND THREAD


  12. -----------------


  13. srv_master_thread loops: 1 1_second, 1 sleeps, 0 10_second, 2 background, 2 flush


  14. srv_master_thread logflushand writes: 1


  15. ----------


  16. SEMAPHORES


  17. ----------


  18. OS WAIT ARRAY INFO: reservation count 4, signal count 4


  19. Mutex spin waits 1, rounds 30, OS waits 1


  20. RW-shared spins 3, rounds 90, OS waits 3


  21. RW-excl spins 0, rounds 0, OS waits 0


  22. Spin rounds per wait: 30.00 mutex, 30.00 RW-shared, 0.00 RW-excl


  23. ------------


  24. TRANSACTIONS


  25. ------------


  26. Trx id counter D00


  27. Purge done for trx‘s n:o < 0 undo n:o < 0


  28. History list length 0


  29. LIST OF TRANSACTIONS FOR EACH SESSION:


  30. ---TRANSACTION 0, not started, process no 21250, OS thread id 1232701760


  31. MySQL thread id 1, query id 6 localhost root


  32. show engine innodb status


  33. --------


  34. FILE I/O 下面显示了4种IO进程,read和write


  35. --------


  36. I/O thread 0 state: waiting for completed aio requests (insert buffer thread)


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


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


  39. I/O thread 3 state: waiting for completed aio requests (read thread)


  40. I/O thread 4 state: waiting for completed aio requests (read thread)


  41. I/O thread 5 state: waiting for completed aio requests (read thread)


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


  43. I/O thread 7 state: waiting for completed aio requests (write thread)


  44. I/O thread 8 state: waiting for completed aio requests (write thread)


  45. I/O thread 9 state: waiting for completed aio requests (write thread)


  46. Pending normal aio reads: 0 [0, 0, 0, 0] , aio writes: 0 [0, 0, 0, 0] ,


  47. ibuf aio reads: 0, log i/o‘s: 0, sync i/o‘s: 0


  48. Pending flushes (fsync) log: 0; buffer pool: 0


  49. 26 OS file reads, 147 OS file writes, 10 OS fsyncs


  50. 0.00 reads/s, 0 avg bytes/read, 0.00 writes/s, 0.00 fsyncs/s


  51. -------------------------------------


  52. INSERT BUFFER AND ADAPTIVE HASH INDEX


  53. -------------------------------------


  54. Ibuf: size 1, free list len 0, seg size 2, 0 merges


  55. merged operations:


  56. insert 0, delete mark 0, delete 0


  57. discarded operations:


  58. insert 0, delete mark 0, delete 0


  59. Hash table size 276671, node heap has 0 buffer(s)


  60. 0.00 hash searches/s, 0.00 non-hash searches/s


  61. ---


  62. LOG


  63. ---


  64. Log sequence number 1588801


  65. Log flushed up to 1588801


  66. Last checkpoint at 1588801


  67. 0 pending log writes, 0 pending chkp writes


  68. 10 log i/o‘s done, 0.00 log i/o‘s/second


  69. ----------------------


  70. BUFFER POOL AND MEMORY 这下面的信息可以看到InnoDB存储引擎缓冲池的使用情况


  71. ----------------------


  72. Total memory allocated 137363456; in additional pool allocated 0


  73. Dictionary memory allocated 33650


  74. Buffer pool size 8191 表明一共有多少个缓冲帧(buffer frame),每个缓冲帧为16K,缓冲池大小:8191*16/1024≈127M


  75. Free buffers 8048 表示当前空闲的缓冲帧


  76. Database pages 143 表示已经使用的缓冲帧


  77. Old database pages 0


  78. Modified db pages 0 表示脏页的数量


  79. Pending reads 0


  80. Pending writes: LRU 0, flush list 0, single page 0


  81. Pages made young 0, not young 0


  82. 0.00 youngs/s, 0.00 non-youngs/s


  83. Pages read 15, created 128, written 131


  84. 0.00 reads/s, 0.00 creates/s, 0.00 writes/s


  85. No buffer pool page gets since the last printout


  86. Pages read ahead 0.00/s, evicted without access 0.00/s


  87. LRU len: 143, unzip_LRU len: 0


  88. I/O sum[0]:cur[0], unzip sum[0]:cur[0]


  89. --------------


  90. ROW OPERATIONS


  91. --------------


  92. 0 queries inside InnoDB, 0 queries in queue


  93. 1 read views open inside InnoDB


  94. Main thread process no. 21250, id 1200699712, state: waiting for server activity


  95. Number of rows inserted 0, updated 0, deleted 0, read 0


  96. 0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s


  97. ----------------------------


  98. END OF INNODB MONITOR OUTPUT


  99. ============================




  100. 1 row in set (0.55 sec)




  101. 查看innodb版本,read和write线程数




  102. mysql> show variables like ‘innodb_version‘ \G


  103. *************************** 1. row ***************************


  104. Variable_name: innodb_version


  105.        Value: 1.1.6


  106. 1 row in set (0.00 sec)




  107. mysql> show variables like ‘innodb_%io_threads


本文出自 “Linux运维” 博客,请务必保留此出处http://2853725.blog.51cto.com/2843725/1394470

show engine innodb status,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。