{
  "status": "shipping",
  "advantages": [
    {
      "text": "Writing a scheduler name to the sysfs file switches the policy on the fly, without rebooting.",
      "citationIds": [
        "switch"
      ]
    }
  ],
  "limitations": [
    {
      "text": "If initializing the default scheduler fails, the queue falls back to none and the kernel only logs a warning.",
      "citationIds": [
        "elevator"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-02",
  "slug": "io-scheduler",
  "term": "I/O scheduler",
  "aliases": [
    "Linux I/O scheduler",
    "block I/O scheduler"
  ],
  "definition": "An I/O scheduler is a host block-layer policy that selects or regulates pending request dispatch to a storage device.",
  "note": "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. [switch]\n\nIn 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. [elevator]\n\nThe none selection removes the elevator policy, not the block layer or the device's own scheduling. [elevator] The block layer does not guarantee completion order. [blk-mq]\n\nA scheduler setting does not replace the write-cache flush and FUA mechanisms needed for persistence. [cache-control]\n\nQueue 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. [semi-preemptible]",
  "related": [
    "blk-mq",
    "mq-deadline",
    "bfq",
    "kyber",
    "queue-depth",
    "cache-flush",
    "mclock",
    "anticipatory-scheduling",
    "work-conserving-scheduler",
    "flashfq",
    "fios",
    "linux-writeback-throttling",
    "freeblock-scheduling",
    "semi-preemptible-io",
    "linux-io-priority",
    "iocost",
    "first-come-first-served",
    "head-of-line-blocking",
    "ioflow",
    "shortest-remaining-processing-time",
    "fscan",
    "shortest-positioning-time-first",
    "disk-mimic"
  ],
  "citations": [
    {
      "id": "switch",
      "title": "Linux 6.16: Switching Scheduler",
      "url": "https://docs.kernel.org/6.16/block/switching-sched.html",
      "accessed": "2026-10-23"
    },
    {
      "id": "elevator",
      "title": "Linux v6.16: elevator.c, elevator_switch and the none selection",
      "url": "https://github.com/torvalds/linux/blob/v6.16/block/elevator.c",
      "accessed": "2026-10-23"
    },
    {
      "id": "cache-control",
      "title": "Linux 6.16: Explicit volatile write back cache control",
      "url": "https://docs.kernel.org/6.16/block/writeback_cache_control.html",
      "accessed": "2026-10-23"
    },
    {
      "id": "blk-mq",
      "title": "Linux 6.16: Multi-Queue Block IO Queueing Mechanism",
      "url": "https://docs.kernel.org/6.16/block/blk-mq.html",
      "accessed": "2026-10-23"
    },
    {
      "id": "hesela",
      "title": "Hesela: Sharing an SSD: who pays for the slowdown?",
      "url": "https://hesela.com/analyses/ssd-fairness-shared-queues/",
      "accessed": "2026-10-21"
    },
    {
      "id": "semi-preemptible",
      "title": "Dimitrijevic, Rangaswami and Chang. Design and Implementation of Semi-preemptible IO. FAST 2003, sections 1 and 3.",
      "url": "https://www.usenix.org/legacy/events/fast03/tech/full_papers/dimitrijevic/dimitrijevic.pdf",
      "accessed": "2026-11-09"
    }
  ],
  "provenance": [
    "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."
  ]
}
