Method and system for bypassing cache levels when casting...

Electrical computers and digital processing systems: memory – Storage accessing and control – Hierarchical memories

Reexamination Certificate

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

C711S122000, C711S128000, C711S133000

Reexamination Certificate

active

06356980

ABSTRACT:

BACKGROUND OF THE INVENTION
1. Technical Field
The present invention generally relates to computer systems, and more specifically to an improved method of deallocating cache entries from an upper level cache used by a processor core of a computer system. In particular, the present invention makes more efficient use of a cache hierarchy by managing cache entries that are written to lower levels of cache after they have been modified.
2. Description of Related Art
The basic structure of a conventional computer system includes one or more processing units connected to various input/output devices for the user interface (such as a display monitor, keyboard and graphical pointing device), a permanent memory device (such as a hard disk, or a floppy diskette) for storing the computer's operating system and user programs, and a temporary memory device (such as random access memory or RAM) that is used by the processor(s) in carrying out program instructions. The evolution of computer processor architectures has transitioned from the now widely-accepted reduced instruction set computing (RISC) configurations, to so-called superscalar computer architectures, wherein multiple and concurrently operable execution units within the processor are integrated through a plurality of registers and control mechanisms.
The objective of superscalar architecture is to employ parallelism to maximize or substantially increase the number of program instructions (or “micro-operations”) simultaneously processed by the multiple execution units during each interval of time (processor cycle), while ensuring that the order of instruction execution as defined by the programmer is reflected in the output. For example, the control mechanism must manage dependencies among the data being concurrently processed by the multiple execution units, and the control mechanism must ensure the integrity of data that may be operated on by multiple processes on multiple processors and potentially contained in multiple cache units. It is desirable to satisfy these objectives consistent with the further commercial objectives of increasing processing throughput, minimizing electronic device area and reducing complexity.
Both multiprocessor and uniprocessor systems usually use multi-level cache memories where typically each higher level is smaller and has a shorter access time. The cache accessed by the processor, and typically contained within the processor component of present systems, is typically the smallest cache. As such, the cache entries available at the highest level cache are often being reallocated. This is due to requests for new data and a need for space to store that data within the higher levels of cache memory. As new reads are performed up the levels of cache, locations must be deallocated or “freed” in order to make room for the new data. This is known as cache location “victimization” and the selected target to deallocate is known as the “victim”.
If a cache entry is being deallocated and values within the entry have been modified, the cache entry is considered “dirty” and must not only be deallocated, but must be written or “flushed” to the lower levels in the to memory hierarchy in order to maintain coherency. In a multiprocessor system, the cache must not only be coherent with the lower levels, but different cache entries overlapping the same address may be loaded in to more than one processor's high level cache. This raises the complexity of a system that maintains the coherence of the entire memory hierarchy and impacts the design and operation of every level of the memory hierarchy.
A typical cache memory hierarchy contains a least-recently-used array (LRU). This array allows the cache controller to determine which entry to deallocate when a request for a new allocation is made. It has been found in the past that an efficient method for selecting the deallocated target is the deallocate the least recently used entry in the cache, based on the assumption that it has the lowest probability of being required again before another entry that has been more recently used. The deallocated entry must be written to a lower level of the memory hierarchy if it is “dirty”. A typical cache hierarchy will then place this entry in the next lower level of cache memory and flag it as the most recently used entry (since it has just been accessed). If the new entry for which space is being allocated in the higher level has already been read from the next lower level cache (a desirable sequence since the read allocation is memory that is needed immediately or at least predictably soon by the core), then the deallocated entry after it has been flushed will have a position that is more recently used than a new read allocation. Under certain circumstances this may not be a desirable condition. Infrequently used memory locations may end up being preserved in intermediate levels of cache at the expense of deallocating and reallocating entries that are more frequently used.
In light of the foregoing, it would be desirable to provide a method of speeding up core processing by improving cache deallocation mechanisms, particularly with respect to the interaction of the mechanism with the cache hierarchy. It would be further advantageous if the method allowed a programmer to optimize various features of the deallocation mechanism.
SUMMARY OF THE INVENTION
It is therefore one object of the present invention to provide an improved processor for a computer system, having one or more caches in a memory hierarchy.
It is another object of the present invention to provide an computer system using such a processor, which also has one or more caches in the memory hierarchy.
It is yet another object of the present invention to provide a computer system and processor that make more efficient use of a cache hierarchy.
The foregoing objects are achieved in a method and apparatus for managing a multi-level memory hierarchy of a computer system, implementing the steps of receiving an allocation request in a higher level cache, selecting a target cache line, determining that the target must be written to a lower level of the memory hierarchy and based on that determination, skipping one or more levels of cache, writing the contents of the target to a lower level of cache that is not the next lower level of cache. The method and apparatus may further skip levels based on a value programmed into a register. The method and apparatus may perform the skipping operation only if a pattern of loads and stores is or is not detected. The skipping operation may be provided by a special instruction or instructions. The skipping operation may be performed when the next lower level cache is busy, when the next lower level has no available buffers, or when there is an address conflict between the target and an entry in the next lower level cache.
The above as well as additional objectives, features, and advantages of the present invention will become apparent in the following detailed written description.


REFERENCES:
patent: 5493668 (1996-02-01), Elko et al.
patent: 5572700 (1996-11-01), Hays et al.
patent: 5625793 (1997-04-01), Mirza
patent: 5642494 (1997-06-01), Wang et al.
patent: 5715424 (1998-02-01), Jesionowski et al.

LandOfFree

Say what you really think

Search LandOfFree.com for the USA inventors and patents. Rate them and share your experience with other people.

Rating

Method and system for bypassing cache levels when casting... does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Method and system for bypassing cache levels when casting..., we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Method and system for bypassing cache levels when casting... will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-2869755

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.