tl;dr: EBS gets sub-millisecond latency from a network-attached disk by keeping the instance’s OS out of the I/O path, dropping TCP’s ordering guarantees, and never letting one storage node decide a volume’s performance. The Q&A made a different point: most of the latency problems people brought up were limits they had provisioned themselves.
STG327 was a chalk talk by Swapnil Dinkar, a senior engineer who has worked on EBS for about 12 years, and Matt Herson, a senior manager of solutions architects. The slides covered the architecture, and a whiteboard covered how placement and provisioning play out on a real host. A long Q&A filled the rest.
In 2017 I wrote that storage was the last part of virtualization to move into hardware, after AWS introduced C5 and the first Nitro instances. This session was a look at how far that has gone since.
Skip to the practical advice if that’s what you came for.
313 trillion I/Os a day, and they’ve gotten bigger
EBS does about 313 trillion I/O operations a day across all volumes, up from about 20 trillion in 2018, and moves about 52 EB a day, up from about 1.5 EB. The speakers’ comparisons: if every person on Earth spoke 8,000 to 10,000 words a day, that would come to under 100 trillion words, about a third of EBS’s daily I/O count. And 52 EB is roughly 9,000 Blu-ray discs for every re:Invent attendee1.

“It’s not enough to innovate; you have to operate.”
Some arithmetic of my own2. 313 trillion a day averages out to about 3.6 billion I/O operations per second, around 18 times the 200 million requests per second S3 averages. Dividing bytes by operations gives an average I/O of about 166 KB today, up from about 75 KB in 2018, if both years count the same things. Operations grew about 41% a year over those eight years, and bytes grew about 56% a year.
Single instances are pushing harder too. With this year’s multi-card feature on some instance types, one EC2 instance can do 1.44 million EBS IOPS, a 180x increase in the maximum. That implies the old ceiling was 8,000 IOPS, though the slide didn’t say when that was. Throughput is up about 300x, to roughly 300 Gbps per instance, but I couldn’t make out the unit and none of the slide photos show it.

1.44 million IOPS from one instance.
Latency is what the application sees
The speakers defined latency as end-to-end: the time from I/O submission to completion, as the application sees it. On submission, the I/O passes through the file system (XFS, ext4) to the NVMe driver, which puts a command in the submission queue and rings the doorbell. The Nitro card’s NVMe controller, which is what the instance sees as the EBS volume, encrypts the data and sends it over SRD to replicated storage nodes. On completion, the ack comes back, the controller posts an NVMe completion queue entry, an interrupt fires, and the application wakes up.

Bob’s app, and everything between it and the storage nodes.
You can measure the part from the application to the controller inside the OS. From the controller outward, you depend on what AWS exposes in CloudWatch. RDS, Aurora, and FSx use EBS underneath, so the same path applies to them. The storage is essentially never in the same rack as the instance, so the network path matters, and it matters more as applications get more sensitive to latency.
The speakers credited consistent latency to what they called “the magic trifecta” of hardware, software, and people. People means the EBS developers and hardware designers, and also customers, whose descriptions of their workloads, the features they need, and their pain points set the priorities.

Hardware, software, and people.
Nitro moved the I/O work off the host
C5, in 2017, was the first fully Nitro instance. Nitro moved the processing for EC2 networking, EBS, and other core functions off the host and onto PCIe cards. That leaves a thin Nitro hypervisor on the host, so nearly all of its CPU and memory go to customer instances. The cards handle security (a security chip and a TPM), storage (EBS volumes and instance store, both presented as NVMe), and networking (ENA).

Nitro cards underneath, a thin hypervisor, then the instance.

