// mysql · disk i/o

innodb_page_cleaners

Threads that flush dirty pages from the buffer pool.

デフォルト
= innodb_buffer_pool_instances
Range
1 to 64
Restart needed
はい
Default checked on
MySQL 8.4 LTS

何ができるか

Each buffer pool instance is served by one cleaner when the counts match; the value is capped at innodb_buffer_pool_instances.

デフォルト値

= innodb_buffer_pool_instances. Equal to innodb_buffer_pool_instances since MySQL 8.4 (4 in 8.0). 1 with the default 128MB pool.

Check the current value

SHOW GLOBAL VARIABLES LIKE 'innodb_page_cleaners';

SELECT VARIABLE_NAME, VARIABLE_SOURCE, MIN_VALUE, MAX_VALUE, SET_TIME
FROM performance_schema.variables_info
WHERE VARIABLE_NAME = 'innodb_page_cleaners';

Change it

SET PERSIST_ONLY innodb_page_cleaners = 8;
-- then restart mysqld (or set it under [mysqld] in my.cnf)

Restart required: the variable is read-only at runtime (SET GLOBAL fails with error 1238). Stage it with SET PERSIST_ONLY or under [mysqld] in my.cnf.

When to change it

If the error log reports 'page_cleaner: 1000ms intended loop took ...' under steady write load.

What can go wrong

Low.

Questions about innodb_page_cleaners

What is the default value of innodb_page_cleaners in MySQL?

= innodb_buffer_pool_instances. Equal to innodb_buffer_pool_instances since MySQL 8.4 (4 in 8.0). 1 with the default 128MB pool.

Does changing innodb_page_cleaners require a restart?

Yes. Restart required: the variable is read-only at runtime (SET GLOBAL fails with error 1238). Stage it with SET PERSIST_ONLY or under [mysqld] in my.cnf.

When should I change innodb_page_cleaners?

If the error log reports 'page_cleaner: 1000ms intended loop took ...' under steady write load.

Back to all MySQL settings, or check the MySQL manual for every option.

// one client for every engine

Check innodb_page_cleaners on your own server

SQLly runs the query above against MySQL and the other engines in this reference, from one desktop app on macOS, Windows and Linux.