PDF (A4) - 35.2Mb
Man Pages (TGZ) - 256.4Kb
Man Pages (Zip) - 361.2Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
MySQL and Linux/Unix
MySQL and macOS
MySQL Partitioning
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL Restrictions and Limitations
Security in MySQL
MySQL and Solaris
Building MySQL from Source
Starting and Stopping MySQL
MySQL Tutorial
MySQL and Windows
MySQL NDB Cluster 7.5
TheINNODB_CMPMEM andINNODB_CMPMEM_RESET tables provide status information on compressedpages within theInnoDBbuffer pool.
TheINNODB_CMPMEM andINNODB_CMPMEM_RESET tables have these columns:
PAGE_SIZEThe block size in bytes. Each record of this table describes blocks of this size.
BUFFER_POOL_INSTANCEA unique identifier for the buffer pool instance.
PAGES_USEDThe number of blocks of size
PAGE_SIZEthat are currently in use.PAGES_FREEThe number of blocks of size
PAGE_SIZEthat are currently available for allocation. This column shows the external fragmentation in the memory pool. Ideally, these numbers should be at most 1.RELOCATION_OPSThe number of times a block of size
PAGE_SIZEhas 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 theINNODB_CMPMEM_RESETtable resets this count.RELOCATION_TIMEThe total time in microseconds used for relocating blocks of size
PAGE_SIZE. Reading from the tableINNODB_CMPMEM_RESETresets 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: 0Notes
Use these tables to measure the effectiveness of
InnoDBtablecompression in your database.You must have the
PROCESSprivilege to query this table.Use the
INFORMATION_SCHEMACOLUMNStable or theSHOW COLUMNSstatement to view additional information about the columns of this table, including data types and default values.For usage information, seeSection 14.9.1.4, “Monitoring InnoDB Table Compression at Runtime” andSection 14.16.1.3, “Using the Compression Information Schema Tables”. For general information about
InnoDBtable compression, seeSection 14.9, “InnoDB Table and Page Compression”.
PDF (A4) - 35.2Mb
Man Pages (TGZ) - 256.4Kb
Man Pages (Zip) - 361.2Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
MySQL and Linux/Unix
MySQL and macOS
MySQL Partitioning
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL Restrictions and Limitations
Security in MySQL
MySQL and Solaris
Building MySQL from Source
Starting and Stopping MySQL
MySQL Tutorial
MySQL and Windows
MySQL NDB Cluster 7.5