TM-dietlibc: A TM-aware Real-World System Library

Research output: Contribution to book/conference proceedings/anthology/reportConference contributionContributedpeer-review

Contributors

  • V. Smiljkovic - (Author)
  • Martin Nowack - , Chair of Systems Engineering (Author)
  • N. Miletic - (Author)
  • T. Harris - (Author)
  • O. Unsal - (Author)
  • A. Cristal - (Author)
  • M. Valero - (Author)

Abstract

The simplicity of concurrent programming with Transactional Memory (TM) and its recent implementation in mainstream processors greatly motivates researchers and industry to investigate this field and propose new implementations and optimizations. However, there is still no standard C system library which a wide range of TM developers can adopt. TM application developers have been forced to avoid library calls inside of transactions or to execute them irrevocably (i.e. in serial order). In this paper, we present the first TM-aware system library, a complex software implementation integrated with TM principles and suited for software (STM), hardware (HTM) and hybrid TM (HyTM). The library we propose is derived from a modified lock-based implementation and can be used with the existing standard C API. In our work, we describe design challenges and code optimizations that would be specific to any TM-based system library or application. We argue about system call execution within transactions, highlighting the possibility of unexpected results from threads. For this reason we propose: (1) a mechanism for detecting conflicts over kernel data in user space, and (2) a new barrier to allow hybrid TM to be used effectively with system libraries. Our evaluation includes different TM implementations and the focus is on memory management and file operations since they are widely used in applications and require additional mechanisms for concurrent execution. We show the benefit we gain with our libc modifications providing parallel execution as much as possible. The library we propose shows high scalability when linked with STM and HTM. For file operations it shows on average a 1.1, 2.6 and 3.7x performance speedup for 8 cores using HyTM, STM and HTM, respectively (over a lock-based single-threaded execution). For a red-black tree it shows on average 3.14x performance speedup for 8 cores using STM (over a multi-read single-threaded execution).

Details

Original languageEnglish
Title of host publicationParallel Distributed Processing (IPDPS), 2013 IEEE 27th International Symposium on
Pages1266-1274
Number of pages9
Publication statusPublished - 1 May 2013
Peer-reviewedYes

Conference

TitleIn Parallel Distributed Processing (IPDPS), 2013 IEEE 27th International Symposium on, 2013.
Abbreviated titleIPDPS 2013
Conference number
Duration20 May 2013
Website
Degree of recognitionInternational event
Location
CityMassachusetts
CountryUnited States of America

External IDs

Scopus 84884836342

Keywords

Research priority areas of TU Dresden

DFG Classification of Subject Areas according to Review Boards

Keywords

  • concurrency control, optimisation, parallel programming, software libraries, storage management, Abstract-The parallel programming, HTM, HyTM, STM, TM application developers, TM-aware real-world system library, TM-dietlibc, code optimizations, complex software implementation, concurrent programming, file operations, hardware TM, hybrid TM, memory management, modified lock-based implementation, red-black tree, transactional memory, Buffer storage, Hardware, Kernel, Libraries, Memory management, Synchronization, I/O, memory allocation, system calls, system library, transactional memory, system library, ststem calls, I/O, memory allocation, Libraries, Kernel, Memory management, Synchronization, Hardware, Buffer storage