{
  "slug": "io-uring-zero-copy-send",
  "term": "io_uring zero-copy send",
  "aliases": [
    "SEND_ZC",
    "IORING_OP_SEND_ZC"
  ],
  "definition": "io_uring zero-copy send is a socket-send operation that attempts to avoid payload copying and separates the send result from any required buffer-release notification.",
  "note": "The initial CQE reports sent bytes or a negative error. If IORING_CQE_F_MORE is set, keep the payload unchanged until the matching IORING_CQE_F_NOTIF notification, even after an initial error. Both entries carry the request's user_data. Without F_MORE, no notification is promised for that send. [sendzc-enter] [sendzc-net]\n\nWith IORING_SEND_ZC_REPORT_USAGE, notification res is a bitfield, not a second send result. IORING_NOTIF_USAGE_ZC_COPIED occupies bit 31 and therefore appears negative in signed res. Classify F_NOTIF before interpreting res as an errno. Without usage reporting, a zero notification result does not establish copy avoidance. [sendzc-uapi]\n\nLinux v6.16 sets COPIED when copying occurred or no successful zero-copy use was recorded. An unsuccessful send can therefore carry that indication without proving any nonzero copied-byte count. [sendzc-notif]\n\nCopy fallback is permitted. Notification releases this request's lifetime hold; it does not establish transmission, remote receipt or remote persistence. Traditional MSG_ZEROCOPY instead reports lifetime events through the socket error queue; its send-ID ranges are not the SEND_ZC CQE interface. [sendzc-enter] [sendzc-socket]",
  "status": "shipping",
  "advantages": [],
  "limitations": [
    "A single-TCP-connection microbenchmark found zero-copy send costlier below about 1 KiB. This workload-specific crossover is not an API guarantee. [sendzc-jasny2026]"
  ],
  "related": [
    "io-uring-cqe",
    "zero-copy"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-29",
  "citations": [
    {
      "id": "sendzc-enter",
      "title": "liburing 2.11: io_uring_enter(2), SEND_ZC results and notification lifetime",
      "url": "https://github.com/axboe/liburing/blob/liburing-2.11/man/io_uring_enter.2",
      "accessed": "2026-11-29"
    },
    {
      "id": "sendzc-uapi",
      "title": "Linux v6.16: io_uring.h, SEND_ZC_REPORT_USAGE and notification flags",
      "url": "https://github.com/torvalds/linux/blob/v6.16/include/uapi/linux/io_uring.h",
      "accessed": "2026-11-29"
    },
    {
      "id": "sendzc-notif",
      "title": "Linux v6.16: notif.c, io_notif_tw_complete and zero-copy usage reporting",
      "url": "https://github.com/torvalds/linux/blob/v6.16/io_uring/notif.c",
      "accessed": "2026-11-29"
    },
    {
      "id": "sendzc-net",
      "title": "Linux v6.16: net.c, io_send_zc_prep and io_sendrecv_fail",
      "url": "https://github.com/torvalds/linux/blob/v6.16/io_uring/net.c",
      "accessed": "2026-11-29"
    },
    {
      "id": "sendzc-socket",
      "title": "Linux v6.16: MSG_ZEROCOPY, socket error-queue notifications and deferred copying",
      "url": "https://github.com/torvalds/linux/blob/v6.16/Documentation/networking/msg_zerocopy.rst",
      "accessed": "2026-11-29"
    },
    {
      "id": "sendzc-jasny2026",
      "title": "Jasny et al.: High-Performance DBMSs with io_uring, arXiv v3, section 4.6, Figure 17",
      "url": "https://arxiv.org/html/2512.04859v3",
      "accessed": "2026-11-29"
    },
    {
      "id": "hesela-sendzc",
      "title": "Hesela: io_uring send results and buffer-release notifications",
      "url": "https://hesela.com/analyses/io-uring-completion-ordering-durability/#zero-copy-send",
      "accessed": "2026-11-29"
    }
  ],
  "provenance": [
    "API review targets liburing 2.11; implementation details target Linux v6.16. These are pinned review versions, not claims about the latest releases.",
    "The remote-persistence boundary is an engineering inference from the local send and buffer-lifetime contracts. No native zero-copy or performance experiment is claimed."
  ]
}
