主权项 |
1. An information processing device comprising:
a first storage unit that stores data; a second storage unit that stores the data read from the first storage unit; and a processor that executes a procedure, the procedure including:
detecting that a predetermined number of sequential accesses each having read data of a same total size have occurred consecutively, each of the sequential access being an access for reading data by sequentially accessing consecutive areas or inconsecutive areas within a specified range of the first storage unit;when it is detected that the predetermined number of sequential accesses each having read data of the same total size have occurred consecutively, calculating, based on the same total size, a size of prefetch data read by a prefetch for prereading data stored consecutively in the first storage unit and for storing the read data in the second storage unit;performing the prefetch based on the calculated size of the prefetch data,measuring a read rate at which data is read from the second storage unit by the sequential access; andmeasuring a prefetch rate at which data is read by the prefetch, whereinthe calculating makes a comparison between the read rate and the prefetch rate, and calculates the size of the prefetch data according to a result of the comparison. |