{
  "slug": "io-uring",
  "term": "io_uring",
  "aliases": [
    "Linux io_uring"
  ],
  "definition": "io_uring is a Linux asynchronous I/O interface that exchanges requests and completion results through shared submission and completion rings.",
  "note": "Batching can reduce per-request submission overhead; it does not establish persistence. The completion result belongs to the specific operation, not to the ring as a whole. For file updates, identify the write set and its synchronization protocol. [overview] Linux v6.14 supports a separate PI metadata attribute for reads/writes; that path requires O_DIRECT and participating lower layers, and does not replace synchronization. [pi-rw]\n\nIORING_SETUP_IOPOLL targets storage completions; IORING_SETUP_SQPOLL runs a kernel thread checking submissions. SQPOLL alone does not select device-completion polling. The submission thread can sleep, requiring a wakeup; lower syscall counts do not establish lower total CPU cost. [uring-polling]\n\nDidona et al. found that the kernel submission poller could compete with the application for scarce cores in their Linux 5.13 raw-device tests. Their 4 KiB random-read study is not a current-kernel sizing rule or a filesystem benchmark. [storage-apis-2022]\n\nAsynchronous requests may use io-wq helper threads. IOSQE_ASYNC requests immediate offload instead of the initial nonblocking issue attempt; it does not establish write ordering. [async-flags]",
  "status": "shipping",
  "advantages": [
    "Supports batched asynchronous operations without requiring every request to use a separate synchronous syscall."
  ],
  "limitations": [
    "Availability and behavior depend on the operation, kernel and filesystem."
  ],
  "related": [
    "io-uring-cqe",
    "io-uring-linked-requests",
    "io-uring-drain",
    "fsync",
    "queue-depth",
    "io-uring-integrity-metadata",
    "io-uring-cancellation",
    "io-uring-linked-timeout",
    "io-uring-registered-files",
    "io-uring-registered-buffers",
    "io-uring-provided-buffers",
    "rwf-hipri",
    "io-wq",
    "iosqe-async"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-28",
  "citations": [
    {
      "id": "overview",
      "title": "liburing: io_uring(7), result reporting and shared rings.",
      "url": "https://man7.org/linux/man-pages/man7/io_uring.7.html",
      "accessed": "2026-10-14"
    },
    {
      "id": "hesela-uring",
      "title": "io_uring: completion is not a durable commit",
      "url": "https://hesela.com/analyses/io-uring-completion-ordering-durability/",
      "accessed": "2026-10-14"
    },
    {
      "id": "pi-rw",
      "title": "Linux v6.14: io_prep_rw_pi, io_prep_rw and io_rw_init_file in io_uring/rw.c.",
      "url": "https://github.com/torvalds/linux/blob/v6.14/io_uring/rw.c",
      "accessed": "2026-10-15"
    },
    {
      "id": "pi-map",
      "title": "Linux v6.14: bio_integrity_map_iter and explicit integrity-check flags.",
      "url": "https://github.com/torvalds/linux/blob/v6.14/block/bio-integrity.c",
      "accessed": "2026-10-15"
    },
    {
      "id": "uring-polling",
      "title": "liburing: io_uring_setup(2), IOPOLL and SQPOLL",
      "url": "https://man7.org/linux/man-pages/man2/io_uring_setup.2.html",
      "accessed": "2026-11-10"
    },
    {
      "id": "storage-apis-2022",
      "title": "Didona et al., Understanding Modern Storage APIs, SYSTOR 2022, sections 3.1-3.3 and 4",
      "url": "https://doi.org/10.1145/3534056.3534945",
      "accessed": "2026-11-10"
    },
    {
      "id": "async-flags",
      "title": "liburing 2.10: io_uring_sqe_set_flags(3), IOSQE_ASYNC",
      "url": "https://github.com/axboe/liburing/blob/liburing-2.10/man/io_uring_sqe_set_flags.3",
      "accessed": "2026-11-28"
    }
  ]
}
