A concurrent dynamic analysis framework for multicore hardware

Authors:

Abstract
Software has spent the bounty of Moore's law by solving harder problems and exploiting abstractions, such as high- level languages, virtual machine technology, binary rewrit- ing, and dynamic analysis. Abstractions make programmers more productive and programs more portable, but usually slow them down. Since Moore's law is now delivering mul- tiple cores instead of faster processors, future systems must either bear a relatively higher cost for abstractions or use some cores to help tolerate abstraction costs. This paper presents the design, implementation, and eval- uation of a novel concurrent, configurable dynamic analy- sis framework that efficiently utilizes multicore cache archi- tectures. It introduces Cache-friendly Asymmetric Buffer- ing (CAB), a lock-free ring buffer that implements efficient communication between application and analysis threads. We guide the design and implementation of our framework with a model of dynamic analysis overheads. The framework implements exhaustive and sampling event processing and is analysis-neutral. We evaluate the framework with five pop- ular and diverse analyses, and show performance improve- ments even for lightweight, low-overhead analyses. Efficient inter-core communication is central to high per- formance parallel systems and we believe the CAB design gives insight into the subtleties and difficulties of attaining it for dynamic analysis and other parallel software.