Unlock instant, AI-driven research and patent intelligence for your innovation.

Processor and method for using an instruction hint to prevent hardware prefetch from using certain memory accesses in prefetch calculations

a technology of instruction hint and instruction, applied in the field of microprocessors, can solve problems such as prefetch hardware, useful blocks to be flushed from caches, and patterns that do not lend themselves to efficient hardware prefetching

Active Publication Date: 2012-04-10
ADVANCED MICRO DEVICES INC
View PDF12 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

This approach effectively reduces cache pollution and improves memory access efficiency by preventing the prefetching of unnecessary data, ensuring that valuable cache space is utilized for actually needed data.

Problems solved by technology

However, some access patterns may cause the prefetch hardware to prefetch memory blocks that will not be used.
Since the caches are limited in size, the unused blocks may cause useful blocks to be flushed from the caches.
One example, of a pattern that does not lend itself to efficient hardware prefetching is a pattern created by “walking” through the elements of a linked list, and reading some of the data in the objects in the linked list.
Accordingly, in this case, valuable cache space may be wasted, and the useful data may be evicted.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Processor and method for using an instruction hint to prevent hardware prefetch from using certain memory accesses in prefetch calculations
  • Processor and method for using an instruction hint to prevent hardware prefetch from using certain memory accesses in prefetch calculations
  • Processor and method for using an instruction hint to prevent hardware prefetch from using certain memory accesses in prefetch calculations

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0013]Turning now to FIG. 1, a block diagram of one embodiment of a processor 10 is shown. Other embodiments are possible and contemplated. As shown in FIG. 1, processor 10 includes a prefetch / predecode unit 12, a branch prediction unit 14, an instruction cache 16, an instruction alignment unit 18, decode units 20, reservation stations 22, functional units 24, a load / store unit 26, a data cache 28, a register file 30, a reorder buffer 32, an MROM unit 34, a bus interface unit 37, and an L2 cache 39. It noted that each of decode units 20, reservation stations 22, and functional units 24 may include any number of independent units. For example, in a superscalar processor, there may be multiple pipelines each having respective decode units, reservation stations and functional units. However, in the illustrated embodiment, a single block is shown for simplicity.

[0014]Prefetch / predecode unit 12 is coupled to receive instructions from bus interface unit 37, and is further coupled to instr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A microprocessor includes a cache memory, a prefetch unit, and detection logic. The prefetch unit may be configured to monitor memory accesses that miss in the cache and to determine whether to prefetch one or more blocks of memory from a system memory based upon previous memory accesses. The prefetch unit may be further configured to use addresses of the memory accesses that miss to calculate each next memory block to prefetch. The detection logic may be configured to provide a notification to the prefetch unit in response to detecting a memory access instruction including a particular hint. In response to receiving the notification, the prefetch unit may be configured to inhibit using an address associated with the memory access instruction including the particular hint, when calculating subsequent memory blocks to prefetch.

Description

BACKGROUND OF THE INVENTION[0001]1. Field of the Invention[0002]This invention relates to microprocessors and, more particularly, hardware prefetching.[0003]2. Description of the Related Art[0004]Modern microprocessors attempt to detect patterns in memory accesses and to prefetch memory locations into the processor caches in an effort to reduce latencies associated with memory accesses. However, some access patterns may cause the prefetch hardware to prefetch memory blocks that will not be used. Since the caches are limited in size, the unused blocks may cause useful blocks to be flushed from the caches.[0005]One example, of a pattern that does not lend itself to efficient hardware prefetching is a pattern created by “walking” through the elements of a linked list, and reading some of the data in the objects in the linked list. If reading the data in each object reads in enough cache lines to trigger the hardware prefetcher, it is unlikely that the next sequential data fetched is li...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(United States)
IPC IPC(8): G06F12/08
CPCG06F12/0862G06F2212/6028
Inventor DENEAU, THOMAS M.
Owner ADVANCED MICRO DEVICES INC