Method and system for exclusive two-level caching in a chip-multiprocessor
First Claim
1. A method for exclusive two-level caching in a chip-multiprocessor;
- comprising;
relaxing the inclusion requirement in a two-level cache system in order to form an exclusive cache hierarchy;
providing a first tag-state structure in a first level cache of the two-level cache system, the first tag-state structure having state information;
maintaining in a second-level cache of the two-level cache system a duplicate of the first tag-state structure;
extending the state information in the duplicate of the first tag-state structure, but not in the first tag-state structure, to include an owner indication;
providing in the second-level cache a second tag-state structure so that a simultaneous lookup at the duplicate of the first tag-state structure and the second tag-state structure is possible; and
at any given time of a cache line lifetime in the chip-multiprocessor, associating a single owner with the cache line.
5 Assignments
0 Petitions
Accused Products
Abstract
To maximize the effective use of on-chip cache, a method and system for exclusive two-level caching in a chip-multiprocessor are provided. The exclusive two-level caching in accordance with the present invention involves method relaxing the inclusion requirement in a two-level cache system in order to form an exclusive cache hierarchy. Additionally, the exclusive two-level caching involves providing a first-level tag-state structure in a first-level cache of the two-level cache system. The first tag-state structure has state information. The exclusive two-level caching also involves maintaining in a second-level cache of the two-level cache system a duplicate of the first-level tag-state structure and extending the state information in the duplicate of the first tag-state structure, but not in the first-level tag-state structure itself, to include an owner indication. The exclusive two-level caching further involves providing in the second-level cache a second tag-state structure so that a simultaneous lookup at the duplicate of the first tag-state structure and the second tag-state structure is possible. Moreover, the exclusive two-level caching involves associating a single owner with a cache line at any given time of its lifetime in the chip-multiprocessor.
-
Citations
26 Claims
-
1. A method for exclusive two-level caching in a chip-multiprocessor;
- comprising;
relaxing the inclusion requirement in a two-level cache system in order to form an exclusive cache hierarchy;
providing a first tag-state structure in a first level cache of the two-level cache system, the first tag-state structure having state information;
maintaining in a second-level cache of the two-level cache system a duplicate of the first tag-state structure;
extending the state information in the duplicate of the first tag-state structure, but not in the first tag-state structure, to include an owner indication;
providing in the second-level cache a second tag-state structure so that a simultaneous lookup at the duplicate of the first tag-state structure and the second tag-state structure is possible; and
at any given time of a cache line lifetime in the chip-multiprocessor, associating a single owner with the cache line. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
- comprising;
-
11. A method for maximizing the use of on-chip cache memory capacity in a chip-multiprocessor, comprising:
-
forming a two-level cache system with an exclusive cache hierarchy in order to minimize cache line replication and on-chip traffic, the two-level cache system including a first-level cache dedicated to each processor in the chip-multiprocessor and a second-level cache shared by all the processors;
associating cache lines with an indication of ownership so that among one or more than one instances of each cache line present in the two-level cache system, there is only one instance that is an owner instance, the indication of ownership being provided only in a second-level cache;
associating the cache lines with state information that includes the indication of ownership, the state information for cache lines present in the first-level cache being maintained in the second-level cache; and
administering cache line ownership and write-backs based on a predetermined guideline. - View Dependent Claims (12, 13, 14, 15, 16)
-
-
17. A two-level cache system in a chip-multiprocessor;
- comprising;
means for relaxing the inclusion requirement in the two-level cache system in order to form exclusive two-level caching;
means for providing a first tag-state structure in a first level cache of the two-level cache system, the first tag-state structure having state information;
means for maintaining in a second-level cache of the two-level cache system a duplicate of the first tag-state structure;
means for extending the state information in the duplicate of the first tag-state structure, but not in the first tag-state structure, to include an owner indication;
means for providing in the second-level cache a second tag-state structure so that a simultaneous lookup at the duplicate of the first tag-state structure and the second tag-state structure is possible; and
means for associating a single owner with a cache line at any given time of its lifetime in the chip-multiprocessor. - View Dependent Claims (18, 19, 20)
- comprising;
-
21. A two-level cache system in a chip-multiprocessor for maximizing the use of on-chip cache memory capacity in the chip multiprocessor, comprising:
-
means for forming a two-level cache system with an exclusive cache hierarchy in order to minimize cache line replication and on-chip traffic, the two-level cache system including a first-level cache dedicated to each processor in the chip-multiprocessor and a second-level cache shared by all the processors;
means for associating cache lines with an indication of ownership so that among one or more than one instances of each cache line present in the two-level cache system, there is only one instance that is an owner instance, the indication of ownership being provided only in a second-level cache;
means for associating the cache lines with state information that includes the indication of ownership, the state information for cache lines present in the first-level cache being maintained in the second-level cache; and
means for administering cache line ownership and write-backs based on a predetermined guideline. - View Dependent Claims (22)
-
-
23. A two-level cache system in a chip-multiprocessor, comprising:
-
a plurality of per-processor first level caches, each including an instruction cache and a data cache and each maintaining a first tag-state structure with state information;
an interconnect device;
a second-level cache shared by all the processors, the per-processor first-level caches interfacing with each other and the second cache via the interconnect device, the second-level cache including one or more modules each of which including, storage for a second tag-state structure with its associated state information, a memory controller configured to operatively interface with the processors, a memory, and storage for a duplicate of the first tag-state structures, the state information in the duplicate being extended to include an indication of owner, wherein the two-level cache system is configured so that during a lifetime of a cache line in the chip-multiprocessor only one instance of the cache line, either in the first-level cache or the second-level cache, can be the owner. - View Dependent Claims (24, 25, 26)
-
Specification