Patent ID: 6842824
Filing Date: 2005-01-11
Classification: G06F

Abstract:
1. A computer-readable record medium that stores a cache control program performed on data input to or output from a predetermined storage device, the program causing a computer to perform steps comprising: judging in response to a request to read data from the predetermined storage device whether transferred data specified by the data read request and data following the transferred data have been stored in a cache area including a plurality of blocks; reading the transferred data from the cache area to a predetermined storage area in the case of the transferred data being in the cache area; preferentially selecting a block of high rank in order of reuse as a storage block for nonstored data, which is not stored in the cache area, of the transferred data and the data following the transferred data from among the plurality of blocks ranked according to order of reuse; transferring the nonstored data in the storage device to the storage block in order and reading the transferred data included in the nonstored data into the predetermined storage area; and judging whether there is continuity between the transferred data and data transferred just before the transferred data and, in the case of the transferred data and the data transferred just before the transferred data being a continuous series of pieces of data, lowering the rank in order of reuse of a block which stores a predetermined number of pieces of data from the head of the series of pieces of data, wherein in response to a request to write data into the storage device, data to be written specified by the data write request is stored once in the cache area and then is written into the storage device; and whether there is continuity between the written data written into the storage device and data written just before the written data is judged and, in the case of the written data and the data written just before the written data being a continuous series of pieces of data, the rank in order of reuse of a block which stores the predetermined number of pieces of data from the head of the series of pieces of data is lowered.