EBS volumes, instance storage, and ENA all hang off the PCIe bus.
Starting with r8gb instances, Nitro also removed one DRAM copy from the I/O path. On a write, the Nitro card encrypts the data and puts it on the wire straight from instance memory. On a read, it decrypts the data arriving from the NIC and writes it directly into the instance’s memory. Fewer memory touches mean less variation in latency.
The whiteboard: an instance gets a share of its host
Matt drew a host as one large array carved into instance sizes, from a 24xlarge down through 16xlarge, 12xlarge, 4xlarge, and 2xlarge. The Nitro card sits outside that, in the role of dom0, with separate paths for network and storage traffic so one can’t starve the other. It also holds the TPM and handles the KMS keys.

Chalk talks come with whiteboards. This one also has the gp3 sawtooth, top right.
The host’s EBS capacity is set by its largest instance size, and each smaller instance gets a share. His example was an R8-family host with 720,000 IOPS, where a 12xlarge gets 72,000. The first number matches AWS’s spec for the r8gb.24xlarge exactly. The second doesn’t: the same table gives the r8gb.12xlarge 360,000 IOPS, which is what a proportional share would be. Either I misheard the size or the number, or he was rounding for the whiteboard.
Placement used to depend on when a volume was created. About three years ago, before SRD, a boot volume created with the instance landed near it. Data volumes added later went wherever capacity was free, for example when a generic Terraform or CloudFormation template attached them afterward. So the volumes on one instance performed unevenly. Placement now puts each new volume as close as possible to the instance’s existing volumes. Asked whether this still affects RDS, Matt said the old behavior no longer applies.
For gp3 latency that rises and falls in a sawtooth under steady load, he pointed to burst. A dev test can run above the long-run rate, and then a workload that runs for weeks hits the ceiling. He described the burst as 30 minutes in any 24-hour period. That matches the documented EBS burst for smaller EC2 instance sizes, not gp3 volumes, which don’t use burst credits at all3. That fits his next warning better anyway:
Check that the instance’s EBS bandwidth matches the volume’s provisioned IOPS and throughput. T3 and T4g instances are the common trap: enough CPU and memory, not enough EBS bandwidth. Small 4K and 8K I/Os get merged into 128K writes, so chatty workloads show up in the metrics, and the file system should be formatted to match the application’s I/O pattern.
SRD: TCP’s guarantees were costs
EBS launched in 2008 using TCP between instances and storage nodes, and TCP caused three problems:
- It uses a single path. When a link or switch fails, it takes milliseconds to find another, and that shows up in tail latency.
- It requires strict packet ordering, which uses resources on both ends that could otherwise deliver I/O.
- It runs through kernel sockets, and their context switches make latency less predictable.

One path and strict ordering, versus many paths and no ordering.
AWS built SRD (Scalable Reliable Datagram) to replace it, and described it in IEEE Micro in 2020. SRD sends packets over multiple paths and retries within microseconds when a path has trouble. It doesn’t order packets, which suits block storage because NVMe makes no ordering guarantee for writes in flight: if W1 and W2 are both outstanding, either may complete first. And it runs on the Nitro card, in user space with hardware offload, so the kernel is out of the path.
That’s the part I like best. TCP’s ordering guarantee is something the NVMe layer above never promised, so EBS was paying for it and getting nothing.
The slide’s headline is 90% lower tail latency. Reading p99.999 write latency off the chart, I get roughly 31 ms on TCP and 5 ms on SRD, which is closer to 84%4. SRD is also the main reason EBS’s maximum throughput went up 4x.

Tail latency at p99.9 through p99.999, and maximum throughput.
In the Q&A, Matt added that SRD came with a change to the network itself. In place of top-of-rack handoffs and routing between zones, the network is one flat fabric with many interconnects, and SRD re-evaluates paths on a timescale of microseconds5. Rack deployment time dropped from three days to 12 hours, because the cabling is simpler. SRD for EBS needs a recent Nitro generation, which in practice covers instance types launched in roughly the last three years.
One attendee saw long-lived connections time out sooner after moving to a newer instance generation. The speakers didn’t know why and took it offline.
Sharding, replication, and log-structured writes
Putting a whole volume on one storage node is simple, but then the volume is only as good as that node. If the node fails, or its SSDs can’t deliver what the volume needs, the volume suffers. So EBS splits each volume’s address space into shards on different storage nodes, and several hardware and software stacks serve one volume in parallel.
That also makes repair smaller. When a node fails, only its shards need repair. A 16 TB volume split into two shards needs only half its data re-replicated, so repair finishes sooner and latency holds up while it runs.

