Publication | Closed Access
Analysis of cache replacement-algorithms
130
Citations
0
References
1985
Year
EngineeringCache SimulatorComputer ArchitectureComputational ComplexityEmpirical AlgorithmicsOperations ResearchApproximate ComputingSystems EngineeringParallel ComputingReplacement DecisionsCombinatorial OptimizationWeb CacheComputer EngineeringCachingComputer ScienceProgram OptimizationExternal-memory AlgorithmParallel ProgrammingCache Replacement-algorithmsSystem SoftwareLru Cache
This thesis describes a model used to analyze the replacement decisions made by LRU and OPT (Least-Recently-Used and an optimal replacement-algorithm). The model identifies a set of lines in the LRU cache that are dead, that is, lines that must leave the cache before they can be rereferenced. The model shows that the majority of the cache misses that OPT avoids over LRU come from the most-recently-discarded lines of the LRU cache. Also shown is that a very small set of lines account for the majority of the misses that OPT avoids over LRU. OPT requires perfect knowledge of the future and is not realizable, but our results lead to three realizable near-optimal replacement algorithms. These new algorithms try to duplicate the replacement decisions made by OPT. Simulation results, using a trace-tape and cache simulator, show that these new algorithms achieve up to eight percent fewer misses than LRU and obtain about 20 percent of the miss reduction that OPT obtains. Also presented in the thesis are two new trace-tape reduction techniques. Simulation results show that reductions in trace-tape length of two orders of magnitude are possible with little or no simulation error introduced.