The Community for Technology Leaders
2008 International Conference on Parallel Architectures and Compilation Techniques (PACT) (2008)
Toronto, ON, Canada
Oct. 25, 2008 to Oct. 29, 2008
ISBN: 978-1-5090-3021-7
pp: 91-101
Fang Liu , Dept. of Electrical and Computer Engineering, NC State University, USA
Fei Guo , Dept. of Electrical and Computer Engineering, NC State University, USA
Yan Solihin , Dept. of Electrical and Computer Engineering, NC State University, USA
Seongbeom Kim , VMWare Inc., USA
Abdulaziz Eker , Scientific and Technological Research Council, Ankara, Turkey
ABSTRACT
One of the essential features in modern computer systems is context switching, which allows multiple threads of execution to time-share a limited number of processors. While very useful, context switching can introduce high performance overheads, with one of the primary reasons being the cache perturbation effect. Between the time a thread is switched out and when it resumes execution, parts of its working set in the cache may be perturbed by other interfering threads, leading to (context switch) cache misses to recover from the perturbation. The goal of this paper is to understand how cache parameters and application behavior influence the number of context switch misses the application suffers from. We characterize a previously-unreported type of context switch misses that occur as the artifact of the interaction of cache replacement policy and an application's temporal reuse behavior. We characterize the behavior of these “reordered misses” for various applications, cache sizes, and the amount of cache perturbation. As a second contribution, we develop an analytical model that reveals the mathematical relationship between cache design parameters, an application's temporal reuse pattern, and the number of context switch misses the application suffers from. We validate the model against simulation studies and find that it is accurate in predicting the trends of context switch misses. The mathematical relationship provided by the model allows us to derive insights into precisely why some applications are more vulnerable to context switch misses than others. Through a case study, we also find that prefetching tends to aggravate the number of context switch misses.
INDEX TERMS
Switches, Context, Context modeling, Mathematical model, Prefetching,Prefetching, Context switch misses, Stack distance profiling, Analytical model
CITATION
Fang Liu, Fei Guo, Yan Solihin, Seongbeom Kim, Abdulaziz Eker, "Characterizing and modeling the behavior of context switch misses!", 2008 International Conference on Parallel Architectures and Compilation Techniques (PACT), vol. 00, no. , pp. 91-101, 2008, doi:
98 ms
(Ver 3.3 (11022016))