Methods and apparatus for reducing memory latency in a software application
Abstract
Methods and apparatus for reducing memory latency in a software application are disclosed. A disclosed system uses one or more helper threads to prefetch variables for a main thread to reduce performance bottlenecks due to memory latency and/or a cache miss. A performance analysis tool is used to profile the software application's resource usage and identifies areas in the software application experiencing performance bottlenecks. Compiler-runtime instructions are generated into the software application to create and manage the helper thread. The helper thread prefetches data in the identified areas of the software application experiencing performance bottlenecks. A counting mechanism is inserted into the helper thread and a counting mechanism is inserted into the main thread to coordinate the execution of the helper thread with the main thread and to help ensure the prefetched data is not removed from the cache before the main thread is able to take advantage of the prefetched data.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 18.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of reducing memory latency in a software application, the method comprising: analyzing the software application and determining a first area of software instructions that encounters a cache miss; generating a helper thread; generating a first set of compiler-runtime instructions and inserting the first set of compiler-runtime instructions in a main thread; generating a second set of compiler-runtime instructions and inserting the second set of compiler-runtime instructions in the helper thread; and inserting a counting mechanism in the main thread and the helper thread, the counting m
- Claim 2Depends on #1
A method as defined in claim 1 , further comprising analyzing the software application and determining a second area of software instructions which encounters a
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 (6)
Non-Patent Literature (5)
- D. Kim and D. Yeung. Design and Evaluation of Compiler Algorithms for Pre-Exectution. In ASPLOS-X Conference, pp. 159-170, Oct. 2002.
- Dorai et al., Optimizing SMT Processors for High Single-Thread Performance, Journal of Instruction Level Paralelism 5 (2003), Apr. 2003, pp. 1-35.
- H. Wang, P. Wange, R. Weldon, S. Ettinger, H. Saito, M. Girkar, S. Liao, J. Shen. Speculative Precompuation: Exploring the Use of Multithreading for Latency. In Intel Technology Journal Q1, 2002. vol. 6 Issue 1.
- Intel Corporation. "Intel delivers Hyper-Threading Technology with Pentium 4 Processor 3 Ghz milestone." http://www.intel.com/pressroom/archive/release/20021114comp.htm. As printed on Jan. 12, 2003.
- International Search Report for International application No. PCT/US2004/032212 published with publication No. WO 2005/033926 A3, Apr. 14, 2005.