2014 · 14 citations · 33 references
ComputingComputer EngineeringComputer ScienceCompilersComputer ArchitectureParallel ComputingCache Behavior AnalysisCachingInstruction SelectionInstruction Set ArchitectureInstruction-level ParallelismShared-memory ParallelismCache ContentionCache DesignInstruction Cache BehaviorMicroarchitectural OptimizationResource ContentionThroughputThroughput ImprovementWhole-program Optimization
Code layout optimization seeks to reorganize the instructions of a program to better utilize the cache. On multicore, parallel executions improve the throughput but may significantly increase the cache contention, because the co-run programs share the cache and in the case of hyper-threading, the instruction cache. In this paper, we extend the reference affinity model for use in whole-program code layout optimization. We also implement the temporal relation graph (TRG) model used in prior work for comparison. For code reorganization, we have developed both function reordering and inter-procedural basic-block reordering. We implement the two models and the two transformations in the LLVM compiler. Experimental results on a set of benchmarks show frequently 20% to 50% reduction in instruction cache misses. By better utilizing the shared cache, the new techniques magnify the throughput improvement of hyper-threading by 8%.
33
Chi-Keung Luk, Robert Cohn, Robert Muth et al. · ACM SIGPLAN Notices · 2005 · 3.2K citations
Chi-Keung Luk, Robert Cohn, Robert Muth et al. · 2005 · 2.3K citations
Evaluation techniques for storage hierarchies
R. L. Mattson, J. Gecsei, Donald R. Slutz et al. · IBM Systems Journal · 1970 · 1.3K citations
Predicting Inter-Thread Cache Contention on a Chip Multi-Processor Architecture
Dhruba Chandra, Fei Guo, Seongbeom Kim et al. · 2005 · 525 citations