TL;DR
This paper introduces FORD, a novel system for handling distributed transactions on disaggregated persistent memory (PM) using one-sided RDMA. FORD significantly boosts performance by reducing network round trips through techniques like "hitchhiked locking" and "coalescent commit," and improves resource utilization by allowing backup replicas to serve read requests.
What Problem Does This Paper Address?
The paper tackles the challenges of efficiently managing distributed transactions in a disaggregated persistent memory (DPM) architecture. Traditional monolithic servers, where compute and memory are tightly coupled, have well-established transaction processing methods. However, disaggregating PM into separate compute and memory pools, while offering benefits like improved resource utilization and scalability, introduces new hurdles. Existing transaction schemes, often designed for DRAM and monolithic systems, struggle with the unique characteristics of PM (lower write bandwidth, persistence properties) and the lack of CPUs in the PM pool for handling complex tasks. This leads to performance bottlenecks, increased latency, and potential data inconsistency issues. Specifically, the authors highlight:
- Long-latency processing: Traditional optimistic concurrency control (OCC) and primary-backup replication involve multiple round trips for locking, validation, and commit, which are amplified in a disaggregated setup.
- Limited PM bandwidth: Relying solely on the primary replica for all requests saturates its PM bandwidth, hindering throughput.
- Lack of remote persistency guarantee: Standard RDMA writes can be cached in the RNIC, and data might be lost if a crash occurs before actual persistence to PM.
Methods
FORD introduces several key innovations to address these challenges:
- Hitchhiked Locking and Coalescent Commit:
- Hitchhiked Locking: This technique combines read and lock operations into a single RDMA request. Instead of separate phases for reading, locking, and validating, FORD locks data as it's read for read-write sets, eliminating extra round trips. This is achieved by batching RDMA CAS (Compare-And-Swap) for locking with RDMA READ for data retrieval.
- Coalescent Commit: This protocol updates all remote replicas (primaries and backups) in a single round trip. It uses parallel undo logging to ensure rollback capability in case of failures and employs a "visibility control" mechanism to prevent partial reads of updated data during the commit phase. The visibility control uses an atomic update of a "VLock" to mark data as invisible during the commit and then releases it in the background.
- Backup-enabled Read: To alleviate the load on the primary PM and improve throughput, FORD allows backup replicas to serve read requests for read-only data. This is feasible due to the coalescent commit's in-place updates of backups.
- Selective Remote Flush: To guarantee remote persistency with minimal overhead, FORD uses a selective flush strategy. Instead of flushing every write to every replica, it issues a single RDMA FLUSH (or a READ-AFTER-WRITE equivalent) to the backups only after the final write. This ensures data is persisted in at least the backup replicas, which is sufficient for (f+1)-way replication.
- Interleaved Transaction Processing: To maximize CPU utilization in the compute pool, FORD employs coroutines to interleave the processing of multiple transactions. This hides network latency by allowing other transactions to proceed while one is waiting for RDMA operations to complete.
Datasets
Not discussed in the paper. The paper uses micro-benchmarks (Key-Value Store) and macro-benchmarks (TATP, SmallBank, TPCC) to evaluate its performance.
Key Insights and Ideas
- One-sided RDMA is key for disaggregated PM: The absence of CPUs in the PM pool necessitates bypassing them, making one-sided RDMA a fundamental enabler for efficient transaction processing.
- Reducing round trips is paramount: The paper strongly emphasizes that minimizing network round trips is the most critical factor for improving performance in disaggregated systems, more so than the number of RDMA operations.
- Leveraging backups for reads is a significant win: Allowing backups to serve read requests effectively balances the load and directly addresses the PM bandwidth bottleneck on the primary.
- Coalescent commit with undo logging is a practical trade-off: While redo logs are standard for recovery, undo logs are more suitable for the disaggregated PM model as they don't require remote CPU intervention for log application. The trade-off of potentially longer rollback times for faster commit times is deemed beneficial.
- Visibility control is crucial for consistency during commit: The mechanism to temporarily hide updates until the commit is fully processed is essential for maintaining data integrity when read-only operations might occur concurrently.
Key Results
FORD demonstrates significant performance improvements over state-of-the-art systems like FaRM and DrTMH:
- Throughput: Up to 2.3x improvement in TPCC benchmark.
- Latency: Up to 74.3% reduction in 50th percentile latency in TPCC.
- Backup-enabled Read: Improves throughput by up to 1.5x and reduces latency by up to 35.3% when enabling backups to serve reads.
- Selective Flush: Improves throughput by ~29% and reduces latency by ~12-23% compared to full flush.
- Local Cache: A small MB-scale cache is sufficient for buffering remote addresses, with miss rates manageable in practice.
- Coroutine Execution: Improves throughput by 2.2x-3.4x across benchmarks without significantly increasing latency.
Limitations and Future Work
- Byzantine Failures: The system, like many prior works, does not consider Byzantine failures, which are more complex to handle.
- RDMA FLUSH Availability: The paper notes that RDMA FLUSH is not yet widely available and uses a READ-AFTER-WRITE workaround. Future work could integrate native RDMA FLUSH.
- Scalability of Backup Reads: While beneficial, the performance gains from backup reads are expected to increase further with more backup nodes.
- Coroutine Tuning: The optimal number of coroutines needs careful tuning to balance throughput and latency.
The authors suggest that their FORD system provides a strong foundation for disaggregated persistent memory transaction processing and can be extended to support more complex workloads and failure models.
Summary updated