CertGrid CertGrid
Concepts·MySQL

MySQL Buffer Pool in Practice

A 99.948% hit rate sounds excellent and means almost nothing on its own - the dataset fits in the pool, so of course it does. The useful number is how much of the pool is actually in use.

Performance Guide 34 of 45 Intermediate

Written against the versions above. The pool is split into instances - four here - each with its own free list, which reduces contention. The status counters are totals across all of them.

Every command on this page ran on db-a01.
Server NameIP AddressOSRolesCPURAMHDD
db-a01192.168.0.81Ubuntu 26.04 LTSPrimary / Source / Replica Set Member 12 Core4 GB50 GB

Before you start

  1. Read the pool's size and shape

  2. Read the counters that describe its behaviour

  3. Compute the hit rate, and distrust it

  4. Watch the pool warm

Official sources