Kyber I/O scheduler
Kyber is a Linux I/O scheduler that adjusts request-domain concurrency using measured latency and configured targets.
Device-wide tokens bound outstanding requests in each domain. In Linux v6.16 the maximum depths are 256 for reads, 128 for writes, 64 for discards and 16 for other requests, and 25 percent of requests are reserved for synchronous operations. [1]
The default targets are 2 ms for reads, 10 ms for writes and 5 s for discards, and read_lat_nsec and write_lat_nsec take values in nanoseconds. Latency feedback changes domain depths. A target is a control input, not a deadline for every request or an application latency guarantee. [1] [2]
For requests handled by Kyber in v6.16, REQ_OP_WRITE selects the write domain regardless of the synchronous flag. Reserving request capacity for synchronous traffic is a separate mechanism. Neither classification establishes persistence after power loss. [1] [3]
The v6.16 feedback loop uses histogram-bucket estimates of device-I/O p90 for congestion detection and total block-request p99 for depth adjustment. These populations are not application or fsync latency distributions. [1]
Relations
- related
- I/O scheduler, Linux blk-mq, Queue depth, Tail latency
Advantages
- Separate token pools per domain let reads keep dispatch capacity while writes or discards are throttled. [1]
Limitations
- Each histogram bucket spans one quarter of the target, with 4 buckets at or below it and 4 above, so percentile estimates are coarse. [1]
- Only the read and write targets are documented as sysfs tunables, while the discard target is fixed in source. [2, 1]
Citations
- Linux v6.16: kyber-iosched.c, domain selection and latency feedback
- Linux 6.16: Kyber I/O scheduler tunables
- Linux 6.16: Explicit volatile write back cache control
Further reading
Sources & caveats
- Scoped to Linux v6.16, where the tunable documentation describes synchronous-write latency whereas kyber_sched_domain classifies all REQ_OP_WRITE requests together. [2] [1]
- kyber is the v6.16 kyber-iosched.c source, re-read on git.kernel.org at the same tag for domain depths, default targets and histogram constants.
- kyber-doc and cache-control are the Linux 6.16 documentation pages, re-read for tunable units and flush semantics.
- The little-law entry links here because Kyber regulates in-flight concurrency, which Little's law ties to throughput and latency.