Introduction
Memory disaggregation (DM) has emerged as a transformative architecture for modern data centers, decoupling compute resources (Compute Nodes, CNs) from memory resources (Memory Nodes, MNs). This separation allows for independent scaling and improved resource utilization. However, implementing high-performance Key-Value (KV) stores on DM remains challenging. Traditional designs often suffer from significant performance degradation due to network-level atomic operations and the complexities of maintaining cache coherence across distributed nodes.
The Challenges of Disaggregated Memory
Building an efficient KV store in a disaggregated environment faces two primary hurdles: the atomic bottleneck and the cache conundrum.
- The Atomic Bottleneck: Most state-of-the-art DM systems rely on "one-sided" RDMA operations, specifically Compare-and-Swap (CAS), to manage index updates. While one-sided operations bypass the remote CPU, they place a heavy burden on the Remote Network Interface Card (RNIC). When multiple clients concurrently attempt to update the index, the RNIC becomes a performance bottleneck, leading to increased latency and reduced throughput.
- The Cache Conundrum: To mitigate network latency, CNs often cache index entries or KV pairs locally. However, maintaining coherence among these caches requires sophisticated protocols. Traditional coherence mechanisms often involve additional network round-trips, which can negate the performance benefits of caching.
As shown in Figure 1, existing approaches either centralize index management (leading to a single-node bottleneck) or use static partitioning (leading to load imbalance). FlexKV addresses these issues by offloading index processing to compute nodes in a balanced and flexible manner.
FlexKV: Index Proxying and Adaptive Management
FlexKV introduces the concept of Index Proxying, where compute nodes act as proxies for specific portions of the global index. This design leverages the underutilized CPU power of CNs to replace slow network-level atomics with fast local CPU instructions.
The architecture, illustrated in Figure 6, incorporates several key innovations:
- Rank-Aware Hotness Detection: FlexKV dynamically monitors access patterns to identify "hot" index partitions. These partitions are grouped into ranks and distributed across CNs. This ensures that the workload is balanced and that no single CN becomes a bottleneck, even under skewed access patterns.
- Two-Level CN Memory Optimization:
- Slot-Resolved RPCs: To minimize the memory footprint on CN proxies, FlexKV employs a two-step lookup. A client first performs a "pre-lookup" on the MN to identify the specific index slot. It then sends only the slot ID to the CN proxy. This allows the proxy to manage the index without storing full key-to-address mappings.
- Adaptive Index-Cache Splitting: CNs have limited local memory. FlexKV uses a hill-climbing algorithm to dynamically adjust the allocation of local memory between the index proxy (storing index metadata) and the local cache (storing actual KV pairs). This optimization aims to maximize overall system throughput based on real-time workload characteristics.
- RPC-Aggregated Cache Management: To solve the cache coherence problem without extra overhead, FlexKV "piggybacks" coherence metadata onto standard index update RPCs. By merging management messages with data messages, the system achieves coherence with virtually zero additional network round-trips.
Evaluation and Results
The performance of FlexKV was evaluated using the Yahoo! Cloud Serving Benchmark (YCSB) and 54 real-world Twitter production traces. The system was compared against leading DM KV stores, including Clover, FUSEE, and Aceso.
Key findings include:
- Throughput: FlexKV achieved up to a 2.31× throughput improvement over the best-performing baseline on YCSB A (write-intensive) workloads. On specific Twitter traces, the improvement reached as high as 2.94×.
- Latency: The system significantly reduced tail latency, with P99 latency dropping by up to 85.2% compared to existing solutions.
- Scalability: FlexKV demonstrated near-linear performance scaling as the number of compute nodes increased, proving its effectiveness in large-scale disaggregated environments.
Conclusion
FlexKV demonstrates that offloading index logic to compute nodes is a highly effective strategy for overcoming the hardware limitations of RDMA-based disaggregated memory. By transforming network atomics into local CPU operations and integrating cache coherence into existing communication channels, FlexKV achieves superior performance and scalability. Future work will explore tuning the adaptive algorithms for strict latency Service Level Objectives (SLOs) and integrating with emerging technologies like CXL 3.0 to further reduce cross-node latencies.
Summary updated