OneSidedMW: Managing Disaggregated Memory Efficiently, Flexibly, and Securely with RNIC Offloading
Zixuan Wang (Shanghai Jiao Tong University), Jinyu Gu (Shanghai Jiao Tong University), Xingda Wei (Shanghai Jiao Tong University), Yubin Xia (Shanghai Jiao Tong University)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 3 · Sandboxes, Containers, and Beyond
Overview
Disaggregated memory (DM) architectures decouple compute and memory resources into independent hardware pools linked via a high-speed network, enabling independent scaling and cost optimization. However, managing memory allocation, deallocation, and tenant isolation across this split architecture introduces a fundamental tension: coarse-grained memory registration avoids placing heavy synchronization overhead on resource-constrained memory node CPUs, but it triggers severe internal fragmentation and wastes precious DRAM. Conversely, fine-grained allocation preserves memory utilization but overwhelms the memory node's weak CPU with remote procedure calls (RPCs) for every allocation and deallocation request.

Key moments
- 0:00 Introduction and disaggregated memory background
- 1:32 Analysis of existing approaches: Static MR, RPC, and ODP
- 4:15 Key insight and overview of OneSidedMW design
- 5:30 Workflow for serving remote memory allocation requests
- 7:25 Security vulnerabilities of type one memory windows
- 8:30 Type two memory windows and multi-QP challenges
- 10:10 Proposed techniques: QP grouping and management separation
- 12:05 Evaluation results with key-value stores and swap systems
OneSidedMW: Managing Disaggregated Memory Efficiently, Flexibly, and Securely with RNIC Offloading
Speakers: Zixuan Wang, Jinyu Gu, Xingda Wei, Yubin Xia (Shanghai Jiao Tong University)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=e_qtYaisI4s
Overview
Disaggregated memory (DM) architectures decouple compute and memory resources into independent hardware pools linked via a high-speed network, enabling independent scaling and cost optimization. However, managing memory allocation, deallocation, and tenant isolation across this split architecture introduces a fundamental tension: coarse-grained memory registration avoids placing heavy synchronization overhead on resource-constrained memory node CPUs, but it triggers severe internal fragmentation and wastes precious DRAM. Conversely, fine-grained allocation preserves memory utilization but overwhelms the memory node's weak CPU with remote procedure calls (RPCs) for every allocation and deallocation request.
This talk introduces OneSidedMW (One-Sided Memory Window), a novel disaggregated memory management primitive developed by researchers at Shanghai Jiao Tong University. OneSidedMW leverages RNIC offloading and type-two memory windows to achieve fine-grained, on-demand remote memory allocation with zero memory node CPU involvement. By executing complex work request chains directly on the RDMA Network Interface Card (RNIC), OneSidedMW successfully bridges the gap between high memory utilization, high allocation and access performance, arbitrary I/O granularities, and strict hardware-enforced isolation.
The system is evaluated across multiple real-world workloads and integrated into state-of-the-art disaggregated key-value stores and swap systems, demonstrating dramatic throughput improvements and memory savings compared to existing static and RPC-based baselines.
Background
▶ Watch: Introduction and disaggregated memory background (0:00)
In RDMA-based disaggregated memory architectures, compute nodes maintain powerful CPUs and limited local memory, whereas memory nodes house abundant DRAM paired with very weak CPUs (often restricted to a single CPU core or low-power embedded cores in research models to simulate real-world cost trade-offs). Compute nodes access remote memory via one-sided RDMA reads and writes, achieving microsecond-level latencies.
Managing this architecture requires memory nodes to handle dynamic allocation/deallocation requests while strictly enforcing memory isolation—ensuring compute nodes cannot access memory belonging to other tenants. Prior work has struggled to balance these demands through three primary paradigms:
- Static Memory Registration (Static MR): Systems like FastSwap pre-register memory regions in large, coarse granularities to avoid expensive, CPU-intensive RDMA registration operations. While this approach minimizes memory node CPU overhead and retains fast one-sided RDMA data paths, it causes heavy internal fragmentation and poor remote memory utilization.
- RPC Memory Window: Systems like Patronus utilize lightweight RDMA memory windows bound to small segments of pre-registered memory. Compute nodes issue RPC requests to the memory node, which binds memory windows on demand. While this supports fine-grained allocation and fast one-sided data access, every allocation/deallocation request incurs an RPC on the memory node's weak CPU, causing severe performance degradation under high load.
- On-Demand Paging (ODP): Kernel swap-based distributed memory systems like ODP offload swap and paging logic directly to the memory node's RNIC, breaking memory into fixed 4 KB pages. Although this eliminates memory node CPU involvement, every memory access must traverse address translation executed within an offloaded worker question, introducing latency penalties and restricting operations strictly to 4 KB boundaries.
None of these existing methodologies simultaneously achieve high memory utilization, zero memory node CPU involvement, high allocation/access performance, strong isolation, and support for arbitrary I/O sizes.
Key Findings
▶ Watch: Key insight and overview of OneSidedMW design (4:15)
The central discovery of this work is that RNIC offloading can be retrofitted to perform remote memory window binding and unbinding operations completely bypassing the host CPU. By weaponizing offloaded work request chains, OneSidedMW achieves fine-grained dynamic allocation with zero memory node CPU utilization.
Key findings and benchmark outcomes include:
- Throughput Scaling: When integrated with Risk Hashing (a disaggregated key-value store), OneSidedMW achieves up to 10.6× higher throughput than RPC memory window approaches under high concurrency (288 threads across six compute nodes).
- Memory Conservation: Using an 8 KB allocation granularity, OneSidedMW saves 43% of memory after randomly deleting 90% of inserted key-value pairs compared to coarse-grained Static MR, while incurring at most 19.8% performance overhead.
- Application Integration: When integrated with FastSwap running real-world cloud workloads (Memcached and graph processing algorithms), OneSidedMW achieves up to 2.4× higher memory utilization than Static MR, 19.7% higher performance than RPC memory windows, and 25.8% performance gains over ODP, while introducing at most 3.8% performance overhead.
Technical Deep Dive
▶ Watch: Security vulnerabilities of type one memory windows (7:25)
RNIC Offloading Foundations
RDMA communication relies on Queue Pairs (QPs), consisting of a send queue and a receive queue. OneSidedMW leverages a specialized worker class called Wait, which suspends the NIC's execution on the send queue until an incoming RDMA send request arrives. This triggers a pre-programmed worker question to execute entirely on the NIC without CPU intervention. These worker programs compose basic RDMA primitives (read, write, atomic fetch-and-add, atomic compare-and-swap) and are Turing-complete.
Workflow of OneSidedMW
The memory node organizes its memory into fixed-size chunks of configurable granularity. For each chunk, it pre-allocates an initially unbound memory window and maintains a memory node table storing base addresses and R_Keys (Remote Keys). A free memory window queue, implemented as a ring buffer with head and tail pointers, tracks available chunks using a memory window table record.
When a compute node requires remote memory:
- It sends an atomic send operation with arguments to the memory node's RNIC.
- The incoming send triggers the pre-offloaded work request chain on the RNIC.
- The chain dequeues a free memory window table entry using an RDMA atomic fetch-and-add operation on the queue head pointer.
- The RNIC binds the memory window to its corresponding memory chunk using local metadata.
- The RNIC writes the chunk's base address and R_Key back to the compute node via an RDMA write.
- The compute node directly accesses the allocated remote memory chunk using native one-sided RDMA with the returned R_Key.
Security: Type-One vs. Type-Two Memory Windows
While type-one memory windows permit any QP to access a memory area given a correct R_Key upon binding, they present a critical security vulnerability: when a type-one window is rebound and reallocated, only the lower 8 bits of the R_Key change while the upper 24 bits remain identical (as the RNIC uses bits to index on-chip metadata). A malicious compute node can enumerate all 256 possible R_Key variations to hijack memory reallocated to other nodes.
To enforce strong hardware isolation, OneSidedMW mandates type-two memory windows, which provide exclusive assignment. Once bound, a type-two memory window is exclusively bound to the specific QP that performed the binding operation. Any access attempt from unauthorized QPs is rejected at the hardware level by the RNIC.
Overcoming Type-Two Performance Bottlenecks
Exclusive assignment introduces two major performance hurdles:
- Intra-QP Interference: Because a type-two window is locked to a single QP, latency-sensitive operations (e.g., swapping) can be blocked by latency-insensitive requests (e.g., prefetching) targeting the same chunk through that single QP.
- Offloading Overhead: Scaling out the number of QPs with independent offloading logic creates hardware pressure. Testing with NVIDIA engineers revealed that maintaining 96 QPs with offloaded logic causes up to a 12.6% higher RDMA read latency due to internal RNIC resource contention.
To resolve these challenges, OneSidedMW introduces two architectural innovations:
- QP and Memory Window Grouping: Rather than binding a single memory window per chunk, the system pre-allocates a group of memory windows for each chunk, aligned with compute-side QP groups. Each memory window in the group binds to the same memory chunk but associates with a distinct QP, supplying multiple independent access paths to eliminate interference.
- Management Access QP Separation: Because memory allocation control-path operations occur far less frequently than data-path accesses, OneSidedMW avoids burdening every QP with offloading logic. Instead, it designates a small, dedicated set of alloc QPs and free QPs containing the offloaded worker questions. By inspecting the RDMA driver, the authors utilize the
QP infield of the RDMA bind memory window work request, enabling alloc QPs to perform bindings while directly assigning resulting windows to target access QPs.
Experimental Setup & Results
▶ Watch: Type two memory windows and multi-QP challenges (8:30)
- Hardware Testbed: A cluster consisting of six compute nodes and one memory node interconnected via 100 Gbps Mellanox ConnectX-5 RNICs. The memory node's CPU capacity was deliberately constrained to a single CPU core to simulate extreme weak processing power.
- Baselines: Static MR, RPC memory window (Patronus-style), and Open Delta Tree (ODP).
- Workloads: Risk Hashing disaggregated key-value store (insert-only workload with 1 KB key-value pairs followed by 90% random deletions) and FastSwap disaggregated memory system (running Memcached and two graph processing algorithms).
- Headline Metrics: Throughput (ops/sec), P99 tail latency, peak memory node CPU utilization, and overall memory utilization ratios.
- Ablations: The evaluation highlights that fine-grained allocations with 8 KB chunk sizes achieve up to 10.6× throughput gains over RPC-based alternatives while saving 43% of DRAM post-deletion, confirming that the overhead of OneSidedMW's offloaded control path remains bounded below 19.8% in worst-case sparse regimes.
Practical Implications
▶ Watch: Evaluation results with key-value stores and swap systems (12:05)
For infrastructure teams and model deployers operating distributed machine learning clusters or memory-intensive distributed databases, OneSidedMW demonstrates that host CPU bottlenecks in disaggregated memory can be successfully bypassed via RNIC-level programmability.
However, practitioners must account for several tradeoffs:
- RNIC Resource Limits: Offloading logic to an excessive number of QPs degrades baseline one-sided RDMA performance (e.g., up to 12.6% latency increases with 96 active offloaded QPs), necessitating the separation of management and access QPs.
- Hardware Dependency: The architecture relies on advanced RNIC programmability features (Wait worker classes and atomic offload capabilities) currently prominent in enterprise-grade hardware like Mellanox/NVIDIA ConnectX adapters.
- Configuration Complexity: Tuning memory chunk granularities requires balancing internal fragmentation against metadata management overhead, though OneSidedMW’s dynamic grouping mitigates much of this friction compared to rigid static allocations.
Key Takeaways
- Eliminates Host CPU Bottlenecks: By shifting allocation, deallocation, and binding logic entirely onto the RNIC using offloaded work request chains, OneSidedMW achieves fine-grained memory management with zero CPU involvement on memory nodes.
- Enforces Hardware-Level Isolation: Adopting type-two memory windows prevents security vulnerabilities inherent to type-one R_Key enumeration attacks via strict exclusive QP assignment.
- Mitigates Multi-QP Degradation: QP and memory window grouping alongside management-access QP separation successfully prevents internal access interference and avoids the RNIC performance penalties associated with broad multi-QP offloading.
- Superior Scaling: Achieves up to 10.6× higher throughput than RPC-based window allocation and up to 2.4× higher memory utilization than static registration approaches across demanding key-value and swap workloads.
About the Speaker(s)
Zixuan Wang is a researcher from Shanghai Jiao Tong University presenting this work on behalf of co-authors Jinyu Gu, Xingda Wei, and Yubin Xia. Their research group focuses on systems infrastructure, high-performance distributed memory architectures, and RDMA networking optimizations.
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)