Method and apparatus for enabling a compiler to reduce cache misses by performing pre-fetches in the event of context switch
Abstract
A method for reducing cache memory misses in a computer that performs context switches between at least a first context and a second context. A First logic identifies a first prefetch region in a first memory element and a second logic identifies critical memory references within the first prefetch region during compilation of a computer program. The critical memory references within the first prefetch region correspond to data in cache memory if a context switch occurs from a process or thread associated with the second context to a process or thread associated with the first context during program execution. Third logic prefetches data associated with the identified critical memory references and stores the prefetched data in cache memory prior to a process or thread associated with the first context being resumed when a switch from the second context to the first context occurs during program execution.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 41.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
An apparatus for reducing cache memory misses in a computer that performs context switches between at least a first context and a second context, the apparatus comprising: a first logic, the first logic being configured to identify at least a first prefetch region in a first memory element during compilation of a computer program by the computer; a second logic, the second logic being configured to identify critical memory references within the first prefetch region during compilation, the critical memory references within the first prefetch region corresponding to data that may be needed in c
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 41 total)
References Cited — Backward Prior Art (16)
Non-Patent Literature (5)
- Title: Automatic Compiler Techniques for Thread Coarsening for Multithreaded Architectures, author:Zoppetti et al, ACM, 2000.*
- Title: Instruction Prefetching of Systems Codes with layout optimized for reduced cache misses, author: Xia et al, 1996, ACM.*
- Title: Reducing Multithreaded frame cache miss ratio by prefetching and working frame set scheduling, author: Choi et al, IEEE, 1996.
- Title: The effect of context switches on cache performance, Mogul et al, ACM, 1991.*
- Title: The Performing Implications of Thread Management Alternatives for Shared-Memory Multiprocessors, author: Anderson et al, ACM, 1989.*