IOCost
IOCost is a Linux block-I/O controller that distributes service among cgroups using modeled device occupancy and proportional weights.
Accounting: modeled cost represents occupancy, not the completion latency of an individual request. The linear model distinguishes read/write, sequential/random access and request size. Equal bytes or IOPS need not consume equal modeled service. [1]
Sharing: hierarchical weights influence budgets; unused budget can be donated to active groups. Device feedback adjusts the overall issuance rate. This combines proportional allocation with work conservation, rather than assigning every group a fixed IOPS allowance. [1]
Configuration: Linux 6.12 exposes device-keyed io.cost.model and io.cost.qos only in the root cgroup; io.weight belongs to non-root groups. Latency percentiles and thresholds in io.cost.qos govern device-level feedback, not separate application deadlines. [2]
Relations
Limitations
- Model calibration and feedback affect achieved sharing; weights alone do not guarantee a fixed throughput ratio. [1, 3]
- IOCost availability requires kernel support and device enablement; selecting an elevator does not itself enable this controller. [2, 3]
Citations
- Heo et al. IOCost: Block IO Control for Containers in Datacenters. ASPLOS 2022, sections 3.1-3.6; DOI 10.1145/3503222.3507727.
- Linux 6.12: cgroup v2 I/O interface files
- Linux v6.12: blk-iocost.c, cost model, feedback and cgroup interfaces
Further reading
Sources & caveats
- Source synthesis from the ASPLOS 2022 paper and Linux v6.12; no hardware benchmark or controller experiment was performed.