# US 2015/0178212 A1 · Information processing apparatus, method of controlling the same and computer-readable storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2015/0178212 A1
- Document ID: US20150178212A1
- Status: Published application
- Kind: A1
- Application number: 14/570,306
- Filed: 2014-12-15
- Published: 2015-06-25
- Earliest claimed: 2013-12-19
- Assignees: Canon Kabushiki Kaisha
- Applicants: Canon Kabushiki Kaisha
- Inventors: Akihiro Takamura
- Web page: https://patentgrep.com/patent/US20150178212A1

## CPC

- G06F 12/0862: with prefetch
- G06F 12/0802: Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F 2212/6028: Prefetching based on hints or prefetch instructions
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

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.

## Claims

### Claim 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.

### Claim 2 (depends on 1)

The information processing apparatus according to claim 1, wherein
the control unit,
in the 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,
in a case where the reference address is for a fetch, repeats the determination by the determination unit until it is possible to read in the data from the entry.

### Claim 3 (depends on 1)

The information processing apparatus according to claim 1, wherein
the entry further includes a data valid bit for indicating that data stored in the entry is valid, and
the control unit, for an entry for which the value of the reference count becomes zero, sets the tag bit to the reference address, sets the data valid bit to zero, and sets the value of the reference count to one.

### Claim 4 (depends on 1)

The information processing apparatus according to claim 1, wherein
the control unit issues a read request to the memory with the reference address, reads out data from the memory, stores the data into the entry corresponding to the reference address, and sets the data valid bit of the entry to one.

### Claim 5 (depends on 3)

The information processing apparatus according to claim 3, wherein
the entry further includes an entry valid bit for indicating that the entry is valid, and
the determination unit, in a case where the entry valid bit indicates that the entry is valid, and the reference address and the tag bit of a corresponding entry are equivalent, determines that it is possible to read in the data from a corresponding entry of the cache storage apparatus.

### Claim 6 (depends on 1)

The information processing apparatus according to claim 1, wherein
the cache storage apparatus is comprised of a plurality of Ways that each comprise a plurality of entries, and
the determination by the determination unit and the control by the control unit is performed for each of the plurality of Ways.

### Claim 7 (depends on 1)

The information processing apparatus according to claim 1, further comprising:
a first generation unit configured to generate an address for a prefetch; and
a second generation unit configured to generate an address for a fetch; wherein
the reference address is generated by the first generation unit or the second generation unit.

### Claim 8 (depends on 7)

The information processing apparatus according to claim 7, wherein
the first generation unit is connected to the cache storage apparatus via a cache prefetch apparatus for prefetching data to the cache storage apparatus, and
the second generation unit is connected to the cache storage apparatus via a cache fetch apparatus for fetching data on the cache storage apparatus, and
the second generation unit comprises a FIFO buffer, and
the first generation unit is further connected to the second generation unit, and
the second generation unit, in a case where the FIFO buffer is full, stops the generation of an address as the reference address.

### Claim 9 (depends on 1)

The information processing apparatus according to claim 1, wherein,
in a case where a plurality of prefetches and a plurality of fetches are performed for the same entry in simultaneous concurrent operation, the control unit calculates a difference, between a total number of prefetches for which data could be read in from the entry and a total number of fetches for which data could be read in from the entry, in the reference count of the entry.

### Claim 10

A method of controlling an information processing apparatus that controls fetching and prefetching with respect to a cache storage apparatus for data in a memory, wherein
the cache storage apparatus has, 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,
the method comprising:
a determination step of determining, 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 step of controlling at least one of a prefetch and a fetch based on a result of the determination in the determination step, wherein
the control step comprises:
in a case where the result of the determination in the determination step is that it is possible to read in the data from the entry,
increasing, in a case where the reference address is for a prefetch, a value of the reference count of the entry,
decreasing, 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 in the determination step is that it is not possible to read in the data from the entry,
prohibiting, 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.

### Claim 11

A non-transitory computer readable storage medium storing a program for causing a computer to function as an information processing apparatus that controls fetching and prefetching with respect to a cache storage apparatus for data in a memory, wherein the cache storage apparatus has, 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, and wherein
the program causes the computer to function as
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, and 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.
