arXiv:2609.02669cs.DBSep 2026

Manuscript Offprint

arXiv:2609.02669

Decoupling Disaggregated Memory Optimizations from Indexing: A Compiler-Runtime Approach

Xinpeng Zhao, Zeling Long, Chaichon Wongkham, Srijan Srivastava, Jiayi Liu, Baotong Lu, Tianzheng Wang, Eric Lo

ABSTRACT

Disaggregated memory (DM) decouples compute and memory into independently scalable pools, connected over a slower interconnect rather than a local bus. This decoupling is exactly what makes DM attractive—but it also means that every index must now reason explicitly about remote-memory access and its associated optimizations. State-of-the-art index designs respond to this by embedding remote-memory logic and optimizations directly into their core data structures and concurrency control mechanisms. Consequently, an optimization tuned for one index cannot be lifted and reused in another, and even the same index cannot be ported to a different DM architecture without a fresh round of redesign. This escalating, per-index, per-platform engineering burden is unsustainable as hardware and index requirements evolve.

In this paper, we present Nox, a compiler-runtime framework that breaks this coupling by taking an unmodified, concurrent index as input and automatically generating its disaggregated-memory counterpart, without touching the original index logic. A compiler layer rewrites the index's LLVM IR to expose allocation, address, and pointer-dependency information that a centralized runtime uses to drive caching and address translation. Empirically, Nox-generated B+-trees, hash tables, and skip lists scale robustly on real RDMA and CXL hardware across every workload tested. They can also outperform some specialized, hand-crafted indexes and match others, especially on workloads that are closer to real-world ones. These results show that today's fastest disaggregated-memory optimizations need not stay locked inside monolithic, hand-crafted code—a compiler-runtime stack can generalize them while preserving the scalability of proven index implementations, without sacrificing it for portability.

1 INTRODUCTION

Disaggregated memory (DM) is emerging as a promising architecture for datacenter systems to scale compute and memory independently for lower cost and higher resource utilization. Compute and memory pools communicate through protocols such as Remote Direct Memory Access (RDMA) and Compute Express Link (CXL) [19], forming a hierarchy of near (local DRAM on compute nodes) and far memory (DRAM on memory nodes, accessed via RDMA or CXL). Disaggregated memory can bring the aforementioned benefits to cloud database systems. In particular, memory-optimized indexes (e.g., B+-trees and hash tables) that back many database systems and key-value stores may be placed in disaggregated memory to allow faster access to large datasets that go beyond a compute node's local memory.

The high latency of accessing remote memory, however, makes it challenging to build high-performance indexes because they perform data-dependent, irregular, pointer-intensive memory accesses

which can hardly benefit from hardware prefetching techniques. A lookup in a B+-tree, for example, traverses a path whose nodes are determined by the query key and may be scattered across memory. Each remote access along this path adds latency, and the resulting performance can be substantially worse than that of an index executing entirely from local DRAM. Consequently, merely placing an existing monolithic in-memory index in disaggregated memory is not sufficient: the index must be optimized with the characteristics of the underlying memory system.

References (13)