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

混合事务存储器的并发代价

On the Cost of Concurrency in Hybrid Transactional Memory

Trevor Brown, Srivatsan Ravi

摘要:

现有技术的\emph{software transactional memory (STM)}实现通过小心地避免\emph{incremental validation}的开销(即,重新读取先前读取的数据项以避免不一致),同时仍然提供\emph{progressiveness}(仅允许由于\emph{data conflicts}而导致的事务中止)。硬件事务内存(HTM)实现承诺甚至更好的性能,但不能提供进度保证。因此,它们必须与STM组合,导致\emph{hybrid} TM(HyTM),其中硬件事务必须是\emph{instrumented}(即,访问元数据)以检测与软件事务的争用。我们发现,与渐进式STM不同,渐进式HyTM中的软件事务无法避免增量验证。事实上,即使硬件事务可以\emph{read}元数据\emph{non-speculatively},该结果也成立。然后,我们提出了\emph{opaque} HyTM算法,提供在硬件仪器方面最佳的\emph{progressiveness for a subset of transactions}。我们探讨这些算法的并发性与硬件仪器与软件验证权衡。我们对Intel和IBM POWER8 HTM的实验似乎表明:(i)\emph{cost of concurrency}在实践中也存在,(ii)重要的是实现HyTM,它为最大的事务集提供渐进性,而不会产生高硬件插装开销或使用全局竞争瓶颈,(iii)没有简单的方法通过利用硬件内的非推测访问来获得更有效的HyTM。

英文摘要:

State-of-the-art \emph{software transactional memory (STM)} implementations achieve good performance by carefully avoiding the overhead of \emph{incremental validation} (i.e., re-reading previously read data items to avoid inconsistency) while still providing \emph{progressiveness} (allowing transactional aborts only due to \emph{data conflicts}). Hardware transactional memory (HTM) implementations promise even better performance, but offer no progress guarantees. Thus, they must be combined with STMs, leading to \emph{hybrid} TMs (HyTMs) in which hardware transactions must be \emph{instrumented} (i.e., access metadata) to detect contention with software transactions. We show that, unlike in progressive STMs, software transactions in progressive HyTMs cannot avoid incremental validation. In fact, this result holds even if hardware transactions can \emph{read} metadata \emph{non-speculatively}. We then present \emph{opaque} HyTM algorithms providing \emph{progressiveness for a subset of transactions} that are optimal in terms of hardware instrumentation. We explore the concurrency vs. hardware instrumentation vs. software validation trade-offs for these algorithms. Our experiments with Intel and IBM POWER8 HTMs seem to suggest that (i) the \emph{cost of concurrency} also exists in practice, (ii) it is important to implement HyTMs that provide progressiveness for a maximal set of transactions without incurring high hardware instrumentation overhead or using global contending bottlenecks and (iii) there is no easy way to derive more efficient HyTMs by taking advantage of non-speculative accesses within hardware.

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

↑