EFFECTIVENESS AND PRIORITIZATION OF PREFETCHES
First Claim
1. A computer-implemented method comprising:
- issuing, by a processor, a prefetch instruction;
fetching, by the processor, based on the prefetch instruction, elements from a cache, wherein the cache comprises a memory or a higher level cache;
storing, by the processor, the elements in a temporary storage and monitoring the elements for accesses by an instruction issued by the processor;
storing, by the processor, a record representing the prefetch instruction;
updating, by the processor, the record with an indicator; and
issuing, by the processor, a new prefetch instruction, wherein the issuing comprises;
comparing, by the processor, the new prefetch instruction to the record;
based on the new prefetch instruction matching the prefetch instruction, assigning, by the processor, the indicator to the new prefetch instruction as a priority value of the new prefetch instruction;
based on the new prefetch instruction not matching the prefetch instruction, assigning, by the processor, a default value to the new prefetch instruction as the priority value of the new prefetch instruction; and
determining, by the processor, whether to execute the new prefetch instruction, based on the priority value of the new prefetch instruction.
1 Assignment
0 Petitions
Accused Products
Abstract
A method, system, and computer program product are provided for prioritizing prefetch instructions. The method includes a processor issuing a prefetch instruction and fetching elements from a cache that can include a memory or a higher level cache. The processor stores the elements in temporary storage and monitors for accesses by an instruction. The processor stores a record representing the prefetch instruction. The processor updates the record with an indicator and issues a new prefetch instruction by comparing the new prefetch instruction to the record, based on the new prefetch instruction matching the prefetch instruction, assigning the indicator to the new prefetch instruction as a priority value, based on the new prefetch instruction not matching the prefetch instruction, assigning a default value to the new prefetch instruction as the priority value, and determining whether to execute the new prefetch instruction, based on the priority value of the new prefetch instruction.
-
Citations
10 Claims
-
1. A computer-implemented method comprising:
-
issuing, by a processor, a prefetch instruction; fetching, by the processor, based on the prefetch instruction, elements from a cache, wherein the cache comprises a memory or a higher level cache; storing, by the processor, the elements in a temporary storage and monitoring the elements for accesses by an instruction issued by the processor; storing, by the processor, a record representing the prefetch instruction; updating, by the processor, the record with an indicator; and issuing, by the processor, a new prefetch instruction, wherein the issuing comprises; comparing, by the processor, the new prefetch instruction to the record; based on the new prefetch instruction matching the prefetch instruction, assigning, by the processor, the indicator to the new prefetch instruction as a priority value of the new prefetch instruction; based on the new prefetch instruction not matching the prefetch instruction, assigning, by the processor, a default value to the new prefetch instruction as the priority value of the new prefetch instruction; and determining, by the processor, whether to execute the new prefetch instruction, based on the priority value of the new prefetch instruction. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
Specification