Every database that flashes a row to disk pays a tax nobody sees: the cost of asking the operating system to do it. Two projects attack that tax from opposite sides, and understanding the difference matters the moment a service starts spending more time waiting on storage than serving requests.
SPDK moves the entire storage stack into userspace and talks to the NVMe device directly, while io_uring keeps the kernel in charge but gives it a pair of rings so an application can hand over hundreds of operations at once.
Part One: What each design actually removes
SPDK polls a dedicated CPU core against the device queue and never takes an interrupt or a syscall. The application links a driver, owns a queue pair, and issues commands straight to the controller. What it removes is the entire kernel path: no context switch, no lock, no scheduler wakeup. In exchange, the application now owns something the kernel used to guarantee, and a bug in that code can corrupt data rather than merely fail a call.
io_uring takes a softer route. A application still calls the kernel, but it does so through two shared-memory rings: one for submission, one for completion. A single syscall can submit a large batch, and with the right flags the kernel can poll so the application never sleeps. What it removes is the per-operation call and the copy, not the kernel itself. The familiar file abstraction, permissions and caching remain intact.
On a fast NVMe drive the kernel path can cost several microseconds per operation, a figure comparable to the device access itself; batching a thousand operations through a ring drops the amortised overhead to tens of nanoseconds.
Part Two: Where the cost really moves
The headline benchmark is seldom the whole story. SPDK buys its speed with a dedicated core and a custom driver, so it shines on machines where storage is the only tenant and the application was written around it. A general web server with a dozen other jobs on the same socket cannot easily donate a core to a polling loop, and then the theoretical win evaporates into scheduling conflicts.
io_uring keeps the operating system as the referee, which makes it far easier to adopt incrementally. A program can convert one hot path, measure, and leave the rest alone. The trade-off is a ceiling: because the kernel still mediates, a request crosses a trust boundary and some work is done on behalf of the caller that SPDK would skip entirely. That boundary is a feature when you want isolation and a tax when you want the last microsecond.
A practical example is a laptop backing up photos to an external SSD. With a conventional write path the copy tool waits on each small file; an io_uring-based tool queues them in a batch and the drive stays busy. The user just sees the progress bar finish sooner, with no idea which ring made it possible.
The enterprise NVMe storage market is measured in tens of billions of dollars a year, and the share of it shipped as all-flash arrays keeps rising. A few microseconds of saved latency translate into more transactions per drive, which is why a technique that started in database internals now appears in mainstream filesystems.
The choice is not about which tool is faster on a slide; it is about whether your application can be trusted to own the device, because SPDK hands you the keys while io_uring lends you the car.
Teams often start with io_uring and move to SPDK only if profiling shows the kernel is still the bottleneck. That order is deliberate: the ring gives most of the gain while keeping the safety net, and only a workload with a dedicated machine and a tuned application justifies taking the net away.
Storage latency will keep falling as media improves, which makes the software path a larger fraction of every operation. The two designs are really answers to the same question: how much control are you willing to trade for speed?
The two approaches also disagree about who owns the CPU. A polling design burns a core continuously even when no work arrives, which is fine on a dedicated storage server and wasteful on a laptop trying to save battery. A ring-based design lets the kernel sleep the thread until completions appear, so idle cost is close to zero. That difference alone decides many deployments before the latency benchmark is ever run.
There is a third path worth knowing: the kernel can be told to busy-poll for a short window before sleeping, giving part of the SPDK benefit without dedicating a core forever. It is a useful reminder that these categories are endpoints on a spectrum, and most production systems sit somewhere between them, tuned to the shape of their traffic.
Interfaces matter too. SPDK asks the application to use its own asynchronous API, which means rewriting the storage layer and accepting that the usual file tools no longer see the device. io_uring keeps ordinary file descriptors, so existing code can be adapted gradually. Engineering teams should weigh that migration cost as heavily as the microsecond gain, because a rewrite carries risks a benchmark never shows.
SOL: HCqPmPJM3NVtS6YrmVaTZYnuP8XZ2PFgQZKT94VK1LkS
Creating this takes real effort — thank you for the support.