14.6.3.9 Monitoring the Buffer Pool

InnoDB Standard Monitor output, which can be accessed using SHOW ENGINE INNODB STATUS, provides metrics that pertain to operation of the InnoDB buffer pool. Buffer pool metrics are located in the BUFFER POOL AND MEMORY section of InnoDB Standard Monitor output and appear similar to the following:
InnoDB標準監控輸出,可以使用SHOW ENGINE InnoDB狀態訪問它,它提供了與InnoDB緩衝池操作相關的指標。緩衝池指標位於InnoDB標準監控輸出的BUFFER POOL AND MEMORY部分,並且類似於以下內容:


BUFFER POOL AND MEMORY


Total large memory allocated 2198863872
Dictionary memory allocated 776332
Buffer pool size 131072
Free buffers 124908
Database pages 5720
Old database pages 2071
Modified db pages 910
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 4, not young 0
0.10 youngs/s, 0.00 non-youngs/s
Pages read 197, created 5523, written 5060
0.00 reads/s, 190.89 creates/s, 244.94 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, Random read
ahead 0.00/s
LRU len: 5720, unzip_LRU len: 0
I/O sum[0]:cur[0], unzip sum[0]:cur[0]
The following table describes InnoDB buffer pool metrics reported by the InnoDB Standard Monitor.
下表描述了InnoDB標準監控報告的InnoDB緩衝池指標
Note
Per second averages provided in InnoDB Standard Monitor output are based on the elapsed time since InnoDB Standard Monitor output was last printed.
InnoDB標準監控輸出中提供的每秒平均值是基於上次打印InnoDB標準監控輸出後的運行時間。

Table 14.2 InnoDB Buffer Pool Metrics
InnoDB緩衝池指標

14.6.3.9 Monitoring the Buffer Pool
14.6.3.9 Monitoring the Buffer Pool
14.6.3.9 Monitoring the Buffer Pool

Notes:

  • The youngs/s metric only relates to old pages. It is based on the number of accesses to pages and not the number of pages. There can be multiple accesses to a given page, all of which are counted. If you see very low youngs/s values when there are no large scans occurring, you might need to reduce the delay time or increase the percentage of the buffer pool used for the old sublist. Increasing the percentage makes the old sublist larger, so pages in that sublist take longer to move to the tail and to be evicted. This increases the likelihood that the pages will be accessed again and be made young.
  • youngs/s指標僅與舊頁面相關。它基於對頁面的訪問次數,而不是頁面的數量。可以對給定頁面進行多次訪問,所有訪問都被計數。如果您在沒有進行大型掃描時看到非常低的young /s值,您可能需要減少延遲時間或增加用於舊子列表的緩衝池的百分比。增加百分比使舊的子列表更大,所以在該子列表中的頁面需要更長的時間移動到尾部並被驅逐。這增加了再次訪問頁面並使其年輕化的可能性
  • The non-youngs/s metric only relates to old pages. It is based on the number of accesses to pages and not the number of pages. There can be multiple accesses to a given page, all of which are counted. If you do not see a lot of non-youngs/s when you are doing large table scans (and lots of youngs/s), increase the delay value.
  • non-youngs/s 指標僅與舊頁面相關。它基於對頁面的訪問次數,而不是頁面的數量。可以對給定頁面進行多次訪問,所有訪問都被計數。如果在進行大型表掃描時沒有看到很多non-youngs/s (以及很多young /s),則增加延遲值。
  • The young-making rate accounts for accesses to all buffer pool pages, not just accesses to pages in the old sublist. The young-making rate and not rate do not normally add up to the overall buffer pool hit rate. Page hits in the old sublist cause pages to move to the new sublist, but page hits in the new sublist cause pages to move to the head of the list only if they are a certain distance from the head.
  • young-making速率用於訪問所有緩衝池頁面,而不僅僅是訪問舊子列表中的頁面。 young-making率和not率通常不會累加到整體緩衝池命中率上。舊子列表中的頁面命中會導致頁面移動到新子列表,但是新子列表中的頁面命中會導致頁面僅在距離頭部一定距離時才移動到列表的頭部。
  • not (young-making rate) is the average hit rate at which page accesses have not resulted in making pages young due to the delay defined by innodb_old_blocks_time not being met, or due to page hits in the new sublist that did not result in pages being moved to the head. This rate accounts for accesses to all buffer pool pages, not just accesses to pages in the old sublist.
  • not (young-making rate)是頁面訪問的平均命中率,並不是由於innodb_old_blocks_time所定義的延遲而導致頁面的延遲,或者由於新子列表中的頁面命中沒有導致頁面被移動到頭部。這個速率用於訪問所有緩衝池頁面,而不僅僅是訪問舊子列表中的頁面。
    InnoDB buffer pool server status variables and the INNODB_BUFFER_POOL_STATS table provide many of the same buffer pool metrics found in InnoDB Standard Monitor output. For more information about the INNODB_BUFFER_POOL_STATStable, see Example 14.10, “Querying the INNODB_BUFFER_POOL_STATS Table”.
    InnoDB緩衝池server status variables 和INNODB_BUFFER_POOL_STATS表提供了許多與InnoDB標準監控輸出相同的緩衝池指標。有關INNODB_BUFFER_POOL STATS表的更多信息,請看 Example 14.10, “Querying the INNODB_BUFFER_POOL_STATS Table”.

PREV:14.6.3.8 Saving and Restoring the Buffer Pool Stat https://blog.51cto.com/itzhoujun/2356988
NEXT: 14.6.4 Configuring the Memory Allocator for InnoDB. https://blog.51cto.com/itzhoujun/2356993

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章