System and method for cache management
Abstract
Aspects of the invention relate to improvements to the Least Recently Used (LRU) cache replacement method. Weighted LRU (WLRU) and Compact Weighted LRU (CWLRU) are CPU cache replacement methods that have superior hit rates to LRU replacement for programs with poor locality, such as network protocols and applications. WLRU assigns weights to cache lines and makes replacement decision by comparing weights. When a cache line is first brought into the cache, it is assigned an initial weight. Weights of cache lines in WLRU increase when hit and decrease when not hit. Weights in WLRU also have upper limits, and the weight of a cache line never increases beyond the upper limit. CWLRU is a more space-efficient implementation of WLRU. Compared to WLRU, CWLRU uses fewer bits per cache line to store the weight.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 5.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method of cache management, comprising: assigning a weight to each cache line of a set of cache lines, wherein the weights are assigned to each cache line independently of the number of cache lines of the set; adjusting the weight of each of the cache lines of the set in response to a cache hit or a cache miss in the set; and replacing the cache line in the set having the lowest weight when one of the cache lines is to be replaced in the set.
- Claim 2Depends on #1
The method of claim 1 , wherein the adjusting further comprises, when a cache line in the set of cache lines is hit, incrementing the weight of the hit cache line according to an increment function and decrementing the weight of each cache line in set of cache lines other than the hit cache line according to a decrement function.
- Claim 3Depends on #2
The method of claim 2 , wherein the adjusting further compris
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (10)
Non-Patent Literature (5)
- A. J. Smith, Catche Memories, ACM Computer Survey, vol. 14, No. 3, Sep. 1982, Berekly, California.
- Bonchi et al, "Data Mining for Intelligent Web Caching", pp. 599-603.
- D. Lee, J. Choi, J. H. Kim, S. H. Noh, S. L. Min, Y. Cho, C. S. Kim, LRFU: A Spectrum of Policies that Subsumes the Least Recently Used and Least Frequently Used Policies, IEEE Transactions on Computers, vol. 50, No. 12, p. 1352-1361, Dec. 2001.
- Elizabeth J. O'Neil, Partick E. O'Neil, Gerhard Weikum, The LRU-K Page Replacement Algorithm for Database Disk Buffering, Proceedings of the 1993 ACM SIGMOD International Conference on Management of Data, p. 297-306, May 25-28, 1993, Washington, D.C., United States.
- John T. Robinson, Murthy V. Devarakonda, Data Cache Management Using Frequency-Based Replacement, Proceedings of the 1990 ACM SIGMETRICS conference on Measurement and modeling of computer systems, 1990, New York.