arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2203.06871cs.DCcs.PF
收藏

Block-STM:通过将排序诅咒转化为性能祝福来扩展区块链执行

Block-STM: Scaling Blockchain Execution by Turning Ordering Curse to a Performance Blessing

Rati Gelashvili, Alexander Spiegelman, Zhuolun Xiang, George Danezis, Zekun Li, Dahlia Malkhi, Yu Xia, Runtian Zhou

摘要:

Block-STM是一个智能合约的并行执行引擎,围绕软件事务内存的原则构建。事务被分组在块中,并且块的每次执行都必须产生相同的确定性结果。Block-STM进一步强制执行结果与根据预设顺序执行事务一致,利用该顺序动态检测依赖关系并避免推测性事务执行期间的冲突。Block-STM的核心是一种新颖的、低开销的执行和验证任务协作调度器。Block-STM在Diem Blockchain代码库的主要分支上实现,并在Aptos的生产中运行。我们的评估表明,块STM是适应不同的冲突率的工作负载,并利用其中固有的并行性。Block-STM在Diem基准测试中实现了高达$110k$ tps的性能,在Aptos基准测试中实现了高达$170k$ tps的性能,这分别比使用$32$线程的顺序基线提高了$20$ x和$17$ x。在Diem和Aptos基准测试中,竞争工作负载的吞吐量分别高达$50k$ tps和$80k$ tps。

英文摘要:

Block-STM is a parallel execution engine for smart contracts, built around the principles of Software Transactional Memory. Transactions are grouped in blocks, and every execution of the block must yield the same deterministic outcome. Block-STM further enforces that the outcome is consistent with executing transactions according to a preset order, leveraging this order to dynamically detect dependencies and avoid conflicts during speculative transaction execution. At the core of Block-STM is a novel, low-overhead collaborative scheduler of execution and validation tasks. Block-STM is implemented on the main branch of the Diem Blockchain code-base and runs in production at Aptos. Our evaluation demonstrates that Block-STM is adaptive to workloads with different conflict rates and utilizes the inherent parallelism therein. Block-STM achieves up to $110k$ tps in the Diem benchmarks and up to $170k$ tps in the Aptos Benchmarks, which is a $20$x and $17$x improvement over the sequential baseline with $32$ threads, respectively. The throughput on a contended workload is up to $50k$ tps and $80k$ tps in Diem and Aptos benchmarks, respectively.

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

↑