Post-pass binary adaptation for software-based speculative precomputation
Steve S.W. Liao, Perry H. Wang, Hong Wang et al. · Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation · 2002
Recently, a number of thread-based prefetching techniques have been proposed. These techniques aim at improving the latency of single-threaded applications by leveraging multithreading resources to perform memory prefetching via speculative prefetch threads. Software-based speculative precomputation (SSP) is one such technique, proposed for multithreaded Itanium models. SSP does not require expensive hardware support-instead it relies on the compiler to adapt binaries to perform prefetching on otherwise idle hardware thread contexts at run time. This paper presents a post-pass compilation tool for generating SSP-enhanced binaries. The tool is able to: (1) analyze a single-threaded application to generate prefetch threads; (2) identify and embed trigger points in the original binary; and (3) produce a new binary that has the prefetch threads attached. The execution of the new binary spawns the speculative prefetch threads, which are executed concurrently with the main thread. Our results indicate that for a set of pointer-intensive benchmarks, the prefetching performed by the speculative threads achieves an average of 87% speedup on an in-order processor and 5% speedup on an out-of-order processor.
Cited by 104 works. doi:10.1145/512529.512544
Authors
References
- Architectural considerations for a new generation of protocols
- Program Slicing
- A new approach to the maximum-flow problem
- Simultaneous multithreading
- Combinatorial Algorithms: Theory and Practice
- SEDA
- Combinatorial algorithms: Theory and practice
- SPEC CPU2000: measuring CPU performance in the New Millennium
- Dynamic program slicing
- Optimistic incremental specialization