Aikido: Accelerating shared data dynamic analyses
Name
Amarasinghe-Aikidos.pdf
Size
492.9 KB
Format
Adobe PDF
Checksum (MD5)
69065c0f061051b7a57ef1b7f67c7a32
Author(s) • • • •
Olszewski, Marek Krystyn
Zhao, Qin
Koh, David F.
Ansel, Jason Andrew
Amarasinghe, Saman P.
Date Issued
March 2012
Journal
Proceedings of the 17th International Conference on Architectural Support for Programming Languages and Operating Systems, ASPLOS '12
Publisher
Association for Computing Machinery
Citation
Olszewski, Marek et al. “Aikido.” in Proceedings of the 17th International Conference on Architectural Support for Programming Languages and Operating Systems, ASPLOS '12, ACM Press, 2012. 173. Web.
Version
Author's final manuscript
Abstract
Despite a burgeoning demand for parallel programs, the tools available to developers working on shared-memory multicore processors have lagged behind. One reason for this is the lack of hardware support for inspecting the complex behavior of these parallel programs. Inter-thread communication, which must be instrumented for many types of analyses, may occur with any memory operation. To detect such thread communication in software, many existing tools require the instrumentation of all memory operations, which leads to significant performance overheads. To reduce this overhead, some existing tools resort to random sampling of memory operations, which introduces false negatives. Unfortunately, neither of these approaches provide the speed and accuracy programmers have traditionally expected from their tools. In this work, we present Aikido, a new system and framework that enables the development of efficient and transparent analyses that operate on shared data. Aikido uses a hybrid of existing hardware features and dynamic binary rewriting to detect thread communication with low overhead. Aikido runs a custom hypervisor below the operating system, which exposes per-thread hardware protection mechanisms not available in any widely used operating system. This hybrid approach allows us to benefit from the low cost of detecting memory accesses with hardware, while maintaining the word-level accuracy of a software-only approach. To evaluate our framework, we have implemented an Aikido-enabled vector clock race detector. Our results show that the Aikido enabled race-detector outperforms existing techniques that provide similar accuracy by up to 6.0x, and 76% on average, on the PARSEC benchmark suite.
MIT Department
Massachusetts Institute of Technology. Computer Science and Artificial Intelligence Laboratory
Massachusetts Institute of Technology. Department of Electrical Engineering and Computer Science
Persistent DSpace Link
DOI of Published Version
https://doi.org/10.1145/2150976.2150995