一句话:分析以太坊历史交易轨迹,指出应用固有冲突是并行瓶颈,并用分区计数器、可交换指令与确定性中止的 OCC 调度器将并行加速上限翻倍至 18 倍。
随着共识协议吞吐量提升至每秒数千笔交易,交易执行成为公有链的新瓶颈,而现有并行执行机制因无法有效处理区块链应用固有冲突,加速效果远不理想。作者系统性地研究了以太坊的历史交易执行轨迹,发现应用固有冲突是限制可开发并行性的主要因素。为此,论文提出使用分区计数器和特殊的可交换指令来打断应用层的冲突链,以最大化潜在加速比;在评估可达的最大并行加速比时,这些技术将该上限提升了一倍,相比串行执行达到约 18 倍的整体加速,接近最优。此外,作者提出 OCC-DA——一种具有确定性中止的乐观并发控制调度器,使 OCC 调度能够适用于公有链场景。
Traditional public blockchain systems typically had very limited transaction throughput because of the bottleneck of the consensus protocol itself. With recent advances in consensus technology, the performance limit has been greatly lifted, typically to thousands of transactions per second. With this, transaction execution has become a new performance bottleneck. Exploiting parallelism in transaction execution is a clear and direct way to address this and to further increase transaction throughput. Although some recent literature introduced concurrency control mechanisms to execute smart contract transactions in parallel, the reported speedup that they can achieve is far from ideal. The main reason is that the proposed parallel execution mechanisms cannot effectively deal with the conflicts inherent in many blockchain applications. In this work, we thoroughly study the historical transaction exe-cution traces in Ethereum. We observe that application-inherent conflicts are the major factors that limit the exploitable parallelism during execution. We propose to use partitioned counters and spe-cial commutative instructions to break up the application conflict chains in order to maximize the potential speedup. When we eval-uated the maximum parallel speedup achievable, these techniques doubled this limit to an 18x overall speedup compared to serial execution, thus approaching the optimum. We also propose OCC-DA, an optimistic concurrency control scheduler with deterministic aborts, which makes it possible to use OCC scheduling in public blockchain settings.
DOI 原文 · arXiv · PDF(开放获取) · DBLP
@inproceedings{abs-2201-03749,
title = {Utilizing parallelism in smart contracts on decentralized blockchains by taming application-inherent conflicts},
author = {Péter Garamvölgyi and Yuxi Liu and Dong Zhou and Fan Long and Ming Wu},
booktitle = {ICSE},
year = {2022},
doi = {10.1145/3510003.3510086}
}