Version management alternatives for hardware transactional memory

  • Authors:
  • Marc Lupon;Grigorios Magklis;Antonio González

  • Affiliations:
  • Univ. Politècnica de Catalunya;Intel Barcelona Research Center, Intel Labs-UPC;Intel Barcelona Research Center, Intel Labs-UPC

  • Venue:
  • Proceedings of the 9th workshop on MEmory performance: DEaling with Applications, systems and architecture
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

Transactional Memory is a promising parallel programming model that addresses the programmability issues of lock-based applications using mechanisms that are transparent to developers. Hardware Transactional Memory (HTM) implements these mechanisms in silicon to obtain better results than fine-grain locking solutions. One of these mechanisms is data version management, that decides how and where the modifications introduced by transactions are stored to guarantee their atomicity and durability. In this paper, we show that aborts are frequent especially for applications with coarse-grain transactions and many threads, and that this severely restricts the scalability of log-based HTMs. To address this issue, we propose the use of a gated store buffer to accelerate eager version management for log-based HTM. Moreover, we propose a novel design, where the store buffer is used to perform lazy version management (similar to Rock [12]) but overflowed transactions execute with a fallback log-based HTM that uses eager version management. Assuming an infinite store buffer, we show that lazy version management is better suited to applications with fine-grain transactions while eager version management is better suited to applications with coarse-grain transactions. Limiting the buffer size to 32 entries, we obtain 20.1% average improvement over log-based HTM for applications with fine-grain transactions (using lazy version management) and 54.7% for applications with coarse-grain transactions (using eager version management).