Kendo
Marek Olszewski, Jason Ansel, Saman P. Amarasinghe · ACM SIGARCH Computer Architecture News · 2009
Although chip-multiprocessors have become the industry standard, developing parallel applications that target them remains a daunting task. Non-determinism, inherent in threaded applications, causes significant challenges for parallel programmers by hindering their ability to create parallel applications with repeatable results. As a consequence, parallel applications are significantly harder to debug, test, and maintain than sequential programs. This paper introduces Kendo: a new software-only system that provides deterministic multithreading of parallel applications. Kendo enforces a deterministic interleaving of lock acquisitions and specially declared non-protected reads through a novel dynamically load-balanced deterministic scheduling algorithm. The algorithm tracks the progress of each thread using performance counters to construct a deterministic logical time that is used to compute an interleaving of shared data accesses that is both deterministic and provides good load balancing. Kendo can run on today's commodity hardware while incurring only a modest performance cost. Experimental results on the SPLASH-2 applications yield a geometric mean overhead of only 16% when running on 4 processors. This low overhead makes it possible to benefit from Kendo even after an application is deployed. Programmers can start using Kendo today to program parallel applications that are easier to develop, debug, and test.
Cited by 15 works. doi:10.1145/2528521.1508256
Authors
References
- Time, clocks, and the ordering of events in a distributed system
- The SPLASH-2 programs
- Debugging Parallel Programs with Instant Replay
- The implementation of the Cilk-5 multithreaded language
- The Problem with Threads
- Learning from mistakes
- Parallel visualization algorithms: performance and architectural implications
- Replay for concurrent non-deterministic shared-memory applications
- Detecting data races in Cilk programs that use locks
- Execution replay of multiprocessor virtual machines