×

Dynamically tuning the size of a cache stored in a shared memory

  • US 8,788,783 B1
  • Filed: 06/18/2010
  • Issued: 07/22/2014
  • Est. Priority Date: 06/18/2010
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method for tuning the size of a dynamically-sized cache in a shared memory, the method comprising:

  • determining a plurality of cumulative hit ratios for the dynamically-sized cache, where each cumulative hit ratio is the ratio of a first number of cache reads of data that is stored in the dynamically-sized cache (cache hits) to a sum of the first number and a second number of cache reads of data that is not stored in the dynamically-sized cache (cache misses), wherein at least one cumulative hit ratio of the plurality of cumulative hit ratios is determined when an entry in the dynamically-sized cache is filled in response to a cache miss;

    computing a slope as a first order derivative of each cumulative hit ratio of the dynamically-sized cache with respect to a size of the dynamically-sized cache associated with each cumulative hit ratio;

    computing, based on the slope, a maximum value that limits the size of the dynamically-sized cache in the shared memory; and

    adjusting the size of the dynamically-sized cache in the shared memory based on the maximum value.

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