• DocumentCode
    1915053
  • Title

    DetLock: Portable and Efficient Deterministic Execution for Shared Memory Multicore Systems

  • Author

    Mushtaq, Hamid ; Al-Ars, Zaid ; Bertels, Koen

  • Author_Institution
    Comput. Eng. Lab., Delft Univ. of Technol., Delft, Netherlands
  • fYear
    2012
  • fDate
    10-16 Nov. 2012
  • Firstpage
    721
  • Lastpage
    730
  • Abstract
    Multicore systems are not only hard to program but also hard to test, debug and maintain. This is because the traditional way of accessing shared memory in multithreaded applications is to use lock-based synchronization, which is inherently non-deterministic and can cause a multithreaded application to have many different possible execution paths for the same input. This problem can be avoided however by forcing a multithreaded application to have the same lock acquisition order for the same input. In this paper, we present DetLock, which is able to run multithreaded programs deterministically without relying on any hardware support or kernel modification. The logical clocks used for performing deterministic execution are inserted by the compiler. For 4 cores, the average overhead of these clocks on tested benchmarks is brought down from 20% to 8% by applying several optimizations. Moreover, the overall overhead, including deterministic execution, is comparable to state of the art systems such as Kendo, even surpassing it for some applications, while providing more portability.
  • Keywords
    multi-threading; program compilers; shared memory systems; synchronisation; DetLock framework; Kendo system; compiler; deterministic execution; execution path; lock acquisition order; lock-based synchronization; logical clock; multithreaded application; multithreaded program; shared memory multicore system; Compiler; Deterministic; LLVM; Multicore; Multithreading;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    High Performance Computing, Networking, Storage and Analysis (SCC), 2012 SC Companion:
  • Conference_Location
    Salt Lake City, UT
  • Print_ISBN
    978-1-4673-6218-4
  • Type

    conf

  • DOI
    10.1109/SC.Companion.2012.98
  • Filename
    6495880