ACM SIGARCH Computer Architecture News · 1989 · 192 citations · 12 references
ComputingComputer EngineeringComputer ScienceAlgorithmsCompilersComputer ArchitectureCache Behavior AnalysisCachingCaching StrategiesInstruction Set ArchitectureMemory HierarchyMemory Hierarchy OptimizationCache ManagementCache MemoryCache Miss AnalysisCache Miss RateCache OptimizationCache Size OptimizationInstruction Cache BehaviorProgram Optimization
This paper presents an optimization algorithm for reducing instruction cache misses. The algorithm uses profile information to reposition programs in memory so that a direct-mapped cache behaves much like an optimal cache with full associativity and full knowledge of the future. For best results, the cache should have a mechanism for excluding certain instructions designated by the compiler. This paper first presents a reduced form of the algorithm. This form is shown to produce an optimal miss rate for programs without conditionals and with a tree call graph, assuming basic blocks can be reordered at will. If conditionals are allowed, but there are no loops within conditionals, the algorithm does as well as an optimal cache for the worst case execution of the program consistent with the profile information. Next, the algorithm is extended with heuristics for general programs. The effectiveness of these heuristics are demonstrated with empirical results for a set of 10 programs for various cache sizes. The improvement depends on cache size. For a 512 word cache, miss rates for a direct-mapped instruction cache are halved. For an 8K word cache, miss rates fall by over 75%. Over a wide range of cache sizes the algorithm is as effective as increasing the cache size by a factor of 3 times. For 512 words, the algorithm generates only 32% more misses than an optimal cache. Optimized programs on a direct-mapped cache have lower miss rates than unoptimized programs on set-associative caches of the same size.
12
A study of replacement algorithms for a virtual-storage computer
L. A. Belady · IBM Systems Journal · 1966 · 1.7K citations
Program restructuring for virtual memory
D. J. Hatfield, J. Gerald · IBM Systems Journal · 1971 · 167 citations
Improving locality by critical working sets
Domenico Ferrari · Communications of the ACM · 1974 · 117 citations · Full text
Optimal Sequential Partitions of Graphs
Brian W. Kernighan · Journal of the ACM · 1971 · 92 citations · Full text