Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1839201
  • 博文数量: 117
  • 博客积分: 2559
  • 博客等级: 少校
  • 技术积分: 4385
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-13 20:08
个人简介

作为初学者,要想取得进步,成为高手,首先应该了解自己的不足之处.

文章分类

全部博文(117)

文章存档

2014年(1)

2013年(25)

2012年(13)

2011年(77)

2010年(1)

分类: Mysql/postgreSQL

2011-05-16 16:29:18

  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 log flush and 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.  

  101. 1 row in set (0.55 sec)

  102.  

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

  104.  

  105. mysql> show variables like 'innodb_version' \G

  106. *************************** 1. row ***************************

  107. Variable_name: innodb_version

  108.         Value: 1.1.6

  109. 1 row in set (0.00 sec)

  110.  

  111. mysql> show variables like 'innodb_%io_threads
阅读(2388) | 评论(0) | 转发(2) |
0

上一篇:my-innodb-heavy-4G.cnf

下一篇:MySQL Query Cache

给主人留下些什么吧!~~