一句话:首次提出并实现硬件多线程事务,以低开销推测验证支持跨线程事务的投机并行化。
该论文研究如何降低软件多线程事务(MTX)中推测验证带来的线程间通信开销,从而让跨线程事务的投机并行化更实用。作者提出首个完整的硬件多线程事务设计、实现与评估:在硬件层面执行低开销的推测验证,即使对包含数千万到数亿条指令的事务中的每次加载和存储都进行最大程度验证,也能使复杂程序获得有收益的并行化。在 8 个基准测试上,该系统在 4 核多核机器上相对串行执行取得几何平均 99% 的加速。
Speculation with transactional memory systems helps pro- grammers and compilers produce profitable thread-level parallel programs. Prior work shows that supporting transactions that can span multiple threads, rather than requiring transactions be contained within a single thread, enables new types of speculative parallelization techniques for both programmers and parallelizing compilers. Unfortunately, software support for multi-threaded transactions (MTXs) comes with significant additional inter-thread communication overhead for speculation validation. This overhead can make otherwise good parallelization unprofitable for programs with sizeable read and write sets. Some programs using these prior software MTXs overcame this problem through significant efforts by expert programmers to minimize these sets and optimize communication, capabilities which compiler technology has been unable to equivalently achieve. Instead, this paper makes speculative parallelization less laborious and more feasible through low-overhead speculation validation, presenting the first complete design, implementation, and evaluation of hardware MTXs. Even with maximal speculation validation of every load and store inside transactions of tens to hundreds of millions of instructions, profitable parallelization of complex programs can be achieved. Across 8 benchmarks, this system achieves a geomean speedup of 99% over sequential execution on a multicore machine with 4 cores.
DOI 原文 ·
@inproceedings{paperbot4282,
title = {Hardware Multithreaded Transactions},
author = {Jordan Fix and Nayana P. Nagendra and Sotiris Apostolakis and Hansen Zhang and Sophie Qiu and David I. August},
booktitle = {ASPLOS},
year = {2018},
doi = {10.1145/3173162.3173172}
}