文档首页
MySQL 8.4 参考手册
8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

MySQL 8.4 参考手册 / 28 个 INFORMATION_SCHEMA 表 / 28.4 INFORMATION_SCHEMA InnoDB 表 / 28.4.7 INFORMATION_SCHEMA INNODB_CMPMEM 和 INNODB_CMPMEM_RESET 表
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 71%

28.4.7 INFORMATION_SCHEMA 中的 INNODB_CMPMEM 和 INNODB_CMPMEM_RESET 表28.4.7 The INFORMATION_SCHEMA INNODB_CMPMEM and INNODB_CMPMEM_RESET Tables

INNODB_CMPMEM 和 INNODB_CMPMEM_RESET 表提供了 InnoDB 缓冲池中已压缩页的状态信息。The INNODB_CMPMEM and INNODB_CMPMEM_RESET tables provide status information on compressed pages within the InnoDB buffer pool.

INNODB_CMPMEM 和 INNODB_CMPMEM_RESET 表具有以下列:The INNODB_CMPMEM and INNODB_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

    当前正在使用的 PAGE_SIZE 大小块的数量。The number of blocks of size PAGE_SIZE that are currently in use.

  • PAGES_FREE

    当前可用于分配的 PAGE_SIZE 大小的区块数量。此列显示内存池中的外部碎片情况。理想情况下,这些数字应最多为 1。The number of blocks of size PAGE_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

    大小为 PAGE_SIZE 的区块被重新定位的次数。当尝试形成更大的空闲区块时,伙伴系统可以重新定位已分配区块的“伙伴邻居”。从 INNODB_CMPMEM_RESET 表读取数据会重置此计数。The number of times a block of size PAGE_SIZE has been relocated. The buddy system can relocate the allocated “buddy neighbor” of a freed block when it tries to form a bigger freed block. Reading from the INNODB_CMPMEM_RESET table resets this count.

  • RELOCATION_TIME

    用于重新定位大小为 PAGE_SIZE 的块的总时间(以微秒为单位)。从表 INNODB_CMPMEM_RESET 读取将重置此计数。The total time in microseconds used for relocating blocks of size PAGE_SIZE. Reading from the table INNODB_CMPMEM_RESET resets this count.

示例Example

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

备注Notes