×

Method of operating a cache memory including determining desirability of cache ahead or cache behind based on a number of available I/O operations

  • US 5,325,509 A
  • Filed: 06/21/1993
  • Issued: 06/28/1994
  • Est. Priority Date: 03/05/1991
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for operating a cache memory system serving a host computer, said cache memory system including a mass storage device and a cache memory having a plurality of logical blocks, each logical block having a beginning and an end, and each logical block containing one or more sectors, said method comprising the steps of:

  • providing a first logical block of said cache memory for containing data accessed by said host; and

    performing a cache ahead operation comprising the steps of;

    determining that there is no second logical block of said cache memory which contains data that is stored at one or more locations within said mass storage device adjacent a first side of data stored in said first logical block of said cache memory, said first side being selected as a first one of the beginning and the end of data stored in said first logical block;

    determining a first distance measured in sectors between a first side of the data accessed by said host which is stored within said cache memory and a first side of said first logical block of said cache memory, said first side of said first logical block being selected as one of the beginning and the end of said first logical block;

    based on the size of the current host I/O operation, measured in sectors, determining the number of sequential host I/O operations required to transfer to said host computer data located within said cache memory between said data accessed by said host and said first side of said first logical block;

    determining if said number of host I/O operations required is less than a first preselected number; and

    if said number of host I/O operations required is less than said first preselected number, copying into a second logical block of said cache memory data which is stored at one or more locations within said mass storage device adjacent data corresponding to data stored at said first side of said first logical block of said cache memory.

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