Data caching method
AssigneeInternational Business Machines Corporation
InventorsChristian Habermann, Martin Recktenwald, Hans-Werner Tast, Ralf Winkelmann
Life of this patent
Estimating the term…
Abstract
Data caching for use in a computer system including a lower cache memory and a higher cache memory. The higher cache memory receives a fetch request. It is then determined by the higher cache memory the state of the entry to be replaced next. If the state of the entry to be replaced next indicates that the entry is exclusively owned or modified, the state of the entry to be replaced next is changed such that a following cache access is processed at a higher speed compared to an access processed if the state would stay unchanged.
Claims12
A computer system comprising:
- a cache memory hierarchy comprising at least one lower cache memory coupled to a higher cache memory, wherein the computer system is configured to perform a method, said method comprising:
- receiving by the higher cache memory a fetch request to provide a first line of data;
- based on receiving the fetch request, determining by the higher cache memory a state of an entry to be replaced next, the entry being for a second line of data different from the requested first line of data;
- and
- based on the state of the entry to be replaced next indicating that the entry is exclusively owned or modified, initiating, by the higher cache memory, changing of the state of the entry to be replaced next, wherein based on a subsequent request received by the higher cache memory to provide a third line of data, which is to replace the second line of data in the higher cache memory, an access to replace the second line of data with the third line of data in the higher cache memory will be processed at higher speed compared to an access to replace the second line of data with the third line of data in the higher cache memory responsive to the state of the entry for the second line of data staying unchanged.
A computer program product for caching data in a computer system comprising a buffer memory comprising at least one lower cache memory coupled to a higher cache memory, said computer program product comprising:
- a computer readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising:
- receiving by the higher cache memory a fetch request to provide a first line of data;
- based on receiving the fetch request, determining by the higher cache memory a state of an entry to be replaced next, the entry being for a second line of data different from the requested first line of data;
- and
- based on the state of the entry to be replaced next indicating that the entry is exclusively owned or modified, initiating, by the higher cache memory, changing of the state of the entry to be replaced next, wherein based on a subsequent request received by the higher cache memory to provide a third line of data, which is to replace the second line of data in the higher cache memory, an access to replace the second line of data with the third line of data in the higher cache memory will be processed at higher speed compared to an access to replace the second line of data with the third line of data in the higher cache memory responsive to the state of the entry for the second line of data staying unchanged.
Dependencies are inferred from the claim text.