// mysql · disk i/o

innodb_io_capacity_max

Upper limit on background I/O when InnoDB falls behind on flushing.

Default
2 x innodb_io_capacity (20000)
Range
100 to 4294967295
Restart needed
No
Default checked on
MySQL 8.4 LTS

What it does

When dirty pages or redo age build up, InnoDB may exceed innodb_io_capacity up to this value.

Default value

2 x innodb_io_capacity (20000). Twice innodb_io_capacity, which is 20000 in MySQL 8.4. In 8.0 it was twice innodb_io_capacity with a floor of 2000, so 2000 with the old default of 200.

Check the current value

SHOW GLOBAL VARIABLES LIKE 'innodb_io_capacity_max';

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

Change it

SET GLOBAL innodb_io_capacity_max = 40000;    -- until the next restart
SET PERSIST innodb_io_capacity_max = 40000;   -- now and after restarts

No restart. SET GLOBAL or SET PERSIST takes effect immediately; SET PERSIST also writes mysqld-auto.cnf so the value survives restarts.

When to change it

Set it when you set innodb_io_capacity explicitly and want a different ratio.

What can go wrong

A value below innodb_io_capacity is not accepted as given: SET GLOBAL raises it to innodb_io_capacity with a warning. With the 8.4 default of 10000, an old setting such as 2000 or 4000 silently becomes 10000.

Questions about innodb_io_capacity_max

What is the default value of innodb_io_capacity_max in MySQL?

2 x innodb_io_capacity (20000). Twice innodb_io_capacity, which is 20000 in MySQL 8.4. In 8.0 it was twice innodb_io_capacity with a floor of 2000, so 2000 with the old default of 200.

Does changing innodb_io_capacity_max require a restart?

No. No restart. SET GLOBAL or SET PERSIST takes effect immediately; SET PERSIST also writes mysqld-auto.cnf so the value survives restarts.

When should I change innodb_io_capacity_max?

Set it when you set innodb_io_capacity explicitly and want a different ratio.

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

// one client for every engine

Check innodb_io_capacity_max 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.