Method and apparatus for preemptive cache write-back
Abstract
A microprocessor preemptively write-backs dirty entries of an internal cache. Each cache entry is checked once each predetermined time period to determine if the cache entry is dirty. If dirty, a write history is checked to determine if the cache entry is stale. If stale, the cache entry in preemptively written back to main memory and then marked as clean. The write history includes a count of the number of consecutive predetermined time periods during which there is no write to the cache entry. The cache entry is stale if the count exceeds a predetermined number. For each check of the write history the nonwrite count is incremented if the cache entry has been written to during the prior cycle and decremented if not. Alternatively, the nonwrite count is set to zero if the cache entry has been written to. The dirty cache entry may be marked as clean upon copying to the write-back buffer or, alternatively, when the write-back buffer writes the dirty cache entry to the main memory. If a write address matches the address of any write-back buffer entry, the matching entry is flushed from the write-back buffer.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 104.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of preemptive cache write-back in a microprocessor having an internal cache comprising the steps of: maintaining a write history for each cache entry; checking each cache entry once each predetermined time period to determine if the cache entry is dirty indicating the cache entry has been written to since a last write of the cache entry to main memory; if a cache entry has been determined to be dirty, checking the write history of the dirty cache entry to determine if the dirty cache entry is stale indicating it is unlikely to be written to in the near future; if the dirty cache
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 104 total)
References Cited — Backward Prior Art (10)
Non-Patent Literature (4)
- "Improved Data Cache Reload Performance," IBM Technical Disclosure Bulletin, vol. 32, No. 4B, pp. 244-245, Sep. 1989.
- D. Bazlen, J. Hajdu and G. Knauft, "Preventive Cast-Out Operations in Cache Hierarchies," IBM Technical Disclosure Bulletin, vol. 23, No. 12, pp. 5426-5427, May 1981.
- D. Bazlen, J. Hajdu and G. Knauft, Preventive Cast Out Operations in Cache Hierarchies, IBM Technical Disclosure Bulletin, vol. 23, No. 12, pp. 5426 5427, May 1981.
- Improved Data Cache Reload Performance, IBM Technical Disclosure Bulletin, vol. 32, No. 4B, pp. 244 245, Sep. 1989.