Introduction
In modern data centers, the ever-increasing size of datasets has pushed traditional single-server memory capacities to their limits. To manage this, developers have historically relied on distributed transaction systems that shard data across multiple nodes. However, these systems are often throttled by the "network stack tax"—the significant overhead associated with processing protocols and moving data between buffers using technologies like RDMA.
Researchers from Peking University, Alibaba Group, and Shanghai Jiao Tong University have recently proposed a solution leveraging the emerging Compute Express Link (CXL) 3.0 standard. While CXL's Global Fabric Attached Memory (G-FAM) allows multiple nodes to share memory with near-local latencies, its native cache coherence protocols are often too restrictive and slow for high-performance transactional workloads. This paper introduces CtXnL, a system designed to bypass these bottlenecks through a novel hybrid coherence primitive.
The CXL Coherence Bottleneck
CXL's standard coherence mechanism ensures that every node in a cluster sees the latest version of data instantly. While this "strict" coherence simplifies programming, it is computationally expensive. Maintaining this state requires remote cache signaling that can exceed 800ns and relies on centralized "Snoop Filters" that do not scale efficiently as more nodes are added to the fabric.
For transaction processing, this level of hardware-enforced consistency is often redundant. Transactional consistency models, such as Strict Serializability, already manage data versioning and isolation in software. Forcing the hardware to maintain MESI-style coherence for every record access creates unnecessary overhead and limits the overall throughput of the system.
CtXnL: A Hardware-Software Co-Design
To address these challenges, the authors developed CtXnL, which implements a hybrid coherence protocol. The system distinguishes between different data types: metadata (like locks and timestamps) continues to use CXL’s strict coherence to ensure system correctness, while actual record data uses a new, loosely coherent primitive.
The architecture consists of several key components:
- CtXnL Hardware Agent (CTHW): Residing on the G-FAM side, this agent manages memory views and coherence traffic.
- View Address Table (VAT): A hardware structure that uses cuckoo hashing to map private transaction "views" to physical memory locations.
- On-chip Filters (VF/VBF): Bloom-filter-style structures that allow the system to quickly check if data is cached or has an active private view without performing slow DRAM lookups.
- Software Library (CTLib): A user-level library that allows developers to specify which memory regions should use strict vs. loose coherence.
Hybrid Coherence via View Management
The core innovation of CtXnL is the "View Memory Shim." Instead of synchronizing every write across the entire fabric, CtXnL allows each node to maintain its own private "view" of a data record during the execution of a transaction.
As shown in the View Address Translation flow, multiple processes on a node can access a shared physical address (PA) that maps to a private View Memory Store (VMS). This allows a transaction to work on a local version of the data (e.g., X=1) while other nodes continue to see the original value in the Exposed Memory Store (EMS) (e.g., X=0). Global synchronization (GSync) is only triggered when a transaction successfully commits, moving the coherence maintenance out of the critical path of data access.
Performance Evaluation
The system was evaluated using the DBx1000 framework across standard industry benchmarks, including TPC-C and YCSB. The results demonstrate significant improvements over existing architectures:
- Throughput: CtXnL achieved up to 2.08x higher throughput than vanilla CXL architectures and 6.47x higher than traditional networking-based distributed systems.
- Efficiency: The system reduced cross-node coherence traffic by over 95%, effectively solving the scalability bottleneck inherent in centralized snoop filters.
- Latency: By avoiding back-invalidation conflicts, CtXnL maintained a 90th percentile latency of under 750ns, compared to the 1250ns+ p99 latency observed in standard CXL setups.
Conclusion
CtXnL demonstrates that hardware-level cache coherence is a choice rather than a requirement for high-performance distributed systems. By decoupling data access from coherence maintenance and utilizing a hybrid approach, CtXnL unlocks the full potential of CXL-based shared memory for transactional workloads. Future work will focus on scaling these mechanisms beyond the rack level and improving hardware-level fault tolerance.
Summary updated