arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.07911cs.DC
收藏

区块链的操作级并发事务执行

Operation-level Concurrent Transaction Execution for Blockchains

Haoran Lin, Yajin Zhou, Lei Wu

摘要:

尽管在各种场景中取得了成功,但区块链系统,特别是串行执行交易的兼容EVM的系统,仍然面临着吞吐量有限的重大挑战。并发事务执行是加速事务处理和提高整体吞吐量的一种很有前途的技术。然而,现有的并发控制算法由于高争用工作负载而无法在现实世界的区块链中获得足够的加速比。在本文中,我们提出了一种新的操作级并发控制算法设计的区块链。我们的算法背后的核心思想是,只有依赖于冲突的操作应该串行执行,而所有其他无冲突的操作可以并发执行。因此,在传统的方法,这块或中止整个事务时遇到冲突,我们的算法引入了一个重做阶段,以解决冲突,在操作层面上重新执行冲突的操作。我们还开发了一套数据依赖跟踪机制,以实现精确识别和快速重新执行冲突的操作。我们实现了一个基于Go Ethereum的开源原型,并使用真实世界的Ethereum块对其进行评估。评估结果表明,我们的算法实现了4.28 $\times$的平均加速比。如果与状态预取技术相结合,我们的方法可以进一步加速事务执行7.11 $\times$。

英文摘要:

Despite the success in various scenarios, blockchain systems, especially EVM-compatible ones that serially execute transactions, still face the significant challenge of limited throughput. Concurrent transaction execution is a promising technique to accelerate transaction processing and increase the overall throughput. Existing concurrency control algorithms, however, fail to obtain enough speedups in real-world blockchains due to the high-contention workloads. In this paper, we propose a novel operation-level concurrency control algorithm designed for blockchains. The core idea behind our algorithm is that only operations depending on conflicts should be executed serially, while all other conflict-free operations can be executed concurrently. Therefore, in contrast to the traditional approaches, which block or abort the entire transaction when encountering conflicts, our algorithm introduces a redo phase to resolve conflicts at the operation level by re-executing conflicting operations only. We also develop a set of data dependency tracking mechanisms to achieve precise identification and speedy re-execution for conflicting operations. We implement an open-source prototype based on Go Ethereum and evaluate it using real-world Ethereum blocks. The evaluation results show that our algorithm achieves an average speedup of 4.28$\times$. If combined with state prefetching techniques, our approach can further accelerate the transaction execution by 7.11$\times$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