Documentation Home
MySQL 5.7 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 35.1Mb
PDF (A4) - 35.2Mb
Man Pages (TGZ) - 256.4Kb
Man Pages (Zip) - 361.2Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
Excerpts from this Manual

MySQL 5.7 Reference Manual  / ...  / MySQL sys Schema  / sys Schema Object Reference  / sys Schema Views  /  The innodb_buffer_stats_by_schema and x$innodb_buffer_stats_by_schema Views

26.4.3.7 The innodb_buffer_stats_by_schema and x$innodb_buffer_stats_by_schemaViews

These views summarize the information in theINFORMATION_SCHEMAINNODB_BUFFER_PAGE table, grouped by schema. By default, rows are sorted by descending buffer size.

Warning

Querying views that access theINNODB_BUFFER_PAGE table can affect performance. Do not query these views on a production system unless you are aware of the performance impact and have determined it to be acceptable. To avoid impacting performance on a production system, reproduce the issue you want to investigate and query buffer pool statistics on a test instance.

Theinnodb_buffer_stats_by_schema andx$innodb_buffer_stats_by_schema views have these columns:

  • object_schema

    The schema name for the object, orInnoDB System if the table belongs to theInnoDB storage engine.

  • allocated

    The total number of bytes allocated for the schema.

  • data

    The total number of data bytes allocated for the schema.

  • pages

    The total number of pages allocated for the schema.

  • pages_hashed

    The total number of hashed pages allocated for the schema.

  • pages_old

    The total number of old pages allocated for the schema.

  • rows_cached

    The total number of cached rows for the schema.