×

System and method for determining when and what position in cache memory to store data elements utilizing least and last accessed data replacement method

  • US 5,513,336 A
  • Filed: 12/12/1994
  • Issued: 04/30/1996
  • Est. Priority Date: 06/04/1992
  • Status: Expired due to Term
First Claim
Patent Images

1. A cache management system including a cache manager, for monitoring and controlling contents of a cache memory coupled to at least one longer term data storage device, said cache management system comprising:

  • said cache memory including a first cache memory section, for storing data elements awaiting writing to said at least one longer term data storage device, and a second cache memory section for storing data elements which have been written to said at least one longer term data storage device, said data elements stored in said second cache memory section including a last recently used data element and a least recently used data element, said last recently used data element moveable, over time, in said second cache memory section to become said least recently used data element;

    a time indicator, for providing a time indication signal;

    a cache indexer, responsive to said time indication signal, for maintaining a cache index of data elements which are stored in at least said first and second cache memory sections, said cache index of data elements including a time indication associated with each data element indexed in said cache index by said cache indexer; and

    a cache manager for placing data elements into and removing data elements from said first and second cache memory sections, said cache manager responsive to at least one data element stored in said first cache memory section and written to said at least one longer term data storage device, and responsive to said time indication associated with each data element stored in said cache and indexed in said cache index by said cache indexer, for determining an average period of time that elapses between at least one data element being inserted into said second cache memory section as a last recently used data element, and said at least one data element inserted into said second cache memory section as a last recently used data element being removed from said second cache memory section as said least recently used data element, and for determining a period of time that said at least one data element was stored in said first cache memory section, for comparing said average period of time that elapses with said period of time said at least one data element was stored in said second cache memory section, for placing said at least one data element into said second cache memory section as a last recently used data element if said period of time is less than said average period of time that elapses, and for placing said at least one data element into said second cache memory section as a least recently used data element if said period of time is greater than said average period of time that elapses.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×