摘要 |
A cache storage apparatus has an entry including a tag bit for managing an address in the memory of the data, the data, and a reference count for managing a number of times that the data is referenced. If it is possible to read in the data from the entry, in a case where the reference address is for a prefetch, a value of the reference count of the entry is increased, and in a case where the reference address is for a fetch, the value of the reference count of the entry is decreased. If it is not possible to read in the data from the entry, in a case where the reference address is for a prefetch, a replacement of prefetched data in the entry is prohibited until the value of the reference count of the entry becomes zero. |
主权项 |
1. An information processing apparatus that controls fetching and prefetching with respect to a cache storage apparatus for data in a memory, comprises
a cache storage apparatus having, as an entry for managing data that is a cache target, an entry including a tag bit for managing an address in the memory of the data, the data, and a reference count for managing a number of times that the data is referenced; a determination unit configured to determine, based on a reference address, whether or not it is possible to read in data from an entry corresponding to the cache storage apparatus; and a control unit configured to control at least one of a prefetch and a fetch based on a result of the determination by the determination unit, wherein the control unit, in a case where the result of the determination by the determination unit is that it is possible to read in the data from the entry,
increases, in a case where the reference address is for a prefetch, a value of the reference count of the entry,decreases, in a case where the reference address is for a fetch, the value of the reference count of the entry, and in a case where the result of the determination by the determination unit is that it is not possible to read in the data from the entry,
prohibits, in a case where the reference address is for a prefetch, a replacement of prefetched data in the entry until the value of the reference count of the entry becomes zero. |