Contents
Why Storage Eats Host CPU
The conventional storage path is expensive because it was designed for compatibility, not for speed. A VM's I/O goes through a paravirtualized SCSI device, is translated by the hypervisor, traverses a kernel I/O stack with locks and interrupts, hits a filesystem or volume manager, and finally a block driver. Each layer adds CPU, and high IOPS workloads multiply that cost per operation. The result is that a host doing heavy storage work spends a visible fraction of its cores just moving blocks — cores that are licensed and paid for, but not running tenants.
Two independent fixes exist, and they compose:
- A lighter transport. Replace the SCSI-over-network stack with NVMe, which has a much shorter command path and was designed for modern flash.
- A lighter software stack. Replace the kernel's interrupt-and-lock-based I/O path with a userspace, polling, lockless stack (SPDK) that processes I/O with far fewer CPU instructions per operation.
Together they turn "storage costs CPU" into "storage costs a little CPU, and only where you choose to run it."
NVMe-oF: NVMe Over Fabrics
NVMe-oF takes the NVMe command set — the one flash drives natively speak — and runs it over a network fabric, so a remote NVMe namespace looks to the host like a local NVMe device.[1] The three transports matter for cost and deployment:
| Transport | Underlying fabric | When to use it |
|---|---|---|
| NVMe/TCP | Standard TCP/IP over Ethernet | The default for most new deployments: no RDMA NICs required, works on the fabric you already have, and modern NICs handle the offload well |
| NVMe/RDMA (RoCE) | RDMA over Converged Ethernet | Lowest latency and highest throughput, at the cost of RDMA-capable NICs and lossless-fabric tuning |
| FC-NVMe | Fibre Channel | Environments that already run FC and want to carry NVMe over the same SAN |
For an offload story, NVMe/TCP is the sweet spot: it removes the exotic-NIC requirement (an RDMA fabric is a whole project by itself) while still giving you the short NVMe command path and the ability to move either end of the connection onto a DPU. The two ends have names you will see throughout the tooling: the target is the machine serving the storage out, and the initiator is the machine consuming it — in a virtualization estate, the hypervisor host running the VMs.
SPDK: The Userspace Storage Stack
SPDK is an open-source (Linux Foundation) toolkit for building high-performance storage on commodity hardware.[2] Its headline technique is to bypass the kernel: instead of kernel drivers, interrupts, and the block layer, SPDK runs the storage stack entirely in userspace, polling hardware queues directly and moving data with as few copies as possible. The result is the same NVMe device driven at dramatically lower CPU per I/O — often an order of magnitude fewer instructions per operation than the kernel path.
The pieces you care about for this article:
- Userspace drivers. SPDK polls NVMe devices directly, avoiding kernel interrupt and lock overhead.
- The NVMe-oF target. SPDK can expose local NVMe devices (or memory-backed volumes) as NVMe-oF namespaces over TCP or RDMA.
- Runs anywhere. Because it is userspace, the SPDK target can run on a normal x86 host or on a DPU's Arm cores[4] — which is the offload path.
Version drift is real here. SPDK's rpc.py flags and the NVMe-oF target's exact configuration have changed across releases (subsystem options, transport buffer sizes, and the "allow any host" flag are the usual culprits). The commands below are the current shape of the workflow; if you are on a specific SPDK release, treat its rpc.py --help output and the release notes as authoritative over this article.
The Offloaded Path
The full offload architecture is the same split described in the DPU articles: the storage datapath moves off the host CPU onto a device with its own cores. Two common shapes:
- Initiator offload. The NVMe-oF initiator runs on the DPU, so the host's VMs see local NVMe devices but the network-side I/O processing happens on the DPU, not the host.
- Target offload. The NVMe-oF target runs on a DPU (or a dedicated storage node), so the storage server's CPU is freed the same way the host's is.
For most virtualized estates the first shape is the immediate win: it is the host CPU you want back, and the initiator is the half that runs on the host today.
A Worked Example: NVMe/TCP Target with SPDK
Here is a lab-grade end-to-end: build an SPDK NVMe-oF target that exports a volume over NVMe/TCP, connect a client, and confirm the block device appears. In production you would attach a real NVMe device (or a RAID) instead of the memory-backed volume used here for the lab.
- Build and start the SPDK target. SPDK ships a prebuilt NVMe-oF target binary:
# From the SPDK source tree, start the NVMe-oF target
./build/bin/nvmf_tgt
- Create the transport, a volume, and a subsystem, then export it. The RPC calls configure TCP, create a memory-backed block device, add it to a subsystem, and open a listener:
# In a second shell (or via the JSON-RPC socket), configure the target
rpc.py nvmf_create_transport -t TCP -u 16384 -m 8 -c 8192
rpc.py bdev_malloc_create -b Malloc0 512 4096
rpc.py nvmf_create_subsystem nqn.2026-08.io.spdk:cnode0 -a -s SPDK00000000000001 -d "Lab Vol 1"
rpc.py nvmf_subsystem_add_ns nqn.2026-08.io.spdk:cnode0 Malloc0
rpc.py nvmf_create_listener nqn.2026-08.io.spdk:cnode0 -t tcp -a 0.0.0.0 -s 4420
- Connect from the client. Load the NVMe/TCP driver[3] and connect to the target's subsystem:
# On the client (the ESXi host or a Linux box)
modprobe nvme_tcp
nvme connect -t tcp -n nqn.2026-08.io.spdk:cnode0 -a 10.0.0.10 -s 4420
nvme list # the exported namespace should now appear as a local /dev/nvmeXn1
- On the VMware side[5], add the NVMe-oF datastore to the host and place VMs on it — the same workflow as any shared storage, except the I/O now travels the NVMe/TCP path.
Measuring What You Got Back
The point of the exercise is the CPU delta, so measure it before and after on the same workload. The two numbers that matter:
- Host CPU per I/O. Capture the storage world's CPU in
esxtop(or the Linux host'stop/mpstat) before the change, then after. With the initiator offloaded or the datapath shortened, the storage CPU should drop while IOPS hold or improve. - Latency. NVMe-oF over TCP is lower-latency than SCSI-over-network, but it is still a network hop. Measure p99 latency with your load generator (
fiowith the SPDK plugin, orvdbench) and confirm it did not regress.
# On the client: run a quick fio profile against the exported device
fio --name=test --filename=/dev/nvme0n1 --rw=randread --bs=4k --iodepth=32 \
--numjobs=4 --runtime=60 --time_based --group_reporting
Rule of Thumb: The offload is worth it when storage is consuming a measurable share of host CPU on an I/O-heavy host — think several percent or more at peak, on hosts where that CPU is what limits VM density. If the host is memory- or network-bound instead, offloading storage buys little. Always measure the host-CPU delta and the latency delta together; a CPU win at the cost of a latency regression is not a win for the applications that live on that storage.
Benchmark the Whole Storage Path
A target-side IOPS number does not show what a virtualized application gains. Benchmark from the same guest or application layer that will consume the service, with the same block size, read/write mix, queue depth, and durability settings.
- Record application p95 latency, throughput, host CPU, interrupt rate, network utilization, and target CPU before and after offload.
- Test steady state after caches are warm and the working set exceeds cache. A short cached run measures memory.
- Repeat with link loss, target-process restart, and one path removed. Confirm multipath convergence and the application's timeout behavior.
- Run the expected backup, snapshot, or rebuild workload alongside foreground I/O. Storage paths often fail their service objective during maintenance rather than normal load.
Acceptance rule: credit offload only for an end-to-end improvement that survives the failure and maintenance cases. Moving CPU from the host to the target without improving the workload is a cost transfer.
When Not to Offload
Storage offload is not a universal improvement. It is the wrong move when:
- The workload is not I/O-intensive. If storage is already a small share of host CPU, there is nothing meaningful to reclaim.
- Latency is the binding constraint and the fabric is weak. NVMe/TCP is fast, but a congested or oversubscribed fabric will show up as latency, and the offload can make a bad fabric your bottleneck.
- The team does not want a second storage stack. SPDK on a DPU is another operational surface. If the team is already thin, the "simpler" kernel path may be the right trade despite the CPU cost.
- Compare against the current platform, not a vendor peak. If the array already delivers the IOPS and latency the workloads need, initiator offload may change host CPU consumption without changing application response time. In that case, the business case rests on whether the freed CPU changes density or licensing.
The pattern is the same one that runs through every offload decision: measure the cost you are trying to remove, prove the win on one host, and only then expand. NVMe-oF and SPDK are excellent tools — but they are tools for a measured, specific problem, not a default configuration.
References
- NVM Express — "NVMe over Fabrics" specification: NVMe/TCP, NVMe/RDMA, and FC-NVMe transports and the command path. NVM Express, Inc., current.
- SPDK — "Storage Performance Development Kit" documentation: the userspace storage stack, the NVMe-oF target, and the RPC configuration interface. Linux Foundation / SPDK Project, current.
- Linux — "nvme-cli" and the NVMe/TCP kernel driver documentation: client-side discovery and connect. Linux kernel documentation, current.
- NVIDIA — "NVIDIA BlueField DPU storage offload" (NVMe-oF and SPDK on the DPU). NVIDIA Technical Documentation, current.
- VMware/Broadcom — "NVMe over Fabrics with vSphere" documentation: NVMe-oF datastores and host configuration. Broadcom Technical Documentation, current.