执行命令:show engine innodb status
复制出Status字段的值,以下就是Buffer Pool相关的:
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 136970240 # 为Buffer Pool分配的总内存(单位:字节)
Dictionary memory allocated 491025 # 为InnoDB 数据字典分配的总内存(单位:字节)
Buffer pool size 8191 # 最多可存储多少个缓存页
Free buffers 7029 # free链表中有多少个空闲缓存页可用
Database pages 1153 # lru链表一共有多少缓存页
Old database pages 445 # 冷数据区域的缓存页数量
Modified db pages 0 # flush链表中的缓存页数量
Pending reads 0 # 等待从磁盘上加载进缓存页的数量
Pending writes: LRU 0, flush list 0, single page 0
# 即将从lru链表中刷入磁盘的数量、即将从flush链表中刷入磁盘的数量
Pages made young 0, not young 0
# lru冷数据区域里访问之后转移到热数据区域的缓存页的数量,以及在lru冷数据区域里1s内被访问了没进入热数据区域的缓存页的数量
0.00 youngs/s, 0.00 non-youngs/s
# 每秒从冷数据区域进入热数据区域的缓存页的数量,以及每秒在冷数据区域里被访问了但是不能进入热数据区域的缓存页的数量
Pages read 1008, created 145, written 258 # 已经读取、创建和写入了多少个缓存页
0.00 reads/s, 0.00 creates/s, 0.00 writes/s # 每秒钟读取、创建和写入的缓存页数量
Buffer pool hit rate 1000 / 1000, young-making rate 0 / 1000 not 0 / 1000
# 1000次访问有多少命中了缓存
# 1000次访问有多少次让缓存从冷数据区域数据移动热数据区域,以及没移动的数量
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
# 每秒钟线性预读操作的次数,未被访问、每秒被清出的缓存页数量,每秒钟随机预读操作的次数。
LRU len: 1153, unzip_LRU len: 0
# lru链表里的缓存页数量,正在访问的缓存页数量
I/O sum[0]:cur[0] unzip sum[0]:cur[0]
# 访问缓冲池unzip_LRU list页面的总数,正在访问缓冲池unzip_LRU list页面的总数