Generic Simulation Models of Communication Systems


Efficient Trace-Sampling Simulation Techniques For Cache Performance Analysis*


Tien-Fu Chen and Jason Yi-Bing Lin
Department of Computer Science
National Chung Cheng University
Chiayi 62107, Taiwan, ROC
(chen@cs.ccu.edu.tw)



Abstract

Trace driven simulation has been widely used in performing the evaluation of cache memory systems. In this paper, we focus on the simulation techniques in order to reduce the space and time requirements for simulating large caches. First, we propose a space sampling technique to perform trace reduction for time and space. Our approach is to perform stratified sampling based on an index of locality. Our results show that the technique can provide accurate estimate of performance metric using only a small portion of trace references. Alternatively we also propose a time sampling approach, which performs sampling on loop iterations and requires that references between inter-loop intervals be fully simulated. We show that the time sampling technique may give representative performance results for the entire loop execution. Depending on different workloads, the approach has been shown to be very effective in reducing simulation time at the cost of small estimate errors.

*<\b>This work was supported by National Science Council of Taiwan, R.O.C. under grant NSC 83-0408-194-004.