No longer constrained by a single storage node.
There’s a trade-off the session didn’t get into. Spreading many shards across many nodes raises the chance that some volume loses data when several nodes fail together, as Martin Kleppmann pointed out years ago. The speakers did say the number and placement of replicas depend on the volume type and its durability target, which is presumably where that’s handled.
Each write goes to a primary storage node chosen by the address it targets, and the primary forwards it to one or more replicas. Each extra hop adds latency, so the storage nodes talk to each other over SRD too.

Instance to primary to replicas, all over SRD.
Random small writes are bad for SSDs. They trigger garbage collection that I/O can get stuck behind, and they cause extra program/erase cycles that shorten the drive’s life. So the storage node software (not the SSD firmware) writes in a log-structured way, and whatever the application does, the SSDs see sequential writes. That raises throughput and IOPS, keeps I/O out from behind garbage collection, and makes the SSDs last longer, which lowers the failure rate and the latency impact of failures.

Whatever the application does, the SSDs see sequential writes.
Hedged reads are “The Tail at Scale” in production
When a replica fails, the primary skips it and keeps serving reads and writes while EBS rebuilds that replica’s data in parallel.

Unhealthy replicas get skipped, not waited on.
When a read is slow, for instance because one SSD cell is misbehaving, the storage node sends a second request over SRD to a replica that has the same data and uses whichever answer comes back first. That’s the hedged request from Dean and Barroso’s “The Tail at Scale”, which I collected along with other sharding notes in 2018. It’s good to see it at this scale.
When the primary itself fails, software on the instance side routes I/O to another replica, and EBS takes the old primary out for repair. None of this needs any action from the customer, unlike EC2 scheduled events, which ask you to stop and start an instance.
It doesn’t always work out that cleanly. An attendee reported I/O stalls of tens of seconds during failures. Swapnil said some failure modes remain, such as several storage nodes failing at once or a top-of-rack switch problem on the instance’s side, and asked to follow up offline. Matt added that one logical volume may be written to 16 to 24 locations on the back end, and rebalancing after a path fails is what takes those seconds.
Distance is latency
Light travels about a foot per nanosecond, so hundreds of miles between an instance and its storage, as in different data centers, costs hundreds of microseconds up to a millisecond6. EBS placement is a service that keeps track of where an instance and its volume’s storage nodes are and works to minimize the physical distance between them. It also runs when volumes are modified and when clones are created. Placement never stops rebalancing, because data keeps being written and volumes grow.

