Fast Track: A Software System for Speculative Program Optimization
Kirk Kelsey, Tongxin Bai, Chen Ding et al. · International Symposium on Code Generation and Optimization (CGO) · 2009
Fast track is a software speculation system that enables unsafe optimization of sequential code. It speculatively runs optimized code to improve performance and then checks the correctness of the speculative code by running the original program on multiple processors. We present the interface design and system implementation for Fast Track. It lets a programmer or a profiling tool mark fast-track code regions and uses a run-time system to manage the parallel execution of the speculative process and its checking processes and ensures the correct display of program outputs. The core of the run-time system is a novel concurrent algorithm that balances exploitable parallelism and available processors when the fast track is too slow or too fast. The programming interface closely affects the run-time support. Our system permits both explicit and implicit end markers for speculatively optimized code regions as well as extensions that allow the use of multiple tracks and user designed correctness checking. We discuss the possible uses of speculative optimization and demonstrate the effectiveness of our prototype system by examples of unsafe semantic optimization and a general system for fast memory-safety checking, which is able to reduce the checking time by factors between 2 and 7 for large sequential code on a 8-CPU system.
Cited by 94 works. doi:10.1109/cgo.2009.18
Authors
References
- Pin
- Pin
- Shared virtual memory on loosely coupled multiprocessors
- “Memo” Functions and Machine Learning
- Optimizing Compilers for Modern Architectures: A Dependence-based Approach
- TreadMarks: distributed shared memory on standard workstations and operating systems
- Real-time concurrent collection on stock multiprocessors
- A framework for reducing the cost of instrumented code
- Slipstream processors
- Compile-time support for efficient data race detection in shared-memory parallel programs