// mysql · disk i/o

innodb_io_capacity

Background I/O operations per second InnoDB aims for when flushing pages and merging.

기본값
10000
Range
100 to 4294967295
Restart needed
아니요
Default checked on
MySQL 8.4 LTS

기능

Paces the page cleaner and other background work. It should reflect what the storage can sustain, not its peak.

기본값

10000. 10000 since MySQL 8.4 (200 in 8.0, a value chosen for spinning disks).

Check the current value

SHOW GLOBAL VARIABLES LIKE 'innodb_io_capacity';

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

Change it

SET GLOBAL innodb_io_capacity = 2000;    -- until the next restart
SET PERSIST innodb_io_capacity = 2000;   -- 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

Lower it on slow or shared storage where background flushing starves queries; on fast NVMe the 8.4 default is reasonable.

What can go wrong

Too high causes needless write amplification; too low lets dirty pages accumulate until InnoDB has to flush aggressively.

Questions about innodb_io_capacity

What is the default value of innodb_io_capacity in MySQL?

10000. 10000 since MySQL 8.4 (200 in 8.0, a value chosen for spinning disks).

Does changing innodb_io_capacity 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?

Lower it on slow or shared storage where background flushing starves queries; on fast NVMe the 8.4 default is reasonable.

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

// one client for every engine

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