NASA NTRS · 20020073403
A Measurement and Simulation Based Methodology for Cache Performance Modeling and Tuning
Abstract
We present a cache performance modeling methodology that facilitates the tuning of uniprocessor cache performance for applications executing on shared memory multiprocessors by accurately predicting the effects of source code level modifications. Measurements on a single processor are initially used for identifying parts of code where cache utilization improvements may significantly impact the overall performance. Cache simulation based on trace-driven techniques can be carried out without gathering detailed address traces. Minimal runtime information for modeling cache performance of a selected code block includes: base virtual addresses of arrays, virtual addresses of variables, and loop bounds for that code block. Rest of the information is obtained from the source code. We show that the cache performance predictions are as reliable as those obtained through trace-driven simulations. This technique is particularly helpful to the exploration of various "what-if' scenarios regarding the cache performance impact for alternative code structures. We explain and validate this methodology using a simple matrix-matrix multiplication program. We then apply this methodology to predict and tune the cache performance of two realistic scientific applications taken from the Computational Fluid Dynamics (CFD) domain.
Keep this discovery
Explore connections, maps & timelines
Waheed, Abdul, Yan, Jerry, Saini, Subhash. 1998-01-01. A Measurement and Simulation Based Methodology for Cache Performance Modeling and Tuning. https://ntrs.nasa.gov/citations/20020073403
Cite the original work for its findings. Save a collection to share your selection of sources.