{
  "slug": "io-wq",
  "term": "io-wq",
  "aliases": [
    "io_uring worker pool"
  ],
  "definition": "io-wq is the Linux io_uring worker facility that executes requests offloaded to asynchronous helper threads.",
  "note": "Linux v6.14 queues offloaded work and tries to activate a free worker; creation of another worker is constrained by the pool's worker count. Not every io_uring request needs this path. [worker-source] [async-flags]\n\nThe bounded and unbounded classes describe work execution, not unlimited thread counts or an application deadline. io_uring_register_iowq_max_workers takes two maxima, bounded first and unbounded second. Passing two zeros queries the existing limits; successful calls return the previous settings in that array. Idle workers can be retired, so a maximum is not a reservation. [worker-limits]\n\nIn the v6.14 worker-limit helper, zero leaves that class unchanged; positive requests are capped by RLIMIT_NPROC. Query again with a fresh zero-filled array after changing limits. The set-call array contains old values, not the new limits or live worker counts. [worker-source] [worker-limits] The registration result describes the selected task's pool, not every submitting task. If that pool does not exist, v6.14 returns two zeros; this is not evidence that execution is disabled. [worker-register]\n\nSQE consumption permits reuse of the submission slot even when execution has been deferred. It does not mean the requested transfer has finished or that its data buffer can be reused. [async-enter]",
  "status": "shipping",
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-28",
  "advantages": [
    {
      "text": "Worker offload accommodates operations that cannot finish through the initial nonblocking issue path.",
      "citationIds": [
        "async-flags"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Pool sizing alone establishes neither write dependencies nor persistence.",
      "citationIds": [
        "async-enter"
      ]
    }
  ],
  "related": [
    "io-uring",
    "iosqe-async"
  ],
  "citations": [
    {
      "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"
    },
    {
      "id": "worker-limits",
      "title": "liburing 2.10: io_uring_register_iowq_max_workers(3)",
      "url": "https://github.com/axboe/liburing/blob/liburing-2.10/man/io_uring_register_iowq_max_workers.3",
      "accessed": "2026-11-28"
    },
    {
      "id": "worker-source",
      "title": "Linux v6.14: io-wq.c, enqueue, worker creation and io_wq_max_workers",
      "url": "https://github.com/torvalds/linux/blob/v6.14/io_uring/io-wq.c",
      "accessed": "2026-11-28"
    },
    {
      "id": "async-enter",
      "title": "liburing 2.10: io_uring_enter(2), submission consumption and IORING_OP_FSYNC",
      "url": "https://github.com/axboe/liburing/blob/liburing-2.10/man/io_uring_enter.2",
      "accessed": "2026-11-28"
    },
    {
      "id": "hesela-workers",
      "title": "io_uring: helper-thread execution, limits and completion boundaries",
      "url": "https://hesela.com/analyses/io-uring-completion-ordering-durability/#worker-execution",
      "accessed": "2026-11-28"
    },
    {
      "id": "worker-register",
      "title": "Linux v6.14: io_register_iowq_max_workers, existing-pool and no-pool return paths",
      "url": "https://github.com/torvalds/linux/blob/v6.14/io_uring/register.c",
      "accessed": "2026-11-28"
    }
  ],
  "provenance": [
    "Pinned API review: liburing 2.10; implementation review: Linux v6.14 io_wq_enqueue, io_wq_create_worker and io_wq_max_workers.",
    "No kernel workload, latency benchmark or power-loss experiment was run."
  ]
}
