Documentation Home
MySQL 9.4 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 41.2Mb
PDF (A4) - 41.3Mb
Man Pages (TGZ) - 262.8Kb
Man Pages (Zip) - 368.8Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb


MySQL 9.4 Reference Manual  / ...  / INFORMATION_SCHEMA Tables  / INFORMATION_SCHEMA InnoDB Tables  /  The INFORMATION_SCHEMA INNODB_CMPMEM and INNODB_CMPMEM_RESET Tables

28.4.7 The INFORMATION_SCHEMA INNODB_CMPMEM and INNODB_CMPMEM_RESET Tables

TheINNODB_CMPMEM andINNODB_CMPMEM_RESET tables provide status information on compressedpages within theInnoDBbuffer pool.

TheINNODB_CMPMEM andINNODB_CMPMEM_RESET tables have these columns:

  • PAGE_SIZE

    The block size in bytes. Each record of this table describes blocks of this size.

  • BUFFER_POOL_INSTANCE

    A unique identifier for the buffer pool instance.

  • PAGES_USED

    The number of blocks of sizePAGE_SIZE that are currently in use.

  • PAGES_FREE

    The number of blocks of sizePAGE_SIZE that are currently available for allocation. This column shows the external fragmentation in the memory pool. Ideally, these numbers should be at most 1.

  • RELOCATION_OPS

    The number of times a block of sizePAGE_SIZE has been relocated. The buddy system can relocate the allocatedbuddy neighbor of a freed block when it tries to form a bigger freed block. Reading from theINNODB_CMPMEM_RESET table resets this count.

  • RELOCATION_TIME

    The total time in microseconds used for relocating blocks of sizePAGE_SIZE. Reading from the tableINNODB_CMPMEM_RESET resets this count.

Example

mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_CMPMEM\G*************************** 1. row ***************************           page_size: 1024buffer_pool_instance: 0          pages_used: 0          pages_free: 0      relocation_ops: 0     relocation_time: 0*************************** 2. row ***************************           page_size: 2048buffer_pool_instance: 0          pages_used: 0          pages_free: 0      relocation_ops: 0     relocation_time: 0*************************** 3. row ***************************           page_size: 4096buffer_pool_instance: 0          pages_used: 0          pages_free: 0      relocation_ops: 0     relocation_time: 0*************************** 4. row ***************************           page_size: 8192buffer_pool_instance: 0          pages_used: 7673          pages_free: 15      relocation_ops: 4638     relocation_time: 0*************************** 5. row ***************************           page_size: 16384buffer_pool_instance: 0          pages_used: 0          pages_free: 0      relocation_ops: 0     relocation_time: 0

Notes