Process-shared and persistent code caches
Authors:
Open Access
- 5 March 2008
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 61-70
Abstract
Software code caches are increasingly being used to amortizethe runtime overhead of tools such as dynamic optimizers, simulators, and instrumentation engines. The additional memory consumed by these caches, along with the data structures used to manage them, limits the scalability of dynamic tool deployment. Inter-process sharing of code caches significantly improves the ability to efficiently apply code caching tools to many processes simultaneously. In this paper, we present a method of code cache sharing among processes for dynamic tools operating on native applications. Our design also supports code cache persistence for improved cold code execution in short-lived processes or long initialization sequences. Sharing raises security concerns, and we show how to achieve sharing without risk of privilege escalation and with read-only code caches and associated data structures. We evaluate process-shared and persisted code caches implemented in the DynamoRIO industrial-strength dynamic instrumentation engine, where we achieve a two-thirds reduction in both memory usage and startup time.Keywords
This publication has 20 references indexed in Scilit:
- PinOS2007
- HDTrans2006
- Persistence in dynamic code transformation systemsACM SIGARCH Computer Architecture News, 2005
- Pin2005
- Module-aware translation for real-life desktop applications2005
- Adaptive optimization in the Jalapeño JVM2000
- PA-RISC to IA-64: transparent execution, no recompilationComputer, 2000
- Fast, effective code generation in a just-in-time Java compiler1998
- FX!32 a profile-directed binary translatorIEEE Micro, 1998
- Shade: a fast instruction-set simulator for execution profilingACM SIGMETRICS Performance Evaluation Review, 1994