innodb_buffer_stats_by_schema and x$innodb_buffer_stats_by_schema Sys Schema Views
These views summarize InnoDB buffer pool usage, showing the amount of memory and number of pages allocated to each database schema.
Description
Column
Description
Example
SELECT * FROM sys.innodb_buffer_stats_by_schema\G
*************************** 1. row ***************************
object_schema: InnoDB System
allocated: 160.00 KiB
data: 6.21 KiB
pages: 10
pages_hashed: 10
pages_old: 10
rows_cached: 21
*************************** 2. row ***************************
object_schema: mysql
allocated: 112.00 KiB
data: 1.73 KiB
pages: 7
pages_hashed: 7
pages_old: 7
rows_cached: 5
*************************** 3. row ***************************
object_schema: test
allocated: 64.00 KiB
data: 0 bytes
pages: 4
pages_hashed: 4
pages_old: 4
rows_cached: 0
SELECT * FROM sys.x$innodb_buffer_stats_by_schema\G
*************************** 1. row ***************************
object_schema: InnoDB System
allocated: 163840
data: 6362
pages: 10
pages_hashed: 0
pages_old: 0
rows_cached: 21
*************************** 2. row ***************************
object_schema: mysql
allocated: 114688
data: 1775
pages: 7
pages_hashed: 0
pages_old: 0
rows_cached: 5
*************************** 3. row ***************************
object_schema: test
allocated: 65536
data: 0
pages: 4
pages_hashed: 0
pages_old: 0
rows_cached: 0Previoushost_summary_by_statement_latency and x$host_summary_by_statement_latency Sys Schema ViewsNextinnodb_buffer_stats_by_table and x$innodb_buffer_stats_by_table Sys Schema Views
Last updated
Was this helpful?

