cgroup v2 I/O controller
The cgroup v2 I/O controller accounts for and regulates block-device I/O for hierarchical groups of Linux processes.
io.stat reports device-keyed byte and operation counts. io.max sets directional bytes-per-second and IOPS limits; temporary bursts are permitted. [1]
Buffered writeback needs filesystem support. Its ownership is per inode, can switch between groups, and can misattribute concurrent cross-group writers. This differs from per-process accounting. [2]
IOCost models request cost rather than equating bytes or operation counts with device occupancy; its memory-reclaim path can issue over-budget I/O on credit to avoid blocking another group. This is a source-described control mechanism, not a host measurement. [3]
io.prio.class changes request priority classes under its selected policy; it is separate from io.max rate limiting and can alter the class requested by a thread. [1]
Latency protection: io.latency can throttle eligible peers with higher numeric or unset targets when a protected group misses its target. Linux v6.12 uses different sample checks for nonrotational and other devices; its counters are not application p99 measurements. [4]
Relations
- related
- Pressure Stall Information (PSI), Process I/O accounting, Budget Fair Queueing (BFQ), Linux I/O priority, IOCost, Dirty-page throttling
Limitations
- These counters do not certify crash durability. [1]
Citations
- Linux 6.12: cgroup v2 I/O interface and writeback
- Linux 6.12: cgroup writeback ownership
- Heo et al.: IOCost, ASPLOS 2022, sections 3.2-3.5; DOI 10.1145/3503222.3507727
- Linux v6.12: blk-iolatency.c, peer targets, latency_sum_ok and iolatency_pd_stat
Sources & caveats
- Source synthesis from Linux 6.12 documentation; no new host measurements or universal performance guarantee.