APPENDICES and SUPPLEMENTS
|
|
The software suite accompanying the article; this is a Unix tar file, which includes the source code and the test files used in the article.
|
ABSTRACT
We demonstrate the importance of reducing misses in the translation-lookaside buffer (TLB) for obtaining good performance on modern computer architectures. We focus on least-significantbit first (LSB) radix sort, standard implementations of which make many TLB misses. We give three techniques which simultaneously reduce cache and TLB misses for LSB radix sort: reducing working set size, explicit block transfer and pre-sorting. We note that: • All the techniques above yield algorithms whose implementations outperform optimised cache-tuned implementations of LSB radix sort and comparison-based sorting algorithms. The fastest running times are obtained by the pre-sorting approach and these are over twice as fast as optimised cache-tuned implementations of LSB radix sort and quicksort. Even the simplest optimisation, using the TLB size to guide the choice of radix in standard implementations of LSB radix sort, gives good improvements over cache-tuned algorithms. • One of the pre-sorting algorithms and explicit block transfer make few cache and TLB misses in the worst case. This is not true of standard implementations of LSB radix sort.We also apply these techniques to the problem of permuting an array of integers, and obtain gains of over 30% relative to the naive algorithm by using explicit block transfer.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
 |
1
|
|
| |
2
|
|
| |
3
|
|
 |
4
|
|
| |
5
|
|
| |
6
|
GANNON, D. AND JALBY, W. 1987. The influence of memory hierarchy on algorithm organization: Programming FFTs on a vector multiprocessor. In L. H. JAMIESON, D. B. GANNON, AND R. J. DOUGLASS Eds., <i>The Characteristics of Parallel Algorithms</i>. MIT Press.
|
| |
7
|
HANDY, J. 1998. <i>The Cache Memory Handbook</i>. Academic Press.
|
| |
8
|
|
| |
9
|
Richard E. Ladner , James D. Fix , Anthony LaMarca, Cache performance analysis of traversals and random accesses, Proceedings of the tenth annual ACM-SIAM symposium on Discrete algorithms, p.613-622, January 17-19, 1999, Baltimore, Maryland, United States
|
| |
10
|
|
| |
11
|
Yossi Matias , Eran Segal , Jeffrey Scott Vitter, Efficient bundle sorting, Proceedings of the eleventh annual ACM-SIAM symposium on Discrete algorithms, p.839-848, January 09-11, 2000, San Francisco, California, United States
|
| |
12
|
|
| |
13
|
MORET, B. AND SHAPIRO, U. 1994. An empirical assessment of algorithms for constructing a minimum spanning tree. In <i>Computational Support for Discrete Mathematics</i>, Volume 15 of <i>DIMACS Monographs in Discrete Mathematics and Theoretical Computer Science</i>, pp. 99-117. American Mathematical Society.
|
| |
14
|
|
| |
15
|
|
 |
16
|
|
| |
17
|
Sun Microsystem. 1997. <i>UltraSPARC User's Manual</i>. Sun Microsystem.
|
 |
18
|
|
|