Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
I/O scheduling
Arbiter for mass storage access in an operating system

Input/output (I/O) scheduling is the method that computer operating systems use to decide in which order I/O operations will be submitted to storage volumes. I/O scheduling is sometimes called disk scheduling.

Related Image Collections Add Image
We don't have any YouTube videos related to I/O scheduling yet.
We don't have any PDF documents related to I/O scheduling yet.
We don't have any Books related to I/O scheduling yet.
We don't have any archived web articles related to I/O scheduling yet.

Purpose

I/O scheduling usually has to work with hard disk drives that have long access times for requests placed far away from the current position of the disk head (this operation is called a seek). To minimize the effect this has on system performance, most I/O schedulers implement a variant of the elevator algorithm that reorders the incoming randomly ordered requests so the associated data would be accessed with minimal head movement.

I/O schedulers can have many purposes depending on the goals; common purposes include the following

  • To minimize time wasted by hard disk seeks
  • To prioritize a certain processes' I/O requests
  • To give a share of the disk bandwidth to each running process
  • To guarantee that certain requests will be issued before a particular deadline

Disciplines

Common scheduling disciplines include the following:

  • Random scheduling (RSS)
  • First In, First Out (FIFO), also known as First Come First Served (FCFS)
  • Last In, First Out (LIFO)
  • Shortest seek first, also known as Shortest Seek / Service Time First (SSTF)
  • Elevator algorithm, also known as SCAN (including its variants, C-SCAN, LOOK, and C-LOOK)
  • N-Step-SCAN SCAN of N records at a time
  • FSCAN, N-Step-SCAN where N equals queue size at start of the SCAN cycle
  • mClock scheduler1
  • In Linux kernel:
    • anticipatory (until 2.6.32)
    • noop (until 4.20) 🠊 none (since 4.11)
    • deadline (until 4.20) 🠊 mq-deadline (since 4.11)
    • cfq (Completely Fair Queuing) (until 4.20) 🠊 bfq (Budget Fair Queueing) (since 4.12)23
    • kyber (since 4.12)45

See also

Further reading

  • Media related to I/O scheduling at Wikimedia Commons

References

  1. "mClock: Handling Throughput Variability for Hypervisor IO Scheduling". VMware Inc. Retrieved 2015-07-12. https://labs.vmware.com/academic/publications/mclock

  2. "Budget Fair Queueing I/O Scheduler". http://algo.ing.unimo.it/people/paolo/disk_sched/

  3. "BFQ I/O Scheduler Queued For Linux 4.12 - Phoronix". www.phoronix.com. https://www.phoronix.com/scan.php?page=news_item&px=BFQ-Queued-Linux-4.12

  4. "blk-mq: Kyber multiqueue I/O scheduler [LWN.net]". lwn.net. 14 Apr 2017. Retrieved 2019-07-19. https://lwn.net/Articles/720071/

  5. "BFQ I/O Scheduler Lands Along With New Kyber Scheduler - Phoronix". www.phoronix.com. 1 May 2017. https://www.phoronix.com/scan.php?page=news_item&px=Linux-4.12-BFQ-Kyber