...
首页> 外文期刊>The VLDB journal >Efficiently making (almost) any concurrency control mechanism serializable
【24h】

Efficiently making (almost) any concurrency control mechanism serializable

机译:有效地(几乎)使任何并发控制机制可序列化

获取原文
获取原文并翻译 | 示例

摘要

Concurrency control (CC) algorithms must trade off strictness for performance. In particular, serializable CC schemes generally pay higher cost to prevent anomalies, both in runtime overhead such as the maintenance of lock tables and in efforts wasted by aborting transactions. We propose the serial safety net (SSN), a serializability-enforcing certifier which can be applied on top of various CC schemes that offer higher performance but admit anomalies, such as snapshot isolation and read committed. The underlying CC mechanism retains control of scheduling and transactional accesses, while SSN tracks the resulting dependencies. At commit time, SSN performs a 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 a variety of workloads. It maintains the characteristics of the underlying CC without biasing toward a certain type of transactions, though the underlying CC scheme might. Besides traditional OLTP workloads, SSN also efficiently handles heterogeneous workloads which include a significant portion of long, read-mostly transactions. SSN can avoid tracking the vast 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 supports multiple CC schemes. Evaluation results confirm that SSN is a promising approach to serializability with robust performance and low overhead for various workloads.
机译:并发控制(CC)算法必须权衡性能的严格性。特别是,可序列化的CC方案通常要付出更高的代价来防止异常,无论是在维护锁表等运行时开销还是由于中止事务而浪费的精力上。我们提出了串行安全网(SSN),这是一种可序列化性增强的证明者,可以在提供更高性能但允许出现异常(例如快照隔离和已提交读)的各种CC方案上应用。底层的CC机制保留对调度和事务访问的控制,而SSN跟踪结果依赖性。在提交时,SSN通过仅检查提交事务的直接依赖关系来确定其是否可以安全提交或必须中止以避免潜在的依赖周期,从而执行验证测试。 SSN在各种工作负载下均表现出色。尽管可以使用基础CC方案,但它可以保持基础CC的特性而不会偏向某种类型的交易。除了传统的OLTP工作负载之外,SSN还可以有效地处理异构工作负载,其中包括很大一部分长的,以只读为主的事务。 SSN可以避免跟踪绝大多数读取(从而减少了可序列化证书的开销),并且仍然可以以很少的开销生成可序列化的执行。对于具有大量内核数和大主内存的现代硬件上的多版本系统,可以高效,完全并行且无闩锁地进行依赖项跟踪和验证测试。我们使用广泛的仿真和一种实现覆盖ERMIA中的快照隔离实现,展示了SSN的效率,准确性和鲁棒性,ERMIA是一种内存优化的OLTP引擎,支持多种CC方案。评估结果证实,SSN是一种有前途的可序列化方法,具有稳定的性能和低的各种工作负载开销。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号