Dirty cache line write back policy based on stack size trend information
Abstract
Methods and apparatuses are disclosed for managing memory write back. In some embodiments, the method may include examining current and future instructions operating on a stack that exists in memory, determining stack trend information from the instructions, and utilizing the trend information to reduce data traffic between various levels of the memory. As stacked data are written to a cache line in a first level of memory, if future instructions indicate that additional cache lines are required for subsequent write operations within the stack, then the cache line may be written back to a second level of memory. If however, the future instructions indicate that no additional cache lines are required for subsequent write operations within the stack, then the first level of memory may avoid writing back the cache line and also may keep it marked as dirty.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 8.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method, comprising: issuing a write request to a cache memory, wherein the cache memory includes multiple cache lines; determining whether the write request refers to a predetermined word within a dirty cache line; and determining whether to write the dirty cache line to main memory based on whether the size of a stack is increasing or decreasing.
- Claim 2Depends on #1
The method of claim 1 , further comprising determining whether the write request will be to the end of a dirty cache line.
- Claim 3Depends on #2
The method of claim 2 , wherein the stack size is increasing and the dirty cache line is written to a main memory.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (8 of 8 total)
References Cited — Backward Prior Art (18)
Non-Patent Literature (5)
- Embedded JAVA, Vincent Perrier, Aug. 15, 2001, (3 page); Online http://www.onjava.com/pub/a/onjava/synd/2001/08/15/embedded.html.
- J. Dundas, et al.: "Improving Data Cache Performance by Pre-Executing Instructions Under a Cache Miss", Proceedings of the 1997 International Conference on Supercomputing, Vienna, Jul. 7-11, 1997, Proceedings of the International Conference on Supercomputing, New York, ACM, US, vol. Conf. 11, Jul. 7
- Kozierok, Charles M., "The Memory Controller", Apr. 17, 2001, The PC Guide, Site Version 2.2.0, <http://www.pcguide.com/ref/ram/timingController-c.html> accessed on Mar. 16, 2008.
- Kozierok, Charles M., "The Memory Controller", Apr. 17, 2001, The PC Guide, Site Version 2.2.0, accessed on Mar. 16, 2008.
- S.S. Pinter, et al.: "Tango: A Hardware-Based Data Prefetching Technique for Superscalar Processors" Proceedings of the 29th. Annual IEEE/ACM International Symposium on Microarchitecture, Micro-29. Paris, Dec. 25, 1996, Proceedings of the Annual IEEE/ACM International Symposium on Microarchitecture,