Cache Line Coherency State Downgrade
By using a cache controller to track memory access metadata and downgrade coherence state-independent requests to shared states, the inefficiencies in cache line management are addressed, improving cache performance by minimizing unnecessary state conversions.
Patent Information
- Application Number
- JP2024523438
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-10-29
- Filing Date
- 2022-10-17
- Publication Date
- 2024-10-18
AI Technical Summary
Inefficient handling of cache line coherence states in microprocessors leads to unnecessary work and inefficiency due to frequent conversions between exclusive and shared states without considering the actual need for cache lines, particularly in situations where the cache line is not required by other processor cores.
Implementing a cache controller that maintains memory access metadata to track classes of memory accesses and downgrades coherence state-independent requests for cache lines to shared states when a threshold number of unnecessary exclusive state changes is detected, thereby optimizing cache line management.
Reduces unnecessary cache line state conversions by treating coherence state-independent requests as shared state requests, enhancing cache efficiency and reducing wasteful operations.
Smart Images

Figure 2024538195000001_ABST
Abstract
Description
[Technical field]
[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This application claims the benefit of U.S. Patent Application No. 17 / 514,776, filed October 29, 2021, the contents of which are incorporated herein by reference. [Background technology]
[0002] Modern microprocessors implement a wide range of features for high throughput. Cache performance is particularly important to performance. Improvements to such technology are constantly being made.
[0003] A more detailed understanding may be had from the following description, given by way of example in conjunction with the accompanying drawings, in which: [Brief description of the drawings]
[0004] [Figure 1] FIG. 1 is a block diagram of an example device capable of implementing one or more embodiments of the present disclosure. [Diagram 2] FIG. 2 is a block diagram of an instruction execution pipeline disposed within the processor of FIG. 1. [Diagram 3] FIG. 1 is a block diagram of a computer system, according to an example. [Figure 4A] FIG. 2 illustrates an example cache operation. [Figure 4B] FIG. 2 illustrates an example cache operation. [Figure 4C] FIG. 2 illustrates an example cache operation. [Figure 4D] FIG. 2 illustrates an example cache operation. [Diagram 5] 1 is a flow diagram of a method for performing a cache operation, according to an example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0005] Techniques are provided for performing cache operations that include detecting a threshold number of instances for a memory access class in which a cache line in an exclusive state in a cache is changed to an invalid state or a shared state without becoming a modified state, and in response to the detecting, treating coherence state agnostic requests for the cache line for the memory access class as requests for the cache line in a shared state, detecting a reset event for the memory access class, and in response to detecting the reset event, treating coherence state agnostic requests for the cache line for the memory class as coherence state agnostic requests.
[0006] 1 is a block diagram of an example device 100 in which aspects of the disclosure may be implemented. Device 100 may include, for example, a computer, a gaming device, a handheld device, a set-top box, a television, a mobile phone, or a tablet computer. Device 100 includes one or more processors 102, a memory hierarchy 104, a storage device 106, one or more input devices 108, and one or more output devices 110. Device 100 may also include optional input drivers 112 and output drivers 114. It should be understood that device 100 may include additional components not shown in FIG. 1.
[0007] The one or more processors 102 may include a central processing unit (CPU), a graphics processing unit (GPU), a CPU and a GPU located on the same die, or one or more processor cores, each processor core being a CPU or a GPU. In some examples, the one or more processors 102 may include any number of processors. In some examples, the one or more processors 102 may include one or more processor chips. In some examples, each processor chip may include one or more processor cores.
[0008] Some or all of memory hierarchy 104 may be located on the same die as one or more of the one or more processors 102, or may be partially or completely separate from the one or more processors 102. Memory hierarchy 104 may include, for example, one or more caches, one or more volatile memories, one or more non-volatile memories, and / or other memories, including one or more random access memories (RAMs) of various types.
[0009] In some examples, elements of memory hierarchy 104 are arranged in a hierarchy that includes elements of one or more processors 102. Examples of such arrangements are provided in Figures 3 and 4A-4D.
[0010] Storage devices 106 include fixed or removable storage devices (e.g., hard disk drives, solid state drives, optical disks, flash drives). Input devices 108 include keyboards, keypads, touch screens, touch pads, detectors, microphones, accelerometers, gyroscopes, biometric scanners, or network connections (e.g., wireless local area network cards for transmitting and / or receiving wireless IEEE 802 signals). Output devices 110 include displays, speakers, printers, haptic feedback devices, one or more optics, antennas, or network connections (e.g., wireless local area network cards for transmitting and / or receiving wireless IEEE 802 signals).
[0011] The input driver 112 communicates with the processor 102 and the input device 108, allowing the processor 102 to receive input from the input device 108. The output driver 114 communicates with the processor 102 and the output device 110, allowing the processor 102 to send output to the output device 110. It should be noted that the input driver 112 and the output driver 114 are optional components and that the device 100 operates in the same manner without the input driver 112 and the output driver 114 being present.
[0012] Figure 2 is a block diagram of an instruction execution pipeline 200 located within one or more of the processors 102 of Figure 1. In various examples, any of the processor cores of one or more of the processors 102 of Figure 1 may be implemented as shown in Figure 2.
[0013] Instruction execution pipeline 200 retrieves instructions from memory, executes the instructions, outputs data to memory, and changes the state of elements in instruction execution pipeline 200 , such as registers in register file 218 .
[0014] The instruction execution pipeline 200 includes an instruction fetch unit 204 configured to fetch instructions from a system memory (such as memory 104) via an instruction cache 202, a decoder 208 configured to decode the fetched instructions, functional units 216 configured to perform calculations to process the instructions, a load store unit 214 configured to load data from or store data to the system memory via a data cache 220, and a register file 218 including registers that store operational data of the instructions. A reorder buffer 210 tracks instructions that are currently in-flight and ensures in-order retirement of instructions while allowing out-of-order execution while in-flight. The term "in-flight" instructions refers to instructions that have been received by the reorder buffer 210 but that have not yet had their results committed to the processor's architectural state (e.g., results written to a register file, etc.). A reservation station 212 maintains the in-flight instructions and tracks the instruction operands. When all operands are ready for execution of a particular instruction, reservation stations 212 send the instruction to functional units 216 or load / store units 214 for execution. Completed instructions are marked for retirement in reorder buffer 210 and are retired when they are at the head of reorder buffer queue 210. Retirement refers to the act of committing the result of an instruction to the architectural state of the processor. For example, writing an addition result to a register via an add instruction, writing a loaded value to a register via a load instruction, or causing instruction flow to jump to a new location via a branch instruction are all examples of retiring an instruction.
[0015] The various elements of instruction execution pipeline 200 communicate via a common data bus 222. For example, functional units 216 and load / store unit 214 write results to common data bus 222, which may be read by reservation stations 212 for execution of dependent instructions and by reorder buffer 210 as final processing results for in-flight instructions that have finished executing. Load / store unit 214 also reads data from common data bus 222. For example, load / store unit 214 reads results from completed instructions from common data bus 222 and writes the results to memory via data cache 220 for store instructions.
[0016] Figure 3 is a block diagram of a computer system 300, according to one example. In some examples, computer system 300 is computer system 100 of Figure 1. Computer system 300 includes a processor set 302, one or more system level memories 304, a system memory controller 306, and other system elements 308.
[0017] Processor set 302 includes one or more processor chips 310. Each processor chip 310 includes a processor chip level cache 312 and one or more processor cores 314. Each processor core 314 has an associated core level cache 316. Each of the processor cores 314 includes one or more execution pipelines, such as instruction execution pipeline 200 of FIG. 2.
[0018] The caches and memories shown in FIG. 3 operate in parallel and therefore use coherence protocols to ensure data consistency. One example of such a protocol is the Modify-Exclusive-Shared-Invalid (MESI) protocol. Each cache line can be in one of four states: Modified, Exclusive, Shared, or Invalid. Each cache line includes an indication of one of these four states. This indication indicates which of the four states the cache line is in. The Modified state indicates that the copy of the cache line present in the particular cache has been modified relative to the copy present in the backing memory and therefore the cache line must be written to the backing memory if the cache line is evicted. The Exclusive state indicates that the cache line is present in the particular cache and not in other caches at the same level of the hierarchy. Note that a cache line marked as Exclusive can be located at a higher level of the hierarchy. For example, a cache line in a level 0 cache in the Exclusive state can also be present in the level 1 cache immediately above the level 0 cache. The Shared state indicates that the cache line is present in multiple caches at the same level of the hierarchy. The invalid state indicates that the cacheline is not valid in the particular cache in which it is marked invalid (although another cache may have a valid copy of the cacheline).
[0019] Each processor core 314 has an associated core level cache 316. When a processor core 314 executes a memory operation, such as a load operation or a store operation, the processor core 314 determines whether a cache line having data for the memory operation is located in the core level cache 316 associated with the processor core 314. If such a cache line is not located in the core level cache 316, then the core level cache 316 attempts to fetch the cache line from a higher level cache, such as the processor chip level cache 312, into the core level cache 316. The processor chip level cache 312 acts as both a higher level cache memory and a controller that manages a coherence protocol for the processor chip level cache 312 and all core level caches 316 in the same processor chip 310. Thus, the processor chip level cache 312 checks itself to determine whether a requested cache line is present in itself in order to provide the requested cache line to the requesting processor core 314. The processor chip-level cache 312 provides cache lines to a requesting core 314 either from its own contents or once fetched from a higher-level memory.
[0020] The processor chip level cache 312 manages a coherence protocol for the core level cache 316. In general, the processor chip level cache 312 manages the protocol state of cachelines in the core level cache 316 such that if any cacheline is in an exclusive state in a particular core level cache 316, no other core level cache 316 has that cacheline in any state except an invalid state. Multiple core level caches 316 are permitted to put a cacheline in a shared state.
[0021] The protocol works on a level-by-level basis. More specifically, at each level of the memory hierarchy, each element within that level is permitted to have cache lines in some subset of the protocol's states. In one example, at the processor set 302 level, each chip 310 (and therefore each processor chip level cache 312) is permitted to have cache lines in either a state, such as a shared state or an exclusive state. A controller at a particular level of the hierarchy manages the protocol at that level. Thus, the processor set memory 320 manages the state of the processor chip level cache 312. The processor chip level cache 312 of any particular processor chip 310 manages the state of the core level cache 316, and the system memory controller 306 manages the state of the processor set 302 and other system elements 308 that may have particular cache lines.
[0022] As described above, the cache controller controls the coherence state for a cache line. Various memory access instruction types, such as loads and stores, result in different behaviors associated with these coherence states. In general, when the processor core 314 executes some types of instructions in a particular situation, the processor core 314 generates traffic that causes the targeted cache line (i.e., the cache line that contains the data accessed by the memory access instruction) to be present in an associated cache (e.g., the core level cache 316) in a particular coherence state. In some examples, the memory access instruction targets a cache line that is not currently present in a cache, such as the core level cache 316, thus resulting in a cache miss. Thus, the cache controller or other entity services this request by storing the cache line having a particular coherence state in the cache (e.g., the core level cache 316). For some memory access requests, part of serving the miss includes the processor core 314 making a request that the cache line be placed in the cache in a manner that is independent of the coherence state. In one example, the processor core 314 determines that the cache does not have the cacheline and requests the cache to obtain the cacheline in any coherency state.
[0023] In some situations, the cache controller services a coherence-state independent request for a cacheline by placing the cacheline in a cache in a shared state. In other situations, the cache controller services a coherence-state independent request for a cacheline by placing the cacheline in a cache in an exclusive state. In some instances, this activity occurs when the cache controller determines that there is no contention for the cacheline (e.g., no other processor core 314 or other element requires access to the cacheline). In some situations, this results in significant inefficiencies. For example, if a cacheline is never actually needed in an exclusive state, but is subsequently needed by a different processor core 314, the work associated with changing the coherence state from exclusive to another state, such as invalid or shared, may be considered wasted. For example, if a cacheline in an exclusive state in one core-level cache 316 is requested by another processor core 314 in a shared state, the other processor core 314 (or an associated cache controller) will send a probe to the cache that stores the cacheline to indicate that the cacheline should be in a shared state. In response to the probe, the cache converts the cacheline to a shared state. This probe and cacheline state conversion represents additional unnecessary work compared to the situation where the cacheline had originally entered the cache in a shared state in response to a state-independent request.
[0024] For at least the above reasons, techniques are presented herein to reduce instances in which a memory access that would otherwise generate a coherence state independent request for a cache line instead generates a request for a cache line in a shared state in circumstances in which such a request is predicted not to require such a cache line in an exclusive state. Generally, the techniques include maintaining memory access metadata 317 that tracks the "class" of a memory access (sometimes referred to as a "memory access class"). A cache controller uses memory access metadata 317 to determine whether to change a metadata state independent request for an access to a cache line to a request for that cache line in a shared state.
[0025] The cache controller maintains memory access metadata 317, storing information about multiple "classes" of memory access. Each class represents a type of memory access. A class definition includes one or more of an access type and a thread ID, and optionally other information. The access type indicates the type of operation whose execution resulted in the memory access request. Some examples of operation types include an instruction type, which may include one or more types of loads, one or more types of stores, one or more types of prefetches, one or more types of atomic operations, or other types. Some other examples of operation types include hardware-based operations, such as hardware-initiated prefetch operations. Any other technically feasible operation types are possible access types. A class definition also includes a thread identifier (ID) that identifies a particular processor execution thread. As will be appreciated by those skilled in the art, a processor of system 100, such as processor core 314, may execute different execution threads, each of which represents a software program or part of a software program with an independent control flow. The combination of the access type and the thread ID defines a class. In some embodiments, the class definition also includes one or more other characteristics.
[0026] The cache controller maintains memory access metadata 317 by maintaining, for each class, a request downgrade determination factor that indicates whether the cache controller should change a coherence state independent request to insert a cacheline into the core level cache 316 to a request to insert the cacheline into the core level cache 316 in a shared state. In some examples, the downgrade determination factor is a count of the number of times a cacheline is in an exclusive state and is made into a shared or invalid state without ever being made into a modified state.
[0027] In one example, a memory access instruction executed by a processor core 314 results in the processor core 314 generating a coherence state independent request to a cache controller to place a cache line in the cache. The cache controller examines memory access metadata 317 for a class associated with the memory access instruction and determines that the metadata state independent request for a cache line for that class should be downgraded to a request for a cache line in a shared state. In response to this determination, the cache controller places the cache line in the core level cache 316 in a shared state.
[0028] In another example, a memory access instruction executed by the processor core 314 results in the processor core 314 generating a coherence state independent request requesting the cache controller to place a cache line in the cache. The cache controller determines that the associated class does not have an indication that the coherence state independent request should be downgraded to a shared state request. In response, the cache controller places the cache line in the cache in a coherence state independent manner. This means that the cache controller is free to place the cache line in a shared or exclusive state (or potentially other states if the coherence protocol allows).
[0029] As described above, the cache controller maintains metadata memory 317 that indicates, for various different classes, whether to convert a coherence state independent request access to a shared access request. To do this, the cache controller monitors instances for various different classes that unnecessarily place a cache line in the cache in an exclusive state. If the cache controller determines that there have been a greater number of such instances than a threshold for a given class or group of classes, the cache controller causes metadata memory 317 to indicate that a coherence state independent request to place a cache line in the cache should be converted to a request to place the cache line in the cache in a shared state.
[0030] In some examples, instances of unnecessarily placing a cacheline in a cache in an exclusive state for a particular class occur when a cacheline is made into the exclusive state, but then removed or converted to a shared state before the cacheline is written. In some examples, the cache controller detects such occurrences when a cacheline is made into the exclusive state, and then converted to a shared state (e.g., due to a read by a processor core 314 associated with a different parallel cache) or to an invalid state (e.g., due to another processor core 314 requesting the cacheline in an exclusive or shared state, or due to a capacity eviction from the cache) before being converted to a modified state.
[0031] In some examples, the metadata memory 317 includes an entry for each possible class. Each entry either explicitly indicates the class with which it is associated (e.g., via a numeric label) or implicitly indicates the class with which it is associated (e.g., based on its location in the metadata memory 317). In some examples, the entry includes a count (coefficient of determination) for each class that indicates the number of times that instances occur for its associated class that unnecessarily place a cache line in the exclusive cache. The cache controller increments the count for a class when an instance occurs that unnecessarily places a cache line in the exclusive cache. If the count is above a threshold, the entry is considered to include an indication that for that class, coherence state independent requests should be downgraded to shared state requests. If the count is not above the threshold, the entry is considered to include no such indication. Although particular configurations of metadata memory 317 for storing particular information are described, it should be understood that any of a variety of configurations are possible, including a per-class indication of whether a coherence state independent request should be downgraded to a request that places the cache line in a shared state for that class.
[0032] While certain units are described as performing certain operations, it should be understood that many variations are possible. In some examples, the processor core 314 or another unit generates a memory access that results in a request to insert a cache line into the cache. In some examples, the cache into which the cache line is inserted is the core level cache 316. In other examples, a different cache in the hierarchy is the cache in which the cache line resides. In some examples, a cache controller, not shown in FIG. 3, is a unit that monitors and updates the metadata memory and downgrades requests generated by the processor core 314. In some examples, the cache controller is a controller for the core level cache 316, a cache controller for the processor chip level cache 312, or a different cache controller or unit. In some examples, the metadata memory 317 is stored with each core level cache 316. In some examples, the metadata memory 317 is stored with each processor chip level cache 312. In other examples, the metadata memory 317 is stored anywhere else. In some examples, the cache controller is a hardware circuit, software running on a processor, or a combination thereof, configured to perform the operations described herein.
[0033] Note that metadata memory 317 maintains information on a per-class basis, but not on a per-cacheline basis. Thus, operations on different cachelines of the same cache affect the indication of whether to downgrade a request for a particular class. For example, if the threshold mentioned above is five, and five different cachelines have a coherence state that changes from exclusive to shared, then the cache controller will cause metadata memory 317 to indicate that a request for that class should be downgraded.
[0034] 4A-4D illustrate operations associated with downgrading a request for a cacheline. FIG. 4A illustrates an exemplary operation in which a cacheline is placed into cache 406 in an exclusive state in response to a coherence state independent request. Processor core 314 performs a memory access operation 401, which results in a cache miss in cache 406. Processor core 314 then sends a coherence state independent request to cache controller 402 to place the cacheline into cache 406. In response to this request, cache controller 402 places the cacheline in cache 406 in an exclusive state. Note that although it is possible for cache controller 402 to place the cacheline into cache 406 in other coherence states, in the illustrated instance the cacheline is placed into cache 406 in an exclusive state.
[0035] 4B illustrates an exemplary operation in which metadata memory 404 is updated for a class to indicate that a coherence state independent request to insert a cacheline into cache 406 should be downgraded to a request to insert the cacheline into cache 406 in a shared state. In FIG. 4B, processor core 314 makes a threshold number of requests that cause cache controller 402 to change the state of the cacheline from an exclusive state to a shared state or an invalid state. This threshold number of requests occurs for a single class. It should be understood that this threshold number may occur over time in response to a number of operations performed by one or more processor cores 314 or other entities. In response to the threshold number, cache controller 402 includes an indication in metadata memory 404 that a coherence state independent request for a particular class (the class for which the threshold number of requests occurs) to fetch a cacheline into cache 406 should be downgraded to a request to fetch the cacheline into a shared state cache.
[0036] In some examples, each time the cache controller 402 determines that a cache line of a class becomes shared or invalid without being modified, the cache controller 402 increments a counter for that class in the metadata memory 404. If the counter exceeds a threshold, the cache controller 402 interprets the counter as an indication to downgrade a coherence state independent request to a request for a cache line in a shared state.
[0037] 4C illustrates an example operation for downgrading a coherence state independent request for a cache line to a request for that cache line in a shared state. Through memory access operation 403, cache controller 402 receives a request for a particular class from a unit such as processor core 314. The request is a coherence state independent request to place a cache line in cache 406. Cache controller 402 determines that metadata memory 404 indicates that such a request for the particular class should be downgraded to a request to place the cache line in the shared state 406. In response to this determination, cache controller 402 places the cache line in cache 406 in the shared state.
[0038] 4D illustrates an example operation for resetting an entry of a particular class in response to a cache line in an exclusive state being converted to a modified state. The processor core 314 performs a write to the cache line for a memory access operation 405. In one example, the processor core 314 executes a store instruction, which results in a write to the cache line. The cache line being written is in an exclusive state and the write is for a particular class (e.g., a particular combination of thread ID and access type). The cache controller 402 updates the metadata memory to indicate that for that class, metadata state independent requests to insert the cache line into the cache 406 should not be downgraded to requests to insert the cache line into the cache in a shared state. Following this, and while the metadata memory contains this indication, requests to insert the cache line into the cache 406 for that class are satisfied by storing the cache line in either an exclusive or shared state.
[0039] 5 is a flow diagram of a method 500 for performing a cache operation, according to one example. Although described with respect to the systems of FIGS. 1-4D, one skilled in the art will understand that any system configured to perform the steps of method 500 in any technically feasible order is within the scope of the present disclosure.
[0040] In step 502, for a particular memory access class, the cache controller detects a threshold number of instances where a cache line in an exclusive state is changed to an invalid or shared state without being changed to a modified state. In some examples, the cache line is brought into the cache in response to a miss. In some examples, the miss occurs due to an instruction executed by the processor core 314. In some examples, the cache line is brought into the cache in response to a prefetch request. In some examples, the instruction or action that brings a cache line into the exclusive state does not necessarily put the cache line into the exclusive state, but the cache controller puts the cache line into that state. In some examples, if such a cache line is in an exclusive state and the cache line is invalidated or converted to a shared state, putting the cache line into the exclusive state may be deemed unnecessary.
[0041] In some examples, the detection occurs as a count of the number of such instances exceeding a threshold. In some examples, this count is stored in metadata memory 404. The cache controller increments the count each time it detects that a cache line in an exclusive state is changed to an invalid or shared state without becoming modified. In some examples, metadata memory 404 stores such counts for each class.
[0042] In step 504, the cache controller, in response to the detection, processes (treats) the coherence state independent request for the cache line to be inserted into the cache as a request for the cache line in a shared state for that memory access class. In some examples, performing this step includes placing the cache line into the shared state cache in any situation that results in the processor core 314 (or other entity) generating a coherence state independent request. In various examples, a load instruction or a prefetch results in a coherence state independent request. In some examples, such operations result in coherence state independent requests, but when the detection of step 502 occurs, these requests are converted to requests for a cache line in a shared state.
[0043] In step 506, the cache controller detects a reset event for the class. In some examples, the reset event includes detecting that a cache line is cached in an exclusive state for the class and is subsequently modified. In step 508, in response to the reset event, the cache controller processes the coherence state independent request normally. In one example, the cache controller is free to cache the cache line in response to such a request in either a shared or exclusive state. Thus, in some examples, after this reset event (or prior to detecting the threshold number of instances described in step 502), the cache controller places one cache line in an exclusive state in response to a state independent request and another cache line in a shared state in response to a state independent request.
[0044] It should be understood that many variations are possible based on the disclosure herein, and although features and elements are described above in specific combinations, each feature or element may be used alone without the other features and elements, or in various combinations with other features and elements, with or without the other features and elements.
[0045] The various elements illustrated in the figure can be implemented as hardware (e.g., circuitry), software running on a processor, or a combination of hardware and software. In various examples, the illustrated units of instruction execution pipeline 200 and computer system 100, such as blocks such as processor chip 310, system elements 308, system level memory 304, system memory controller 306, processor chip level cache 312, processor set memory 320, processor core 314, core level cache 316, metadata memory 317, cache controller 402, metadata memory 404, and cache 406, can be implemented as hardware (e.g., hardware processors and / or circuitry), software, or a combination thereof. The methods provided can be implemented in a general purpose computer, processor, or processor core. Suitable processors include, by way of example, general purpose processors, special purpose processors, conventional processors, digital signal processors (DSPs), multiple microprocessors, one or more microprocessors associated with a DSP core, controllers, microcontrollers, Application Specific Integrated Circuits (ASICs), Field Programmable Gate Array (FPGA) circuits, any other type of integrated circuit (IC), and / or state machines. Such processors may be manufactured by configuring a manufacturing process using the results of processed hardware description language (HDL) instructions and other intermediate data such as netlists (such instructions may be stored on a computer readable medium). The result of such processing may be a mask work that is used in a subsequent semiconductor manufacturing process to manufacture a processor embodying aspects of the embodiments.
[0046] The methods or flow diagrams provided herein may be implemented in a computer program, software, or firmware embodied in a non-transitory computer-readable storage medium for execution by a general purpose computer or processor. Examples of non-transitory computer-readable storage media include read only memory (ROM), random access memory (RAM), registers, cache memory, semiconductor memory devices, magnetic media such as internal hard disks and removable disks, magneto-optical media, and optical media such as CD-ROM disks and digital versatile disks (DVDs).
Claims
1. Detecting a threshold number of instances for a class of memory accesses in which a cache line in an Exclusive state in the cache is changed to an Invalid state or a Shared state without becoming a Modified state; In response to said detecting, treating a first coherence state independent request for a cache line of said memory access class as a request for a cache line in a shared state; detecting a reset event of the memory access class; and processing a second coherence state independent request for a cache line of the memory access class as a coherence state independent request in response to detecting the reset event. method.
2. maintaining a count of the number of instances in which a cacheline in an Exclusive state in the cache is changed to an Invalid state or a Shared state without becoming a Modified state; 2. The method of claim 1.
3. resetting the count to zero in response to the reset event. Invoice 2 method.
4. the reset event includes detecting that a cache line in an exclusive state has been converted to a cache line in a shared state for the memory access class; 2. The method of claim 1.
5. storing a cache line in the cache in an exclusive state in response to one or more of a load instruction and a prefetch operation; 2. The method of claim 1.
6. The memory access class is defined as a combination of a memory access type and a thread identifier.
2. The method of claim 1.
7. processing a first coherence state independent request for a cache line of the memory access class as a request for a cache line in a shared state includes storing the cache line in the cache in a shared state in response to a coherence state independent request for inserting the cache line into the cache; 2. The method of claim 1.
8. tracking, for different memory access classes, different numbers of instances in which a cache line in an Exclusive state in the cache is changed to an Invalid state or a Shared state without becoming a Modified state; 2. The method of claim 1.
9. independently responding to requests for cache lines for a plurality of different memory access classes according to a number of instances in which a cache line in an exclusive state in the cache is changed to an invalid state or a shared state without becoming a modified state; The method of claim 8.
10. Cache and A cache controller, The cache controller Detecting a threshold number of instances for a class of memory accesses in which a cache line in an Exclusive state in the cache is changed to an Invalid state or a Shared state without becoming a Modified state; In response to said detecting, treating a first coherence state independent request for a cache line of said memory access class as a request for a cache line in a shared state; detecting a reset event of the memory access class; in response to detecting the reset event, processing a second coherence state independent request for a cache line of the memory access class as a coherence state independent request; [0023] system.
11. The cache controller and configuring the cache to maintain a count of the number of instances in which a cacheline in an Exclusive state in the cache is changed to an Invalid state or a Shared state without becoming a Modified state. The system of claim 10.
12. The cache controller configured to reset the count to zero in response to the reset event. The system of claim 11.
13. the reset event includes detecting that a cache line in an exclusive state has been converted to a cache line in a shared state for the memory access class; The system of claim 10.
14. The cache controller configured to store a cache line in the cache in an exclusive state in response to one or more of a load instruction and a prefetch operation; The system of claim 10.
15. The memory access class is defined as a combination of a memory access type and a thread identifier. The system of claim 10.
16. processing a first coherence state independent request for a cache line of the memory access class as a request for a cache line in a shared state includes storing the cache line in the cache in a shared state in response to a coherence state independent request for inserting the cache line into the cache; The system of claim 10.
17. The cache controller is configured to track, for different memory access classes, different numbers of instances in which a cache line in an Exclusive state in the cache is changed to an Invalid state or a Shared state without becoming a Modified state. The system of claim 10.
18. The cache controller is configured to independently respond to requests for cache lines for a plurality of different memory access classes according to a number of instances in which a cache line in an Exclusive state in the cache is changed to an Invalid state or a Shared state without becoming a Modified state.
20. The system of claim 17.
19. A processor; Cache and A cache controller, The cache controller Detecting a threshold number of instances for a class of memory accesses in which a cache line in an Exclusive state in the cache is changed to an Invalid state or a Shared state without becoming a Modified state; In response to said detecting, treating a first coherence state independent request of said processor for a cache line of said memory access class as a request for a cache line in a shared state; detecting a reset event of the memory access class; in response to detecting the reset event, processing a second coherence state independent request of the processor for a cache line of the memory access class as a coherence state independent request; [0023] system.
20. The cache controller and configuring the cache to maintain a count of the number of instances in which a cacheline in an Exclusive state in the cache is changed to an Invalid state or a Shared state without becoming a Modified state.
20. The system of claim 19.
Citation Information
Patent Citations
Cache memory device for parallel computer
JP2000132456A
Control device, analysis device, analysis method, and analysis program
WO2013114540A1
