monitor mysql buffer pool usage

Post on 15-Apr-2017

54 Views

Category:

Software

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

MySQL Buffer Pool Usage

2/8

目標藉由以MySQL Innodb Buffer Pool為觀察指標,紀錄MySQL DB 在主要Memory的使用狀況,作為日後系統調校的參考。

3/8

原理以 Innodb status,觀察 Buffer Pool 實際使用狀況。

4/8

原理 Innodb Buffer Pool的組成

Buffer pool size allocated = Free buffers + Database pages + (hash index、 explicit locks、 insert buffer、 page cache)

Buffer pool size allocated - Free buffers 即可表示 DB 在Memory上實際的使用量。 以上述 innodb status為例,該 DB在Memory實際使用量:

Buffer pool size - Free buffers = (8388600-8076953)*16*1024 /(1024*1024) = 4869(MB)[ 註: 1 個 buffer frame 大小為 16KB]

5/8

監控項目整合性的監控資訊

top related