Themis: Scheduling-Aware Buffer Management for HBM-Based Hybrid Buffers
Zhiyu Zhang (Fudan University), Minkun Xue (Fudan University), Kan Yu (Fudan University), Ruyi Yao (Fudan University), Shili Chen (Fudan University), Hao Mei (Fudan University), Zixuan Chen (China Telecom), Weiyi Chen (Fudan University), Yibo Fan (Fudan University), Yang Xu (Fudan University)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 3 · Hardware, Mobility, and Systems
Overview
Modern high-speed routers operating at line rates of 400 Gbps and beyond face an escalating memory bottleneck. While SRAM offers ultra-low latency, its capacity is far too limited to absorb severe traffic congestion. To bridge this capacity gap, the networking industry has increasingly turned to High Bandwidth Memory (HBM)—a 3D-stacked DRAM architecture providing massive off-chip capacity alongside high aggregate bandwidth. However, HBM does not deliver its peak theoretical throughput automatically. Its performance is acutely sensitive to access patterns, suffering catastrophic bandwidth degradation when subjected to fragmented reads, writes, and uncoordinated direction switching.

Key moments
- 0:00 Introduction and background on HBM in modern routers
- 2:00 Rules for HBM bandwidth and limitations of current buffer management
- 6:00 Core idea: scheduling-aware buffer management using P4 ranks
- 7:40 Admission control mechanism and batch size buffer
- 9:30 New primitives: swap out and swap in operations
- 13:00 Hardware implementation and simulation evaluation results
- 15:00 Performance metrics, FCT comparison, and hardware cost
Themis: Scheduling-Aware Buffer Management for HBM-Based Hybrid Buffers
Speakers: Zhiyu Zhang (Fudan University); Minkun Xue (Fudan University); Kan Yu (Fudan University); Ruyi Yao (Fudan University); Shili Chen (Fudan University); Hao Mei (Fudan University); Zixuan Chen (China Telecom); Weiyi Chen (Fudan University); Yibo Fan (Fudan University); Yang Xu (Fudan University)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=AoDijyU_X90
Overview
Modern high-speed routers operating at line rates of 400 Gbps and beyond face an escalating memory bottleneck. While SRAM offers ultra-low latency, its capacity is far too limited to absorb severe traffic congestion. To bridge this capacity gap, the networking industry has increasingly turned to High Bandwidth Memory (HBM)—a 3D-stacked DRAM architecture providing massive off-chip capacity alongside high aggregate bandwidth. However, HBM does not deliver its peak theoretical throughput automatically. Its performance is acutely sensitive to access patterns, suffering catastrophic bandwidth degradation when subjected to fragmented reads, writes, and uncoordinated direction switching.
This talk introduces Themis (referred to in the transcript via phonetic spelling variants such as Damys and Stamis), a novel scheduling-aware buffer management framework designed specifically for HBM-based hybrid packet buffers. Developed by researchers from Fudan University and China Telecom, Themis addresses the fundamental mismatch between traditional packet buffer management and modern HBM access requirements. By tightly coupling packet admission, eviction, and retrieval decisions with the router's underlying scheduling priorities, Themis ensures that HBM is accessed through continuous, batched operations.
The significance of this work lies in its systems-level co-design, bridging packet scheduling policy engines with off-chip memory controllers. As data center networks and wide-area networks demand ever-higher throughput and lower tail latencies, traditional spillover-only hybrid buffers increasingly bottleneck router performance. Themis demonstrates that intelligent, rank-aware buffer management can unlock near-peak HBM bandwidth, dramatically reduce packet loss, and slash flow completion times (FCT) with negligible hardware overhead.
Background
▶ Watch: Introduction and background on HBM in modern routers (0:00)
In high-speed networking hardware, packet buffers are critical for absorbing bursts and preventing packet drops during congestion. Historically, on-chip SRAM served as the sole buffering medium. As line rates pushed past 400 Gbps, SRAM capacity scaling hit physical and economic limits, necessitating hybrid buffer architectures that pair SRAM with off-chip HBM (such as Samsung HBM2E).
Despite its architectural promise, HBM imposes severe hardware constraints. Empirical evaluations on commercial HBM2E components reveal that random read access patterns can cause read performance to vary by up to 583 times between best-case and worst-case scenarios. Under realistic router traffic mixes, naive access patterns capture only about one-ninth of HBM's peak bandwidth. To fully exploit HBM, memory controllers demand strict adherence to two operational rules:
- Spatial Continuity: Memory accesses must target continuous address ranges and be distributed evenly across physical channels and byte groups to optimize row activations and minimize precharge overhead.
- Temporal Continuity: Operations of the same type (reads or writes) must be performed continuously in large batches to minimize bus turnaround penalties when switching between read and write directions.
Commercial routers typically implement simple spillover-only hybrid buffer management schemes. These systems retain packets on-chip in SRAM whenever possible and spill overflow packets to HBM only when occupancy exceeds a static threshold. However, this decouples buffer management from packet scheduling.
When packets arrive, they are written to HBM in arrival order to preserve write continuity. But when the router's packet scheduler (such as a BBQ scheduler) selects packets for departure based on strict priority or weighted fair queueing, the departure order deviates entirely from the arrival order. Consequently, reads targeting HBM become highly scattered across non-contiguous addresses, breaking spatial continuity. Furthermore, because routers simultaneously receive and transmit packets, read and write requests interleave continuously on the HBM bus, incurring heavy bus turnaround penalties and leaving HBM operating far below its hardware specification.
Key Findings
▶ Watch: Core idea: scheduling-aware buffer management using P4 ranks (6:00)
The primary discovery presented in this work is that traditional decoupling between packet scheduling and buffer management is the root cause of HBM bandwidth starvation in high-speed routers. By recognizing that packet departure order is dictated by scheduling priorities, the authors established that buffer management must proactively batch packets according to these same priorities.
Key findings and benchmark results from the evaluation include:
- HBM Throughput: Themis achieves up to 790 Gbps of HBM throughput under high load, compared to approximately 650 Gbps for baseline hybrid buffer management schemes.
- Link Utilization: Link utilization with Themis remains near 100%, whereas baseline architectures drop to 50% to 70% under heavy traffic contention.
- Packet Loss Reduction: Themis reduces packet drop rates by 18% to 90% compared to the strongest baseline, with the performance gap widening significantly at high load.
- On-Chip Hit Rate: By utilizing rank-based admission and swapping, Themis achieves roughly 2× the on-chip dequeuing hit rate of baseline architectures.
- Flow Completion Times (FCT): Themis maintains flat tail latency profiles under heavy load, reducing 99th-percentile FCT for small flows by up to 2× compared to baseline designs prone to tail latency inflation.
- Hardware Footprint: Implemented in FPGA and ASIC prototypes, Themis incurs an extremely modest hardware cost of only 134 Look-Up Tables (LUTs) and 88 flip-flops on FPGA, and approximately 0.2 mm² of additional area on ASIC.
Technical Deep Dive
▶ Watch: Admission control mechanism and batch size buffer (7:40)
The technical core of Themis rests on bridging packet scheduling and memory management through a unified abstraction: P4-style packet ranks (adapted from SIGCOMM 2016 traffic management models). In this model, every incoming packet is assigned a numerical rank computed via a P4 program, where the rank deterministically captures the packet's relative departure urgency. Packets always depart in order of increasing rank. This scalar rank serves as the common language between the scheduler and the buffer manager.
Core Architecture and Primitives
Themis maintains a single global record: the smallest rank currently resident in the off-chip HBM (min_hbm_rank). Buffer management decisions rely on three fundamental primitives:
- Rank-Based Admission: When a packet arrives, its rank is compared against
min_hbm_rank. Packets with smaller ranks (higher priority/more urgent) are admitted directly to on-chip SRAM. Packets with larger ranks (lower priority) are designated for HBM. Instead of writing them immediately (which would fragment memory), low-priority packets are accumulated in a small batch size buffer acting as a local cache. For Samsung HBM2E, the required batch size to saturate memory bandwidth is approximately 16 KB. Once the batch buffer fills, data is flushed to HBM in a single continuous write.
- Swap-Out Primitive: As SRAM occupancy grows due to incoming high-priority traffic, it crosses a predefined swap-out watermark. Themis then identifies a batch-size number of packets currently residing in SRAM with the largest ranks (the least urgent) and writes them out to HBM in a single continuous batch, freeing on-chip space for incoming high-priority traffic.
- Swap-In Primitive: During congestion dry-downs, SRAM occupancy falls. To prevent the packet scheduler from stalling on slower off-chip HBM fetches, Themis defines a swap-in watermark. When SRAM occupancy falls below this threshold, Themis proactively reads back the HBM batch with the smallest representative rank (the most urgent batch) into SRAM as a single continuous batch read.
Through this continuous cycle of admission, swap-out, and swap-in, Themis dynamically reshapes the memory layout. Urgent packets remain resident on-chip for low-latency dequeuing, while off-chip HBM receives exclusively clean, continuous, batched accesses.
Experimental Setup & Results
▶ Watch: Hardware implementation and simulation evaluation results (13:00)
The evaluation of Themis combined large-scale network simulations using NS-3 with hardware prototype validation on FPGA and ASIC synthesis flows.
Simulation Environment
- Traffic Patterns: Evaluated across micro-benchmarks measuring single-port metrics and macro-benchmarks examining multi-flow competition and large-scale flow completion times (FCT).
- Baselines: Compared against standard hybrid buffer architectures paired with a BBQ (Bounded Burst Queue) scheduler and greedy spillover buffer management.
- Metrics: Evaluated on HBM throughput (Gbps), link utilization percentage, packet loss rate, on-chip dequeuing hit rate, average FCT, and 99th-percentile tail FCT.
Headline Results
The experimental results validate that aligning memory access patterns with packet scheduling yields massive systems-level gains:
- Throughput & Utilization: Themis successfully extracted up to 790 Gbps from the HBM subsystem, maintaining near-unity link utilization where baseline schedulers suffered bandwidth starvation (dropping to 50–70%).
- Loss and Hit Rates: Packet drop rates were slashed by up to 90% under peak congestion. The on-chip dequeuing hit rate doubled, proving that rank-based swapping successfully keeps urgent traffic on-chip.
- Latency Profiles: While baseline schedulers experienced severe tail latency inflation under heavy load due to memory stalls, Themis maintained stable, flat FCT distributions across the entire load spectrum.
Practical Implications
▶ Watch: Performance metrics, FCT comparison, and hardware cost (15:00)
For networking infrastructure teams, model deployers, and systems architects, Themis demonstrates that high-capacity off-chip memory cannot be treated as a transparent, drop-in replacement for on-chip SRAM. Without scheduling-aware memory controllers, raw HBM bandwidth remains largely inaccessible due to spatial and temporal fragmentation.
Tradeoffs and Limitations:
- Hardware Complexity: While Themis requires minimal logic cells (134 LUTs, 88 flip-flops, 0.2 mm² ASIC area), integrating it into existing commercial router ASICs requires modifying packet buffer controllers and integrating P4 rank computation logic into the ingress pipeline.
- Batching Latency: Accumulating packets in the batch size buffer introduces a minor buffering delay for off-chip writes, though this is heavily outweighed by the elimination of memory stall penalties during high-priority departures.
- Rank Function Dependency: The effectiveness of Themis relies on the accuracy of the P4 rank computation function in reflecting true departure urgency. Misconfigured scheduling policies could degrade buffer sorting efficiency.
Key Takeaways
- Bandwidth Discrepancy: HBM peak bandwidth is highly sensitive to access patterns; naive spillover buffers achieve only a fraction of hardware specs due to broken spatial and temporal continuity.
- Unified Abstraction: P4-computed packet ranks serve as a powerful bridge connecting packet schedulers and buffer managers, expressing departure urgency in a single scalar value.
- Core Primitives: Rank-based admission, dynamic swap-out, and swap-in primitives continuously reshape memory layouts to keep urgent packets on-chip and off-chip traffic fully batched.
- Performance Gains: Themis achieves up to 790 Gbps HBM throughput, maintains near 100% link utilization, cuts packet loss by up to 90%, and halves 99th-percentile flow completion times.
- Minimal Overhead: The complete hardware implementation requires negligible silicon footprint, consuming only 134 LUTs/88 flip-flops on FPGA and 0.2 mm² on ASIC.
About the Speaker(s)
The talk was presented by Haipeng from Fudan University and ByteDance, delivering the work on behalf of the primary authors (Zhiyu Zhang, Minkun Xue, Kan Yu, Ruyi Yao, Shili Chen, Hao Mei, Zixuan Chen, Weiyi Chen, Yibo Fan, and Yang Xu) from Fudan University and China Telecom who were unable to attend in person due to visa and illness constraints. The research team spans prominent academic and telecommunications institutions specializing in high-speed networking systems, hardware architectures, and programmable data planes.
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)