Method for reducing the frequency of cache misses in a computer
Abstract
A score is computed of how many cache misses occur for the execution of each of a number of blocks. The score is used as a heuristic in a local search in which an original selection is iteratively replaced each time by a selection that differs from the original selection only by the movement of a single block and that has a lower number of cache misses for the sample of execution than the original selection. Thus a selection of locations for placing instructions of a program in main memory is found that minimizes the number of cache misses that occur for a sample of a typical execution of the program.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 18.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of selecting memory locations for placing instructions into a main memory, the method comprising obtaining a sample of execution of a program containing the instructions, generating an optimized selection of locations using a local search, the optimized selection producing a minimized number of cache misses when the instructions are placed in the main memory connected to a cache memory according to the optimized selection for the sample of execution, wherein the method comprises: generating an original selection of locations for placing the instructions; computing for each respective
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 18 total)
References Cited — Backward Prior Art (4)
Non-Patent Literature (5)
- "Optimal Code Placement of Embedded Software for Instruction Caches", By Hiroyuki Timiyama et al. Published in the Proceedings of the European Design and Test Conference in Paris on Mar. 11-14, 1996, pp. 96-101.
- IBM Technical Disclosure, "Instruction Placement Method to Improve Cache Behavior", vol. 37, No. 06A, Jun. 1994.*
- McFarling Scott, "Procedure Merging with Instruction Caches", Proceedings of the ACM SIGPLAN, Jun. 1991.*
- McFarling Scott, "Program Optimization for Instruction Caches", ACM, Dec. 1989.
- Proceedings of the ACM Siglan'90 Conference on Programming Language Design and Implementation White Plains, New York, Jun. 20-22, 1990, Profile Guided Code Position ,Karl Pettis, Robert C. Hansen. p. 16-27 see especially p. 17-22, chapter 3-5.