Environmental Statement
mysql 5.7 and above
official
# InnoDB缓冲区缓存的命中率计算公式
100 * (1 - (innodb_buffer_pool_reads/innodb_buffer_pool_read_requests ))
注意: 对于具有大型缓冲池的系统,既要关注该比率,也要关注OS页面读写速率的变化可以更好地跟踪差异。
select * from performance_schema.global_status where VARIABLE_NAME in ('innodb_buffer_pool_reads', 'innodb_buffer_pool_read_requests');
Find out which InnoDB tables are cached in innodb buffer pool
You can discover how many pages of a table are cached in the buffer pool (sys mode) using sys mode (starting with MySQL Server 5.7, it is installed by default). The query to use is: SELECT * FROM sys.innodb_buffer_stats_by_table;
Logical I/O is many times faster than physical I/O