This Article 
   
 Share 
   
 Bibliographic References 
   
 Add to: 
 
Digg
Furl
Spurl
Blink
Simpy
Google
Del.icio.us
Y!MyWeb
 
 Search 
   
Skewed Associativity Improves Program Performance and Enhances Predictability
May 1997 (vol. 46 no. 5)
pp. 530-544

Abstract—Performance tuning becomes harder as computer technology advances. One of the factors is the increasing complexity of memory hierarchies. Most modern machines now use at least one level of cache memory. To reduce execution stalls, cache misses must be very low. Software techniques used to improve locality have been developed for numerical codes, such as loop blocking and copying. Unfortunately, the behavior of direct mapped and set associative caches is still erratic when large data arrays are accessed. Execution time can vary drastically for the same loop kernel depending on uncontrolled factors such as array leading size. The only software method available to improve execution time stability is the copying of frequently used data, which is costly in execution time. Users are not usually cache organization experts. They are not aware of such phenomena and have no control over it.

In this paper, we show that the recently proposed four-way skewed associative cache yields very stable execution times and good average miss ratios on blocked algorithms. As a result, execution time is faster and much more predictable than with conventional caches. It is therefore possible to use larger block sizes in blocked algorithms, which will further reduce blocking overhead costs.

[1] F. Bodin, C. Eisenbeis, W. Jalby, and D. Windheiser, "A Quantitative Algorithm for Data Locality Optimization" Code Generation—Concepts, Tools, Techniques, pp. 119-145. Springer Verlag, 1992.
[2] D. Bernard, F. Bodin, A. Goasguen, and C. Fechant, "Implementing a Two-Dimensional Pore-Scale Flow Model on Different Parallel Machines," Proc. 10th Int'l Conf. Computational Methods in Water Resources, June 1994.
[3] D. Callahan, S. Carr, and K. Kennedy, “Improving Register Allocation for Subscripted Variables,” Proc. ACM SIGPLAN 1990 Conf. Programming Language Design and Implementation, pp. 53-65, June 1990.
[4] C. Eisenbeis, W. Jalby, D. Windheiser, and F. Bodin, "A Strategy for Array Management in Local Memory," Mathematical Programming, special issue on applications of discrete optimization in computer science, 1994.
[5] G. Irlam, "Spa," personal communication, 1992; the Spa package is available from gordoni@cs.adelaide.edu.au.
[6] M. Lam, E. Rothberg, and M. Wolf, “The Cache Performance and Optimizations of Blocked Algorithms,” Proc. Fourth Int'l Conf. Architectural Support for Programming Languages and Operating Systems (ASPLOS '91), 1991.
[7] A. Porterfield, "Compiler Management of Program Locality," technical report, Rice Univ., Houston, Tex., Jan. 1988.
[8] M. Schlansker, R. Shaw, and A. Sivaramakrishnan, "Randomization and Associativity in the Design of Placement-Insensitive Caches" HP Laboratories Technical Report 93-41, June 1993
[9] A. Seznec, A Case for Two-Way Skewed-Associative Caches Proc. 20th Int'l Symp. Computer Architecture, pp. 169-178, 1993.
[10] A. Seznec, F. Bodin, “Skewed-Associative Caches,” Proc. Int'l Conf. Parallel Architectures and Languages (PARLE), pp. 305-316, 1993.
[11] H.S. Stone, "Parallel Processing with the Perfect-Shuffle," IEEE Trans. Computers, vol. 20, no. 2, pp. 153-161, Feb. 1971.
[12] O. Temam, E.D. Granston,, and W. Jalby, “To Copy or Not to Copy: A Compile-Time Technique for Assessing When Data Copying Should Be Used to Eliminate Cache Conflicts,” Proc. Supercomputing, Nov. 1993.
[13] M. Wolf and M. Lam, "An Algorithm to Generate Sequential and Parallel Code with Improved Data Locality," technical report, Stanford Univ., 1990.
[14] M. Wolf and M. Lam, “A Data Locality Optimizing Algorithm,” Proc. SIGPLAN Conf. Programming Language Design and Implementation, pp. 30-44, June 1991.

Index Terms:
Cache, predictable performance, numeric kernels, loop blocking, skewed-associative caches.
Citation:
François Bodin, André Seznec, "Skewed Associativity Improves Program Performance and Enhances Predictability," IEEE Transactions on Computers, vol. 46, no. 5, pp. 530-544, May 1997, doi:10.1109/12.589219
Usage of this product signifies your acceptance of the Terms of Use.