anticipatory-scheduling · research · also anticipatory disk scheduling

Anticipatory scheduling

Anticipatory scheduling briefly delays dispatch to wait for another request from a process whose I/O queue has just become empty.

Related Observatory article: Read on hesela.com

A synchronous reader may need a short computation after completion before submitting its next read. Immediately serving another process can force an avoidable head seek, even with pending work elsewhere. This temporary absence of the desired request is deceptive idleness. [2]

Unlike prefetching, anticipation waits for a demand request instead of guessing and issuing its read. The original framework wraps a scheduling policy with adaptive waiting heuristics; seek reduction and proportional service need different criteria. [2]

Linux 6.16 BFQ retains idling for selected synchronous queues. On flash with internal command queueing, it may sacrifice throughput for latency or fairness. With strict_guarantees disabled, writing slice_idle=0 disables idling; it is not a universal performance fix. [3] [5]

A zero slice_idle readback alone does not prove disabled idling. A sub-millisecond slice_idle_us value truncates to zero milliseconds, and strict mode takes precedence over the zero-interval check. Inspect both tunables and strict_guarantees. [5]

FIOS applies anticipation to flash fairness rather than seek reduction. It can delay an epoch switch while a task has unused timeslice, or delay a write while waiting for a reader. Its waiting budget follows a configured idle-time fraction, and the waiting cost is charged to the anticipating task. [1]

Antfarm explores process-aware anticipation across guests; inferred process identity and read attribution have separate limitations. [6]

Relations

related
I/O scheduler, Budget Fair Queueing (BFQ), readahead (Linux syscall), Work-conserving scheduler, FlashFQ, FIOS, Antfarm

Limitations

  • Waiting consumes device time when the expected request does not arrive soon enough. [2]

Citations

  1. Park and Shen. FIOS: A Fair, Efficient Flash I/O Scheduler. FAST 2012, section 4.4. (accessed 2026-11-08)
  2. Iyer and Druschel. Anticipatory scheduling: A disk scheduling framework to overcome deceptive idleness in synchronous I/O. SOSP 2001, sections 2-5. (accessed 2026-11-08)
  3. Linux 6.16: BFQ, device idling, slice_idle and strict_guarantees (accessed 2026-11-08)
  4. Linux v6.16: bfq-iosched.c, bfq_better_to_idle and slice_idle show/store functions (accessed 2026-12-02)
  5. Jones, Arpaci-Dusseau and Arpaci-Dusseau. Antfarm: Tracking Processes in a Virtual Machine Environment. USENIX ATC 2006, sections 4, 6 and 7. (accessed 2026-12-02)

Further reading

  1. Hesela: Sharing an SSD: who pays for the slowdown? (accessed 2026-11-08)
Sources & caveats
  • The 2001 experiments used FreeBSD 4.3 and rotating disks; their gains are not predictions for present-day SSDs. [2]
  • This entry describes a research framework and its scheduling principle, not an available scheduler name in every current kernel.
  • Primary-source synthesis only; no hardware benchmark or paper replication was performed.

JSON: /data/terms/anticipatory-scheduling.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Anticipatory scheduling. Hesela. 2026-12-02. https://hesela.dev/terms/anticipatory-scheduling/