×

Method for operating a cache memory using a LRU table and access flags

  • US 5,615,353 A
  • Filed: 07/08/1996
  • Issued: 03/25/1997
  • Est. Priority Date: 03/05/1991
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for operating a cache memory system having a mass storage device and a cache memory, said method comprising the steps of:

  • storing in said cache memory selected data from said mass storage device;

    maintaining a Least Recently Used (LRU) table indicating the relative recency of use of each data stored in said cache memory;

    moving a selected entry to the top of said LRU table for each new block of data stored in said cache memory;

    setting a flag for each entry in said LRU table when data stored in said cache memory associated with said LRU entry has been accessed;

    when cache space is determined to be needed corresponding to an area of mass storage which is not currently assigned in said cache memory;

    examining the entry at the LRU position in said LRU table;

    determining if, for said LRU position, said flag has been set;

    if said flag has been set, unsetting said flag and placing said entry at the top of said LRU table;

    if said flag has not been set, decaching said data in said cache memory associated with said LRU entry, reusing said LRU entry for storing said current data not stored in said cache memory, and placing said LRU entry at the MRU position of said LRU table; and

    examining the LRU entry resulting from moving the flagged entry to the MRU position.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×