io-scheduler · shipping · also Linux I/O scheduler, block I/O scheduler

I/O scheduler

An I/O scheduler is a host block-layer policy that selects or regulates pending request dispatch to a storage device.

Related Observatory article: Read on hesela.com

Linux exposes the available choices and brackets the active one in /sys/block/<device>/queue/scheduler. The iosched directory holds scheduler-specific settings. The choice applies to a device queue, not to every drive in a system. [1]

In Linux v6.16 a queue with exactly 1 hardware queue, or with tags shared across hardware queues, starts with mq-deadline when it is available, while other queues start with none. A driver flag can also suppress the default scheduler. [2]

The none selection removes the elevator policy, not the block layer or the device's own scheduling. [2] The block layer does not guarantee completion order. [4]

A scheduler setting does not replace the write-cache flush and FUA mechanisms needed for persistence. [3]

Queue selection and device preemption are different controls. Semi-preemptible I/O adds command boundaries where another request can be chosen; a higher host priority alone does not interrupt the current command. [6]

Relations

related
Linux blk-mq, mq-deadline, Budget Fair Queueing (BFQ), Kyber I/O scheduler, Queue depth, Storage cache flush, mClock, Anticipatory scheduling, Work-conserving scheduler, FlashFQ, FIOS, Linux writeback throttling, Freeblock scheduling, Semi-preemptible I/O, Linux I/O priority, IOCost, First-come-first-served scheduling, Head-of-line blocking, IOFlow, Shortest remaining processing time, FSCAN, Shortest positioning time first, Disk Mimic

Advantages

  • Writing a scheduler name to the sysfs file switches the policy on the fly, without rebooting. [1]

Limitations

  • If initializing the default scheduler fails, the queue falls back to none and the kernel only logs a warning. [2]

Citations

  1. Linux 6.16: Switching Scheduler (accessed 2026-10-23)
  2. Linux v6.16: elevator.c, elevator_switch and the none selection (accessed 2026-10-23)
  3. Linux 6.16: Explicit volatile write back cache control (accessed 2026-10-23)
  4. Linux 6.16: Multi-Queue Block IO Queueing Mechanism (accessed 2026-10-23)
  5. Dimitrijevic, Rangaswami and Chang. Design and Implementation of Semi-preemptible IO. FAST 2003, sections 1 and 3. (accessed 2026-11-09)

Further reading

  1. Hesela: Sharing an SSD: who pays for the slowdown? (accessed 2026-10-21)
Sources & caveats
  • switch is the Linux 6.16 Switching Scheduler page, re-read for the sysfs selection syntax.
  • elevator is the v6.16 elevator.c source, re-read on git.kernel.org at the same tag for the default selection and its fallback.
  • blk-mq and cache-control are the Linux 6.16 block-layer pages, re-read for completion ordering and flush semantics.
  • The slowdown-fairness entry links here because the scheduler policy is one host-side factor in how slowdowns are shared between flows.

JSON: /data/terms/io-scheduler.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. I/O scheduler. Hesela. 2026-12-02. https://hesela.dev/terms/io-scheduler/