{
  "slug": "io-request-size",
  "term": "I/O request size",
  "aliases": [
    "Benchmark block size"
  ],
  "definition": "I/O request size is the number of bytes requested by one input/output operation at a specified system boundary.",
  "note": "A load generator's block size sets bytes per I/O, with a default of 4096 bytes, and separate sizes can apply to reads, writes and trims. A size split sets an operation mix: 10% at 4 KiB, 50% at 64 KiB and 40% at 32 KiB gives a mean of 45.2 KiB per operation, so throughput equals IOPS times 45.2 KiB. [fio] This size is distinct from a device's logical sector or a filesystem allocation unit.\n\nKernel request merging can change counts and sizes below the application boundary: two adjacent 4K reads may become one 8K read, counted and queued as one I/O. [linux-iostats] A writable per-queue limit caps the kilobytes allowed in one filesystem request, at or below the hardware maximum, and merge attempts can be partly or fully disabled. [linux-sysfs-block]\n\nWhen relating successful data-transfer IOPS to bytes/s, use the actual completed bytes and the matching operation population, especially if sizes vary or transfers are short. A device may also report a minimum I/O size, often the physical block size for disks or the chunk size for RAID arrays, below which requests incur a performance penalty. [linux-sysfs-block]",
  "status": "shipping",
  "advantages": [
    {
      "text": "Stating the size per operation type lets read, write and trim results be compared without a blended average hiding the mix.",
      "citationIds": [
        "fio"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Counts taken above the merge layer and below it describe different operation populations, so their mean sizes cannot be mixed in one ratio.",
      "citationIds": [
        "linux-iostats"
      ]
    }
  ],
  "related": [
    "iops",
    "throughput-storage",
    "queue-depth",
    "logical-sector",
    "physical-sector",
    "partition-alignment",
    "blk-mq",
    "sequential-io",
    "random-io",
    "direct-io-alignment",
    "flashgraph"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "fio",
      "title": "fio documentation: blocksize, bsrange and bssplit; online manual reviewed 23 October 2026.",
      "url": "https://fio.readthedocs.io/en/master/fio_doc.html",
      "accessed": "2026-10-23"
    },
    {
      "id": "linux-iostats",
      "title": "Linux kernel documentation: I/O statistics fields; completed requests, merged requests and sectors.",
      "url": "https://docs.kernel.org/admin-guide/iostats.html",
      "accessed": "2026-10-23"
    },
    {
      "id": "hesela-accounting",
      "title": "Hesela: IOPS, bytes and average occupancy; synthetic accounting examples.",
      "url": "https://hesela.com/analyses/storage-latency-coordinated-omission/#io-accounting",
      "accessed": "2026-10-13"
    },
    {
      "id": "linux-sysfs-block",
      "title": "Linux kernel documentation: stable ABI, sysfs-block queue attributes max_sectors_kb, minimum_io_size and nomerges.",
      "url": "https://docs.kernel.org/admin-guide/abi-stable.html",
      "accessed": "2026-10-23"
    }
  ],
  "updated": "2026-11-14",
  "provenance": [
    "fio re-read 2026-10-23 for the 4096-byte default, per-direction sizes and the bssplit example mix.",
    "linux-iostats re-read 2026-10-23 for merged-request fields and the two 4K reads merged into one 8K read.",
    "linux-sysfs-block read 2026-10-23 for max_sectors_kb, max_hw_sectors_kb, minimum_io_size and nomerges.",
    "The 45.2 KiB mean is arithmetic from the documented example mix, not a measured result.",
    "The direct-io-alignment entry links here because aligned direct I/O constrains request sizes to multiples of the device block size, which is the boundary this entry defines.",
    "A companion analysis on I/O accounting is listed but not used in prose."
  ]
}
