Sound and Complete Monitoring of Sequential Consistency for Relaxed Memory Models
نویسندگان
چکیده
We present a technique for verifying that a program has no executions violating sequential consistency (SC) when run under the relaxed memory models Total Store Order (TSO) and Partial Store Order (PSO). The technique works by monitoring sequentially consistent executions of a program to detect if similar program executions could fail to be sequentially consistent under TSO or PSO. We propose novel monitoring algorithms that are sound and complete for TSO and PSO—if a program can exhibit an SC violation under TSO or PSO, then the corresponding monitor can detect this on some SC execution. The monitoring algorithms arise naturally from the operational definitions of these relaxed memory models, highlighting an advantage of viewing relaxed memory models operationally rather than axiomatically. We apply our technique to several concurrent data structures and synchronization primitives, detecting a number of violations of sequential consistency.
منابع مشابه
Performance Benefits of Relaxed Memory Consistency for Process Network Applications
This work is the first to investigate whether using a relaxed consistency model has performance benefits over a sequential memory model when a multiprocessor executes a process network application. A trace-driven simulator, developed using SystemC, is used to model the distributed shared memory system of a prototype multiprocessor developed at Philips. The simulator offers two consistency model...
متن کاملResolve: Enabling Accurate Parallel Monitoring under Relaxed Memory Models
Hardware-assisted instruction-grain monitoring frameworks provide high-coverage, low overhead debugging support for parallel programs. Unfortunately, existing frameworks are ill-suited for the relaxed memory models employed by nearly all modern processor architectures—e.g., TSO (x86, SPARC), RMO (SPARC), and Weak Consistency (ARMv7). For TSO, prior proposals hint at a solution, but provide no i...
متن کاملEvaluating Sequential Consistency in a Virtually Shared Memory System by Deterministic and Stochastic Petri Nets
This paper introduces a modeling approach for evaluating the performance of consistency models for Virtually Shared Memory systems. The proposed approach employs Deterministic and Stochastic Petri Nets (DSPNs) which provide a unified modeling tool for both qualitative and quantitative analysis. A DSPN of a sequential consistency model is presented which is employed for a quantitative performanc...
متن کاملA Study on the Impact of Memory Consistency Models on Parallel Algorithms for Shared-Memory Multiprocessors
Memory consistency model is an integral part of the shared-memory multiprocessor system, and directly affects the performance. Most current multiprocessors adopt relaxed consistency models in quest of higher performance. In this paper we study the impact of memory consistency model on the design, implementation and performance of parallel algorithms for graph problems that remain challenging du...
متن کاملParallel computing focussing on multiprocessing with shared memory ; problems when developing parallel programs with respect to different memory consistency models
There are many different papers written about the topic of parallel computing and memory consistency models, but most of them are focussing on a specific problem field. None of these papers delivers an overview of parallel computing, as well as an overview of different memory consistency models in the field of parallel programming. There is a strict memory consistency model called sequential co...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2011