×

Real-time data cache flushing threshold adjustment in a server computer

  • US 5,892,937 A
  • Filed: 11/27/1996
  • Issued: 04/06/1999
  • Est. Priority Date: 06/04/1993
  • Status: Expired due to Term
First Claim
Patent Images

1. A method of operating a data cache, comprising the steps of:

  • maintaining clean and dirty data buffers in the data cache, clean buffers containing only data received from a backing store containing a copy of the data, dirty buffers containing data received from a data source other than the backing store and intended to be written to the backing store but not yet so written;

    monitoring the ratio of clean buffers to the sum of clean and dirty buffers in the data cache;

    maintaining a data cache flushing threshold Rc representing a minimum desirable ratio of clean buffers to the sum of clean and dirty buffers;

    flushing dirty buffers from the data cache to the backing store in response to the condition that the ratio of clean buffers to the sum of clean and dirty buffers in the data cache is less than Rc ;

    periodically monitoring the following statistics pertaining to operation of the data cache;

    (a) a flushing rate representing the rate at which dirty buffers are being flushed from the data cache to the backing store, and (b) the numbers of read operations and write operations received by the data cache in the most recent monitoring period;

    calculating an average read rate Nr-avg and an average write rate Nw-avg from the monitored numbers of read and write operations;

    determining whether the flushing rate is exhibiting saturation behavior;

    for the following sets of conditions, performing the corresponding steps;

    if the flushing rate has changed over a first number of preceding periods but is not exhibiting saturation behavior, then setting Rc to a new value equal to the ratio of Nr-avg to the sum of Nr-avg and Nw-avg ;

    if the flushing rate is exhibiting saturation behavior, then setting Rc to a new value equal to either (i) the ratio of Nr-avg to the sum of Nr-avg and Nw-avg, if that ratio is less than Rc, or (ii) 80% of Rc otherwise; and

    if the flushing rate has not changed over the first number of preceding periods, then refraining from changing the value of Rc.

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