Latency grows linearly with distance.
For scale: ThousandEyes measured AWS inter-AZ latency at 0.82 ms on average in 2019. That’s the whole sub-millisecond budget, spent before a storage node does anything. It’s a good reminder of why a volume lives in one AZ.
What to do about it
Most of the Q&A was practical, and most of it came back to provisioning:
- Throttling is backpressure, not loss. Matt called it suppression. It means the volume or instance is getting more I/O than it’s provisioned for. Nitro pushes back through the NVMe interface, and the OS holds I/O in its queue until it clears, like TCP congestion backoff. The symptoms are a growing queue and users saying the application is slow. CloudWatch shows how much I/O is being throttled, and the NVMe
io_timeoutparameter sets how long I/O can wait in the queue. - Adding volumes doesn’t add instance bandwidth. An instance’s EBS IOPS and throughput limit is shared by all its attached volumes. The constraints are the instance size and each volume’s provisioning, and you can change both: move to a larger instance, split the application across instances or containers, or use a shared service like FSx.
- Use io2 Block Express for flat latency under load. It gives sub-millisecond latency that stays much flatter as load rises. The instance has to support it, and ENA or EFA bandwidth matters if the data also crosses the network.
- Go wide for many small parallel I/Os. For something like a game studio’s render farm, many mid-size instances with well-provisioned gp3 volumes work better than either small or very large instances. Matt also mentioned a new gp3 option from the keynote that, as he described it, lets you reclaim space and specify exactly the IOPS and throughput you need.
- Aim for about 85% utilization. Watch provisioned IOPS, throughput, and throttling in CloudWatch, or export them to another tool. At a sustained 90%, you’re either getting full value for your spend or under-provisioned, and user-facing signals like support tickets tell you which.
- Keep NVMe and ENA drivers current, both for CVEs and for performance, especially for local instance-store NVMe.
- Encrypt volumes. Nitro gets the data key through KMS, caches it, and encrypts and decrypts every I/O in hardware, so encryption costs nothing in performance.
- Try a new instance as a last resort. If tail latency on a long-lived instance creeps up and doesn’t recover within 24 hours while throttling rises, moving the workload to a new instance can help. Matt said he has rarely seen it.
Two smaller notes. Matt suggested event-driven agents that watch EBS metrics and notify or remediate, with the caution that you pay for whatever the agent provisions. And from his own limited testing, Graviton, which has no SMT, is slightly slower than Intel for light I/O and about 30% faster for heavy I/O, with AMD in between as the cost-efficient choice. That’s one person’s testing, labeled as such.
Takeaways
The speakers’ closing slide had four:
- Demand for performance keeps growing.
- EBS uses the Nitro architecture to optimize network, encryption, and storage performance.
- EBS software uses sharding for scale, replication over SRD, and fast failure detection to keep latency down.
- The magic trifecta of hardware, software, and people makes EBS a vertically integrated, low-latency storage service.

“Vertically integrated” is doing a lot of work in number four.
Distilled:
- The big latency wins came from removing guarantees nobody needed, like TCP’s packet ordering, and work nobody needed, like a DRAM copy and kernel context switches.
- Every layer avoids waiting on one component. Shards, multiple network paths, skipped replicas, and hedged reads all serve that goal.
- On the customer side, latency is mostly a provisioning problem. Match the instance’s EBS bandwidth to the volumes, watch throttling, and don’t trust a dev test’s burst.
-
I checked: it works if you assume 100 GB discs and about 58,000 attendees. With 50 GB discs, it takes twice as many attendees. ↩︎
-
313 × 1012 ÷ 86,400 seconds ≈ 3.6 × 109 operations per second. 52 EB ÷ 313 trillion ≈ 166 KB, and 1.5 EB ÷ 20 trillion = 75 KB. (313 ÷ 20)1/8 ≈ 1.41, and (52 ÷ 1.5)1/8 ≈ 1.56. The larger average I/O fits what Matt said about small I/Os being merged into 128 KB writes, but that’s my inference, not something the speakers claimed. ↩︎
-
For what it’s worth, the 30-minute figure also shows up in the gp2 docs, where a full credit balance sustains a 3,000 IOPS burst for at least 30 minutes. Either way, it isn’t a gp3 behavior. ↩︎
-
My photo of the chart is blurry, and the axis labels are hard to read. My notes from the talk had about 25 ms and 7 ms, which works out to 72%. Neither reading gets to 90%, so the headline number presumably comes from data that isn’t on that chart. ↩︎
-
The two transcripts of the session disagree on the exact figure: 500 microseconds in one and 5.5 in the other. ↩︎
-
That understates it, if anything. Light in fiber covers about two-thirds of a foot per nanosecond, or roughly 200 km per millisecond. So 300 km (about 190 miles) is around 1.5 ms each way. Even a few kilometers between buildings is tens of microseconds per round trip, which counts against a sub-millisecond budget. ↩︎