Come Hell or Still Water: Alleviating Tail Latency in Cloud Block Store
Chaolei Hu (Tsinghua University and Alibaba Cloud), Kun Qian (Alibaba Cloud), Erci Xu (Alibaba Cloud), Yifan Shen (Alibaba Cloud), Haoran Zhang (Alibaba Cloud), Xue Li (Alibaba Cloud), Yuesheng Gu (Alibaba Cloud), Lingjun Zhu (Alibaba Cloud), Fengyuan Ren (Tsinghua University), Ennan Zhai (Alibaba Cloud)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 2 · Scalable Storage Systems
Overview
Cloud block storage forms the foundational infrastructure underpinning modern cloud architectures, supporting virtual machines, relational databases, online transaction processing services, and large-scale distributed analytics engines. When cloud block storage experiences severe tail latency spikes—ranging from 10 to 100 milliseconds—the disruptions cascade upward, leading to broken database transactions, timed-out HTTP checkout flows, and stalled live-streaming buffers during high-concurrency shopping events. At hyperscale operators like Alibaba Cloud, maintaining tight tail latency SLOs is a core requirement rather than an optimization.

Key moments
- 0:00 Introduction and the importance of tail latency
- 2:04 Production data showing severe latency spikes
- 4:00 Analyzing layers and why load balancing amplifies bursts
- 7:35 Examining underloaded cases and the event loop thread model
- 10:04 Dual token bucket mechanism for burst mitigation
- 12:15 Priority-based scheduler design for underloaded regime
- 14:02 Testbed evaluation and real production trace replay
- 16:01 Production deployment results and AB testing outcomes
Come Hell or Still Water: Alleviating Tail Latency in Cloud Block Store
Speakers: Chaolei Hu (Tsinghua University and Alibaba Cloud); Kun Qian (Alibaba Cloud); Erci Xu (Alibaba Cloud); Yifan Shen (Alibaba Cloud); Haoran Zhang (Alibaba Cloud); Xue Li (Alibaba Cloud); Yuesheng Gu (Alibaba Cloud); Lingjun Zhu (Alibaba Cloud); Fengyuan Ren (Tsinghua University); Ennan Zhai (Alibaba Cloud)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=KANcrZNduZ4
Overview
Cloud block storage forms the foundational infrastructure underpinning modern cloud architectures, supporting virtual machines, relational databases, online transaction processing services, and large-scale distributed analytics engines. When cloud block storage experiences severe tail latency spikes—ranging from 10 to 100 milliseconds—the disruptions cascade upward, leading to broken database transactions, timed-out HTTP checkout flows, and stalled live-streaming buffers during high-concurrency shopping events. At hyperscale operators like Alibaba Cloud, maintaining tight tail latency SLOs is a core requirement rather than an optimization.
This presentation details a joint research effort from Tsinghua University and Alibaba Cloud addressing systemic tail latency anomalies in production disaggregated cloud block stores (EBS). The authors identify two primary culprits: correlated request bursts originating from major enterprise clients whose virtual disk segments are distributed across the cluster, and internal event loop thread contention caused by mixing critical I/O operations with background administrative routines. To resolve these issues without resorting to costly hardware upgrades or major architectural rewrites, the researchers introduce dual-bucket token throttling and priority-based event loop scheduling. Evaluated across both controlled testbeds and large-scale production deployments spanning dozens of clusters and hundreds of trillions of I/O requests, these mechanisms achieve up to a 59.7% reduction in tail latency during severe bursts and a 22% latency improvement under steady-state conditions.
Background
▶ Watch: Introduction and the importance of tail latency (0:00)
Modern cloud block storage architectures—including Alibaba Cloud EBS, Amazon EBS, Azure Disk Storage, and Google Persistent Disks—rely on a disaggregated, three-tier design. Compute hosts run customer virtual machines (VMs) and virtual disks (VDs). A middle proxy layer handles I/O processing, garbage collection, indexing, and data scrubbing. The underlying storage layer consists of a distributed file system comparable to HDFS. Compute and storage machines reside on separate physical nodes connected via high-speed data center networks.
In theory, the proxy layer acts as a lightweight conduit. In production, however, tail latency spikes regularly breach 100 milliseconds at the 99.999th percentile (59s). Conventional systems engineering assumes that load imbalances drive such latency degradation. Cloud block stores typically employ sophisticated static placement strategies (spreading a client's VDs across clusters and proxy nodes) and reactive migration schemes (relocating hot segments or shifting workloads across clusters under pressure). While these mechanisms successfully maintain a low coefficient of variation (CV) in request arrivals across proxy nodes (ranging from 0.08 to 0.18), tail latency spikes persist.
The root cause lies in the customer mix: a small number of major enterprise clients (representing e-commerce, live gaming, and live streaming) own over 51% of virtual disks and generate roughly 63% of total traffic. Because standard load balancing distributes these clients' VDs widely across the cluster, a flash sale or live-streaming event does not impact a single isolated server; instead, it generates synchronized load spikes across nearly every proxy node simultaneously, amplifying the blast radius and penalizing well-behaved, innocent tenants. Furthermore, even under low-load conditions, single-threaded event loop designs in proxies interleave high-priority I/O tasks with CPU-intensive background operations like garbage collection and snapshot compaction, creating internal head-of-the-line blocking.
Key Findings
▶ Watch: Analyzing layers and why load balancing amplifies bursts (4:00)
The investigation into Alibaba Cloud's production EBS clusters yielded several counterintuitive discoveries regarding where and why tail latency originates:
- Proxy Layer Dominance: During cluster-wide burst events, the proxy layer accounts for roughly 74% of end-to-end write latency, establishing it as the primary bottleneck.
- Load Balancing Amplification: Spreading a major client's virtual disk segments across a cluster prevents localized server saturation but inadvertently synchronizes resource contention across all proxy nodes during client traffic surges.
- Innocent Tenant Collateral Damage: Because major clients share proxy nodes with smaller, well-behaved customers, burst events degrade performance globally rather than being isolated to the traffic source.
- Underloaded Contention: Even during periods of low cluster utilization, the single-threaded event loop model causes background management tasks to account for nearly 50% of observed latency.
- Thread Splitting Limitations: Relocating non-I/O tasks to background threads fails for operations with strict data dependencies on row states (such as snapshot creation and index compaction), yielding only a marginal 10% latency improvement.
Technical Deep Dive
▶ Watch: Dual token bucket mechanism for burst mitigation (10:04)
To resolve these challenges without hardware upgrades or architectural overhauls, the authors designed two targeted mechanisms: dual-bucket token throttling for burst mitigation and priority-based event loop scheduling for underloaded regimes.
Dual-Bucket Token Throttling
Traditional rate-limiting approaches—such as hard rate caps, whole-VD throttling, or reactive cluster migration—either waste significant capacity, degrade customer SLAs, or operate too slowly to catch sub-second bursts. The authors reframe the problem by shifting granularity from clients and entire VDs down to individual virtual disk segments, protecting steady-state workloads through resource isolation.
Each proxy server maintains two token buckets refilled at fixed intervals (every 10 milliseconds):
- Main Bucket: A shared token pool consumed by all virtual disk segments on that proxy to issue I/O requests.
- Check Bucket: A secondary shared token pool restricted exclusively to segments classified as static or well-behaved.
When a hot segment experiences a traffic surge, it rapidly drains the main bucket. Once exhausted, the hot segment cannot access the check bucket, forcing it to back off naturally. Meanwhile, steady-state segments continue issuing I/O by drawing supplemental tokens from the check bucket.
The sizing of the check bucket is determined via an M/M/1 queuing model. Equation 1 calculates expected I/O latency at the target tail latency threshold, while Equation 2 derives residual available bandwidth. Subtracting a small operational headroom of approximately 300 megabytes per second yields the exact check bucket capacity.
Priority-Based Event Loop Scheduling
To address latency degradation under normal or low load, the single-task queue model of the proxy event loop is replaced with a two-tier scheduling policy adhering to two principles: prioritize I/O above all else, and prevent starvation of low-priority administrative tasks.
The system replaces the single queue with a high-priority I/O queue and a low-priority background queue (handling tasks like garbage collection, monitoring, and statistics dumps). Each event loop iteration follows strict execution rules:
- Rule 1 (Strict IO Priority): The loop checks the receive buffer and completely drains the high-priority I/O queue before inspecting background work.
- Rule 2 (Bounded Low-Priority Window): Low-priority tasks execute for a bounded time window denoted as $LT$.
- Rule 3 (Anti-Starvation Scaling): $LT$ is dynamically adjusted based on recent I/O workload intensity, defined as $LT = 1.2 \times T_{io}$ with a strict floor of 10 microseconds. This ensures background tasks consistently receive approximately 20% of I/O CPU time, preventing deadlocks or unbounded task starvation.
Experimental Setup & Results
▶ Watch: Priority-based scheduler design for underloaded regime (12:15)
The mechanisms were validated through a combination of controlled testbed replay experiments and large-scale, long-term production deployments.
Testbed Replay Evaluation
The controlled testbed consisted of 8 compute nodes and 16 storage nodes. The researchers replayed actual production burst traces exhibiting severe spike characteristics.
- Burst Mitigation: Without dual-bucket throttling, the 5-9s latency (59s) for innocent I/O traffic surged to 80 milliseconds during bursts. Enabling dual-bucket throttling reduced the 5-9s latency to approximately 10 milliseconds—a 71% latency reduction.
- Underloaded Regime: Replaying typical production traces (at 200 Mbps and 300 Mbps average throughput) with priority-based scheduling enabled reduced write 5-9s latency by 13% and 14%, respectively.
Production Deployment Results
The solutions were deployed across dozens of production EBS clusters, spanning multiple availability zones and hundreds of proxy servers handling hundreds of trillions of I/O requests over a six-month period.
- Long-Term Burst Performance: Representative burst events monitored across consecutive weeks demonstrated that dual-bucket throttling cuts 5-9s tail latency on steady segments by 59.7% in real-world messy environments.
- A/B Testing on Steady Load: A week-long A/B test on a single cluster comparing proxy nodes with and without priority-based scheduling revealed an immediate 22% drop in 5-9s latency upon enabling the scheduler, outperforming the trace replay numbers because real-world workloads contain higher background task interference.
Practical Implications
▶ Watch: Production deployment results and AB testing outcomes (16:01)
For infrastructure teams, model builders, and cloud platform architects, this work demonstrates that software-only scheduling and traffic-shaping primitives can resolve deep-seated systems bottlenecks without necessitating expensive hardware upgrades (such as accelerated NICs or next-generation NVMe drives) or risky architectural rewrites.
Tradeoffs and Limitations:
- Parameter Tuning: Sizing the check bucket requires careful mathematical modeling (via the M/M/1 queue equations) to balance steady-state overdraw allowances against proxy safety limits.
- Granularity Costs: Classifying segments as static versus hot requires continuous state tracking within the proxy, introducing marginal metadata management overhead.
- Scope: While highly effective for disaggregated cloud block stores, these scheduling policies assume a proxy-mediated routing layer and may require adaptation for direct-to-device storage fabrics.
Key Takeaways
- Load Balancing Paradox: Distributing a major tenant's virtual disks across a cluster prevents localized server overload but synchronizes contention across all proxies during traffic bursts.
- Segment-Level Throttling: Throttling hot virtual disk segments rather than entire clients or virtual disks isolates blast radiuses while preserving steady-state customer SLAs.
- Dual-Bucket Isolation: Utilizing a main token bucket alongside a protected check bucket allows steady-state workloads to maintain high performance during enterprise flash crowds.
- Event Loop Decoupling: Mixing administrative tasks with I/O on a single event loop thread creates severe tail latency even under low load.
- Anti-Starvation Scheduling: Prioritizing I/O completely while guaranteeing a dynamic 20% CPU time floor for background tasks eliminates head-of-the-line blocking without task starvation.
- Production Proven: Both mechanisms are entirely software-based, require no hardware upgrades, and achieve up to a 59.7% tail latency reduction in large-scale production environments.
About the Speaker(s)
Chaolei Hu is a joint researcher affiliated with Tsinghua University and Alibaba Cloud. The research team comprises systems and networking engineers and researchers from Tsinghua University's Department of Computer Science and Technology and Alibaba Cloud's infrastructure engineering division, specializing in cloud storage systems, tail latency mitigation, and large-scale data center infrastructure.
Reviews
→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)
All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)