有效地使(几乎)任何并发控制机制都可序列化
Efficiently making (almost) any concurrency control mechanism serializable
摘要:
并发控制(CC)算法必须在严格性和性能之间进行权衡。可串行化CC方案通常为防止异常而付出更高的成本,包括运行时开销和中止事务所浪费的工作。我们提出了串行安全网(SSN),一个可串行化执行认证,可以应用于各种CC方案,提供更高的性能,但承认异常,如快照隔离和读提交的顶部上的开销最小。底层CC保留对调度和事务访问的控制,而SSN跟踪产生的依赖关系。在提交时,SSN通过仅检查提交事务的直接依赖关系来执行有效的验证测试,以确定它是否可以安全提交或必须中止以避免潜在的依赖循环。SSN在各种工作负载下都表现出色。它保持了底层CC的特征,而不偏向于某些类型的事务,尽管底层CC可能会偏向于某些类型的事务。除了传统的OLTP工作负载外,SSN还允许高效处理具有长时间、以读取为主的事务的异构工作负载。SSN可以避免跟踪大多数读操作(从而减少了可序列化认证的开销),并且仍然以很小的开销生成可序列化的执行。依赖性跟踪和验证测试可以在具有大量内核和大内存的现代硬件上高效、完全并行和无锁存地完成。我们证明了SSN的效率,准确性和鲁棒性,使用广泛的模拟和实施,覆盖在ERMIA,内存优化的OLTP引擎,能够运行不同的CC计划的快照隔离。评估结果证实,SSN是一种很有前途的方法,可串行化与强大的性能和低开销的各种工作负载。
英文摘要:
Concurrency control (CC) algorithms must trade off strictness for performance. Serializable CC schemes generally pay higher cost to prevent anomalies, both in runtime overhead and in efforts wasted by aborting transactions. We propose the serial safety net (SSN), a serializability-enforcing certifier which can be applied with minimal overhead on top of various CC schemes that offer higher performance but admit anomalies, such as snapshot isolation and read committed. The underlying CC retains control of scheduling and transactional accesses, while SSN tracks the resulting dependencies. At commit time, SSN performs an efficient validation test by examining only direct dependencies of the committing transaction to determine whether it can commit safely or must abort to avoid a potential dependency cycle. SSN performs robustly for various workloads. It maintains the characteristics of the underlying CC without biasing toward certain types of transactions, though the underlying CC might. Besides traditional OLTP workloads, SSN also allows efficient handling of heterogeneous workloads with long, read-mostly transactions. SSN can avoid tracking the majority of reads (thus reducing the overhead of serializability certification) and still produce serializable executions with little overhead. The dependency tracking and validation tests can be done efficiently, fully parallel and latch-free, for multi-version systems on modern hardware with substantial core count and large main memory. We demonstrate the efficiency, accuracy and robustness of SSN using extensive simulations and an implementation that overlays snapshot isolation in ERMIA, a memory-optimized OLTP engine that is capable of running different CC schemes. Evaluation results confirm that SSN is a promising approach to serializability with robust performance and low overhead for various workloads.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。