NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Transactional Indexes on (RDMA or CXL-based) Disaggregated Memory with Repairable Transaction

Xingda Wei, Haotian Wang, Tianxia Wang, Rong Chen, Jinyu Gu, Pengfei Zuo, Haibo ChenarXiv 2023

Abstract

The failure atomic and isolated execution of clients operations is a default requirement for a system that serve multiple loosely coupled clients at a server. However, disaggregated memory breaks this requirement in remote indexes because a client operation is disaggregated to multiple remote reads/writes. Current indexes focus on performance improvements and largely ignore tolerating client failures. We argue that a practical DM index should be transactional: each index operation should be failure atomic and isolated in addition to being concurrency isolated. We present repairable transaction (rTX), a lightweight primitive to execute DM index operations. Each rTX can detect other failed rTXes on-the-fly with the help of concurrency control. Upon detection, it will repair their non-atomic updates online with the help of logging, thus hiding their failures from healthy clients. By further removing unnecessary logging and delegating concurrency control to existing carefully-tuned index algorithms, we show that transactional indexes can be built at a low performance overhead on disaggregated memory. We have refactored two state-of-the-art DM indexes, RaceHashing and Sherman (B+Tree), with rTX. Evaluations show that rTX is 1.2 to 2X faster than other alternatives, e.g., distributed transaction. Meanwhile, its overhead is up to 42% compared to non-fault-tolerant indexes.

The Challenge of Disaggregated Memory

In modern data centers, Disaggregated Memory (DM) architectures decouple compute resources from memory pools using high-speed interconnects like RDMA or CXL. While this provides significant elasticity, it introduces a critical consistency gap. In traditional client-server models, an RPC request is handled atomically by the server. In DM, however, the "server" is a passive memory pool. A single logical operation, such as a tree insertion, is decomposed into multiple network-based reads and writes executed by the client.

If a client crashes mid-operation, the index can be left in an inconsistent "zombie" state. For instance, a B+Tree might have a pointer updated but the target node not yet written, leading to data corruption for subsequent readers. Existing DM indexes often prioritize performance over fault tolerance, leaving them vulnerable to these client-side failures.

Figure 1: Overview of DM architecture and the atomicity problem in tree insertions compared to traditional KVS.

Repairable Transactions (rTX)

To address this, researchers have developed rTX (Repairable Transaction), a lightweight primitive implemented via the REPTX runtime. Unlike traditional distributed transactions that require heavy coordination, rTX focuses on on-the-fly detection and repair. Its design is centered around three core mechanisms:

  1. Logged Lease Lock (LLLock): Instead of standard locks, rTX uses lease-based locks that include the owner's ID and an expiration timestamp. If a healthy client encounters a lock held past its lease, it suspects a failure and initiates a repair process.
  2. Idempotent Commit Protocol: To handle race conditions where multiple clients might attempt to repair the same failed transaction, rTX utilizes atomic Compare-and-Swap (CAS) operations. This ensures that the final state remains consistent regardless of how many times a repair is executed.
  3. On-the-fly Repair: There is no background cleaner. Instead, failures are detected as a side effect of normal lock acquisition, minimizing the performance penalty during failure-free execution.
Figure 4: Pseudo-code for the lease lock and a diagram illustrating race condition handling during DS updates.

Performance and Key Insights

The system was evaluated using the YCSB (Yahoo! Cloud Serving Benchmark) on refactored versions of Sherman (B+Tree) and RaceHashing.

  • Throughput: rTX achieves 1.2–2× higher throughput than standard distributed transactions (DTX) by avoiding heavy coordination overhead.
  • Efficiency: In uniform workloads, the overhead compared to non-fault-tolerant indexes is a modest 8%–13%. In highly skewed Zipfian workloads, overhead can reach 42% due to increased NIC-level contention from CAS operations.
  • Resilience: Recovery is nearly instantaneous. When a client fails, the affected index nodes are repaired in microseconds by the next client to access them, preventing system-wide performance collapses.

Limitations and Future Work

While rTX significantly improves client-side resilience, it currently focuses on compute node failures. Failures of the Memory Nodes themselves would require integration with replication or persistent memory strategies. Additionally, the heavy reliance on CAS for atomicity can bottleneck the Network Interface Card (NIC) under extreme contention. Future work aims to optimize metadata layouts to reduce the "pointer chasing" latency inherent in remote memory access.

By making "dumb" remote memory smart enough to survive client crashes, rTX provides a practical path forward for building resilient, high-performance cloud-native databases.

Summary updated

BibTeX
@misc{wei2023transactional,
  author = {Xingda Wei and Haotian Wang and Tianxia Wang and Rong Chen and Jinyu Gu and Pengfei Zuo and Haibo Chen},
  title = {{Transactional Indexes on (RDMA or CXL-based) Disaggregated Memory with Repairable Transaction}},
  year = {2023},
  eprint = {2308.02501},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.02501},
}
Figure