US8046539B2 - Method and apparatus for the synchronization of distributed caches - Google Patents
Method and apparatus for the synchronization of distributed caches Download PDFInfo
- Publication number
- US8046539B2 US8046539B2 US12/479,541 US47954109A US8046539B2 US 8046539 B2 US8046539 B2 US 8046539B2 US 47954109 A US47954109 A US 47954109A US 8046539 B2 US8046539 B2 US 8046539B2
- Authority
- US
- United States
- Prior art keywords
- bit
- exclusive
- cache
- state
- sub
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related, expires
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0806—Multiuser, multiprocessor or multiprocessing cache systems
- G06F12/0815—Cache consistency protocols
- G06F12/0831—Cache consistency protocols using a bus scheme, e.g. with bus monitoring or watching means
- G06F12/0835—Cache consistency protocols using a bus scheme, e.g. with bus monitoring or watching means for main memory peripheral accesses (e.g. I/O or DMA)
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0806—Multiuser, multiprocessor or multiprocessing cache systems
- G06F12/0815—Cache consistency protocols
- G06F12/0817—Cache consistency protocols using directory methods
- G06F12/082—Associative directories
Definitions
- the present invention relates to cache memory systems and more particularly to a hierarchical caching protocol suitable for use with distributed caches (e.g., in Very Large-Scale Integration (VLSI) devices), and may be utilized within a caching input/output (I/O) hub.
- VLSI Very Large-Scale Integration
- I/O caching input/output
- the system cache in a computer system serves to enhance the system performance of modern computers.
- a cache can maintain data between a processor and relatively slower system memory by holding recently accessed memory locations in case they are needed again.
- the presence of cache allows the processor to continuously perform operations utilizing the data in the faster-accessing cache.
- system cache is designed as a “monolithic” unit.
- multiple ports can be added to the monolithic cache device for external I/O devices.
- monolithic cache device with several read/write ports (for example, in a dual-ported monolithic cache).
- Current monolithic cache devices are not optimized for multiple ports and not the most efficient implementation available.
- Computer systems are designed to accommodate a single or multiple central processing units (CPUs), coupled via a common system bus or switch to a memory and a number of external input/output devices.
- CPUs central processing units
- the purpose of providing multiple central processing units is to increase the performance of operations by sharing tasks between the processors.
- Such an arrangement allows the computer to simultaneously support a number of different applications while supporting I/O components that are, for example, communicating over a network and displaying images on attached display devices.
- Multi-processor computer systems are typically utilized for enterprise and network server systems.
- Idle cycles on the system bus represent time periods in which an application is not being supported, and therefore represent reduced performance.
- processors typically include cache logic for temporary storage of data from the memory.
- a coherency protocol is implemented to ensure that each central processor unit only retrieves the most up to date version of data from the cache.
- MESI Modified-Exclusive-Shared-Invalid
- processors are commonly referred to as “cacheable” devices.
- I/O components such as those coupled to a Peripheral Component Interconnect (PCI) (“PCI Local Bus Specification”, version 2.1, Jun. 1, 1995, from the PCI Special Interest Group (PCI-SIG)) bus, are generally non-cacheable devices. That is, they typically do not implement the same cache coherency protocol that is used by the processors.
- PCI Peripheral Component Interconnect
- I/O components retrieve data from memory, or a cacheable device, via a Direct Memory Access (DMA) operation. Accordingly, measures must be taken to ensure that I/O components only retrieve valid data for their operations.
- An I/O device may be provided as a connection point between various I/O bridge components, to which I/O components are attached, and ultimately, to the processor.
- An input/output (I/O) device may be utilized as a caching I/O device. That is, the I/O device includes a single, monolithic caching resource for data. Therefore, because an I/O device is typically coupled to several client ports, a monolithic I/O cache device will suffer the same detrimental architectural and performance impacts as previously discussed. Current I/O cache device designs are not efficient implementations for high performance systems.
- Cache coherency is the synchronization of data in a plurality of caches such that reading a memory location via any cache will return the most recent data written to that location via any other cache.
- Current solutions for synchronizing multiple cache systems include utilizing the MESI coherency protocol and having each cache broadcast its request to every other cache in the system and then wait for a response from those devices. This approach has the inherent problem of being non-scalable. As additional cache devices are added as needed to a multiple cache system, latency throughout the system is increased dramatically, thereby decreasing overall system performance.
- FIG. 1 is a block diagram of a portion of a processor cache system employing an embodiment of the present invention.
- FIG. 2 is a block diagram showing an input/output read and write caching system employing an embodiment of the present invention.
- FIG. 3 is a flow diagram showing an inbound coherent read transaction employing an embodiment of the present invention.
- FIG. 4 is a flow diagram showing an inbound coherent write transaction employing an embodiment of the present invention.
- FIG. 5 is a state machine diagram showing a coherency protocol employing an embodiment of the present invention.
- FIG. 6 is a flow diagram showing a conflict in the request for ownership employing an embodiment of the present invention.
- FIG. 7 is a flow diagram showing an inbound coherent write transaction for a partial line write employing an embodiment of the present invention.
- FIG. 8 is a block diagram showing an input/output system architecture according to an embodiment of the present invention.
- processor 120 requests data from cache-coherent CPU device 100 .
- the cache-coherent CPU device 100 implements coherency by arbitrating and synchronizing the data within the distributed caches 110 and 115 .
- CPU port components 140 and 145 may include, for example, system RAM, or I/O Components. However, any suitable component for the CPU ports may be utilized as port components 140 and 145 .
- cache-coherent CPU device 100 is part of a chipset that provides a PCI bus to interface with I/O components (described below) and interfaces with system memory and the CPU.
- the cache-coherent CPU device 100 includes a coherency engine 105 and one or more read and write caches 110 and 115 .
- coherency engine 105 contains a reference table, indexing the data within distributed caches 110 and 115 .
- the coherency engine 105 may utilize, for example, the Modified-Exclusive-Shared-Invalid (MESI) coherency protocol, labeling the data with line state MESI tags: ‘M’-state (modified), ‘E’-state (exclusive), ‘S’-state (shared), or ‘I’-state (invalid).
- M Modified-Exclusive-Shared-Invalid
- coherency engine 105 may also utilize other coherency protocols, including but not limited to, an improved MESI protocol with intermediate coherency states described further in this application.
- MESI protocol with intermediate coherency states described further in this application.
- Each new request from the cache of any of the processor port components 140 and 145 is checked against the table of coherency engine 105 . If the request does not interfere with any data found within any of the other caches, the transaction is processed.
- Utilizing MESI tags enables coherency engine 105 to quickly arbitrate between caches reading from and writing to the same data, meanwhile, keeping all data synchronized and tracked between all caches.
- cache-coherent processor device 100 physically partitions the caching resources into smaller, more implementable portions, each connected to coherency engine 105 .
- Caches 110 and 115 are distributed across all ports on the device, such that each cache is associated with a port component.
- cache 110 is physically located on the device nearby port component 140 being serviced.
- cache 115 is located proximately to port component 145 , thereby reducing the latency of transaction data requests. This approach minimizes the latency for “cache hits” and performance is increased.
- a cache hit is a request to read from memory that may be satisfied from the cache without using main (or another) memory.
- Reducing transaction latency is a major benefit of a distributed cache mechanism.
- This allows the cache coherent device 100 to supply coherent responses to port component devices 140 and 145 without traversing the distance across these devices.
- device 100 must be kept cache coherent with respect to the other coherent devices in the system. This results from host CPU 120 and other coherent port components sending remote coherency “snoops” (i.e. a monitoring signal) to determine if the port component maintains MESI state information for a particular coherent line. Since the coherency engine 105 tracks the MESI state of all coherent lines maintained within the device 100 , coherency engine 105 can quickly respond to remote snoop requests. Rather than having the remote snoop request traverse the entire system diameter of each port component to query the local caches directly, the remote snoop is serviced quickly, thereby reducing latency.
- Distributing caches also provides improvements in scalability design.
- Using a monolithic cache an increase in the number of ports would make the CPU device geometrically more complex in design (e.g., a four-port CPU device would be sixteen times more complex using a monolithic cache compared to a one-port CPU device).
- utilizing a coherency engine the addition of another port is easier to design into the CPU device by adding the appropriate connections to the coherency engine and an additional cache for the new port. Therefore, distributed caches that implement a coherency directory are inherently more scalable.
- the distributed cache architecture improves aggregate bandwidth with each port component 140 and 145 capable of utilizing the full transaction bandwidth for each of the read/write caches 110 and 115 .
- cache-coherent I/O device 200 is connected to a coherent host, here, a front-side bus 225 .
- the cache-coherent I/O device 200 implements coherency by arbitrating and synchronizing the data within the distributed caches 210 , 215 and 220 .
- a further implementation to improve current systems involves the leveraging of existing transaction buffers to form caches 210 , 215 and 220 .
- Buffers are typically present in the internal protocol engines used for external systems and I/O interfaces. These buffers are used to segment and reassemble external transaction requests into sizes that are more suitable to the internal protocol logic.
- I/O components 245 and 250 may include, for example, a disk drive. However, any suitable component or device for the I/O ports may be utilized as I/O components 245 and 250 .
- a first read cache 215 may be provided and associated with the first I/O interface 235
- a second read cache 220 may be provided and associated with the second I/O interface 240 . That is, for each I/O interface 235 , 240 , there is a read cache 215 , 220 dedicated thereto. This approach minimizes the latency for “cache hits” and performance is increased. This arrangement is particularly useful for data that is prefetched by I/O components 245 and 250 . Any suitable configuration of the number of I/O interfaces, I/O components, and read caches may be utilized.
- the read caches 215 and 220 provides the I/O component 245 and 250 a low latency copy of the “most likely to use” data.
- the distributed cache architecture also improves aggregate bandwidth with each port component 245 and 250 capable of utilizing the full transaction bandwidth for each read/write cache 210 , 215 and 220 .
- a first read cache 215 may be provided and associated with the first I/O interface 235
- a second read cache 220 may be provided and associated with the second I/O interface 240 .
- the read caches 215 and 220 maintain cache lines in the shared and invalid states.
- the read caches 215 and 220 are shown as being on a single component (i.e., on the cache-coherent I/O device 200 ), the read caches may be distributed (and separated) on one or more different components.
- the write cache 210 manages coherent memory writes initiated by the I/O components 245 and 250 .
- the write cache 210 is also responsible for snooping, or monitoring, through coherent host interface 230 to the front-side bus 225 (or an Intel® Scalability Port) before committing to the memory write.
- the write cache 210 follows the Modified-Exclusive-Shared-Invalid (MESI) caching protocol.
- MESI Modified-Exclusive-Shared-Invalid
- any suitable caching protocol may be utilized.
- a coherency engine 205 is provided in the cache-coherent I/O device 200 .
- Coherency engine 205 provides tracking of all of the cache lines in the write cache 210 and the read caches 215 and 220 .
- the coherency engine 205 tracks the line state, as well as a pointer to the structure that stores the tracking data. Tracking the state enables a faster response to requests. Tracking the structures storing the line enables the protocol that is required between the structures.
- a local request buffer may be provided with the cache-coherent I/O device 200 to store all inbound coherent and non-coherent transactions.
- a remote request buffer may also be provided with cache-coherent I/O device 200 to check for conflicts between snoop or invalidate cycles from the coherent host and the inbound requests from cache-coherent I/O device 200 itself.
- the cache-coherent I/O device 200 may have a plurality of caching resources, each including a write cache 210 , a coherency engine 205 , one or more read cache 215 and 220 , a local request buffer, and a remote request buffer. Moreover, the cache-coherent I/O device 200 may include a coherency engine 205 interconnecting the read caches 215 and 220 and the write cache 210 . The coherency engine 205 is utilized to synchronize the caches within the caching resources.
- Cache-coherent I/O device 200 may aggressively prefetch data. If cache-coherent device 200 speculatively requests ownership of data subsequently requested or modified by the processor system, caches 210 , 215 and 220 may be “snooped” (i.e. monitored) by the processor, which, in turn, will return the data with the correct coherency state preserved. As a result, cache-coherent device 200 can selectively purge contended coherent data, rather than deleting all prefetched data in a non-coherent system where data is modified in one of the prefetch buffers. Therefore, the cache hit rate is increased, thereby increasing performance.
- Cache-coherent I/O device 200 also enables pipelining coherent ownership requests for a series of inbound write transactions destined for coherent memory. This is possible because cache-coherent I/O device 200 provides an internal cache which is maintained coherent with respect to system memory. The write transactions can be issued without blocking the ownership requests as they return. Existing I/O devices must block each inbound write transaction, waiting for the system memory controller to complete the transaction before subsequent write transactions may be issued. Pipelining I/O writes significantly improves the aggregate bandwidth of inbound write transactions to coherent memory space.
- the distributed caches serve to enhance overall cache system performance.
- the distributed caches system enhances the architecture and implementation of a cache system with multiple ports. Specifically within I/O cache systems, distributed caches conserve the internal buffer resources in I/O devices, thereby improving device size, while improving the latency and bandwidth of I/O devices to memory.
- FIG. 3 a flow diagram of an inbound coherent read transaction employing an embodiment of the present invention is shown.
- An inbound coherent read transaction originates from port component 140 or 145 (or similarly from I/O component 245 or 250 ). Accordingly, in block 300 , a read transaction is issued. Control is passed to decision block 305 , where the address for the read transaction is checked within the distributed caches 110 or 115 (or similarly from caches 215 or 220 ). If the check results in a cache hit, then the data is retrieved from the cache in block 310 . Control then passes to block 315 where speculatively prefetched data in the cache can be utilized to increase the effective read bandwidth and reduce the read transaction latency.
- a cache line is allocated for the read transaction request in block 320 .
- Control then passes to block 325 where the read transaction is forwarded to the coherent host to retrieve the requested data.
- the speculative prefetch mechanism in block 315 can be utilized to increase the cache hit rate by speculatively reading one or more cache lines ahead of the current read request and by maintaining the speculatively read data coherent in the distributed cache.
- FIG. 4 a flow diagram of one or more inbound coherent write transactions employing an embodiment of the present invention is shown.
- An inbound coherent write transaction originates from port component 140 or 145 (or similarly from I/O component 245 or 250 ). Accordingly, in block 400 , a write transaction is issued. Control is passed to block 405 , where the address for the write transaction is checked within the distributed caches 110 or 115 .
- decision block 410 a determination is made whether the check results in a “cache hit” or “cache miss.” If the cache-coherent device does not have exclusive ‘E’ or modified ‘M’ ownership of the cache line, the check results in a cache miss. Control then passes to block 415 , where the coherency engine will forward a “request for ownership” to an external coherency device (e.g. memory) requesting exclusive ‘E’ ownership of the target cache line. When exclusive ownership is granted to the cache-coherent device, the coherency engine marks the line as ‘M’.
- an external coherency device e.g. memory
- the coherency engine may either forward the write transaction data to the front-side bus to write data in coherent memory space in block 425 , or maintain the data locally in the distributed caches in modified ‘M’-state in block 430 . If the coherency engine always forwards the write data to the front-side bus upon receiving exclusive ‘E’ ownership of the line, then the cache-coherent device operates as a “write-through” cache, in block 425 . If the coherency engine maintains the data locally in the distributed caches in modified ‘M’-state, then the cache-coherent device operates as a “write-back” cache, in block 430 .
- control then passes to block 435 , where the pipelining capability within distributed caches is utilized.
- the pipelining capability of global system coherency can be utilized to streamline a series of inbound write transactions, thereby improving the aggregate bandwidth of inbound writes to memory. Since global system coherency will be maintained if the write transaction data is promoted to modified ‘M’-state in the same order it was received from port component 140 or 145 (or similarly from I/O component 245 or 250 ), the processing of a stream of multiple write requests may be pipelined. In this mode, the coherency engine will forward a request for ownership to an external coherency device requesting exclusive ‘E’ ownership of the target cache line as each write request is received from port component 140 or 145 (or similarly from I/O component 245 or 250 ).
- the coherency engine When exclusive ownership is granted to the cache-coherent device, the coherency engine marks the line as modified ‘M’ as soon as all the preceding writes have also been marked as modified ‘M’. As a result, a series of inbound writes from port 140 or 145 (or similarly from I/O component 245 or 250 ) will result in a corresponding series of ownership requests, with the stream of writes being promoted to modified ‘M’-state in the proper order for global system coherency.
- control passes to decision block 440 . If the cache-coherent device already has exclusive ‘E’ or modified ‘M’ ownership of the cache line in one of the other distributed caches, the check results in a cache hit. At this point, in decision block 440 , the coherency engine will manage the coherency conflict either as a write-through cache, passing control to block 445 , or, as a write-back cache, passing control to block 455 . If the coherency engine always blocks the new write transaction until the senior write data can be forwarded to the front-side bus upon receiving a subsequent write to the same line, then the cache-coherent device operates as a write-through cache.
- the cache-coherent device operates as a write-back cache.
- the new write transaction is blocked in block 445 , until the older (“senior”) write transaction data can be forwarded to the front-side bus to write data in coherent memory space in block 450 .
- the senior write transactions After the senior write transactions have been forwarded, other write transactions can then be forwarded to the front-side bus to write data in coherent memory space in block 425 .
- Control then passes to block 435 , where the pipelining capability of distributed caches is utilized.
- FIG. 5 a state machine diagram showing a coherency protocol employing an embodiment of the present invention is shown.
- the state machine diagram illustrates the system utilizing the MESI coherency protocol and intermediate states described herein.
- a data line is in ‘I’-state, where both reads and writes typically begin.
- the coherency engine does not have state information for transactions in this state. If the data line is not already present in the cache when a read transaction is issued, the data line is allocated to the cache. The data can then be retrieved from a processor or bus read. After the read transaction is completed, the coherency engine recognizes the data line as ‘S’-state in 515 . Once the line is purged or written to the bus, the line is invalid and returned to ‘I’-state in 510 . However, when in ‘S’-state, if a snoop detects a line conflict, the coherency engine changes the data line to shared-conflict state as ‘SC’-state in 550 to invalidate the line.
- the line starts as ‘I’-state in 510 .
- the line is requested as exclusive, and then is immediately changed ‘E-prime’ state in 520 awaiting acknowledgement from the coherency engine to promote the line to exclusive ‘E’-state in 525 .
- a request for ownership is issued from the internal ordering queues, but the data line remains in ‘E-prime’ state in 520 until a positive completion for exclusive ownership is received from the coherency engine. If a snoop detects a line in the cache as ‘S’-state, the data line must be invalidated and moves to ‘SC’-state in 550 . The line is invalidated and returned to ‘I’-state in 510 .
- a snoop responds by moving the line to exclusive ‘E’-state in 525 .
- ‘E-prime’ state in 520 when the request for ownership is completed, the line moves to ‘E’-state in 525 . If a conflict is detected for exclusive access to the line, the line changes to conflict ‘C’-state in 530 . A line moves to ‘C’-state as a result of either when a snoop detects a line conflict for exclusive ‘E’-state ownership or when the ordering requirements for a line write have not been met. When the conflict is resolved, the line returns to ‘E-prime’ in 520 awaiting acknowledgment to exclusive access to the line in ‘E’-state in 525 .
- the line can be modified by writing either a full line writes or a sub-line writes in the form of partial writes to the line.
- a full line write command completes a processor write and changes the line state to ‘M’-state in 535 . This occurs as a result of meeting the ordering requirements for a full line write.
- the line write to memory is performed and the write transaction is completed. If the data line needs to be written to again, a purge of the cached copy or write to the bus occurs, invalidating the line, and returning the line to ‘I’-state in 510 at the end of the write transaction cycle shown.
- a sub-line write command includes states 540 and 545 , ‘M-prime’ state and modified-exclusive ‘ME-prime’ state, respectively.
- the line When the ordering requirements for a sub-line write are met, the line is promoted to ‘M-prime’ state in 540 . In this state, the line resides in the write cache, available for subsequent partial writes to merge into it.
- Two mechanisms can move the data line from ‘M-prime’ state in 540 to ‘M’-state in 535 , where the data line is written to memory. Either, an external snoop detects a line conflict in the write cache or the least recently used (LRU) command is issued to purge the overloaded cache line.
- LRU least recently used
- the data line in ‘M-prime’ state in 540 is moved to ‘ME-prime’ state in 545 .
- the data line may move to ‘C’-state in 530 as a result of either a snoop detecting a line conflict for exclusive ownership for the partial write or ordering requirements for a partial write not being met. If the exclusive ownership for the partial write is granted and the ordering requirements are met for a partial line, the data line changes back to ‘M-prime’ state in 540 to await further sub-line write commands. However, the data line in ‘ME-prime’ state in 545 may need to be written to memory.
- the partial lines are merged for a full line write.
- the line write to memory is performed and the write transaction is completed as the data line is promoted from ‘ME-prime’ state in 545 to ‘M-state’ in 535 .
- the coherency engine no longer holds the state for the line, and is considered invalid ‘I’-state in 510 .
- a data line is requested in invalid ‘I’-state in block 600 .
- Control passes to block 605 , where a request for ownership is issued for exclusive ‘E’-state.
- the data line is placed in ‘E-prime’ state awaiting acknowledgement from the coherency engine to promote the line to exclusive ‘E’-state in block 610 .
- the line is placed in ‘E-prime’ state, awaiting line conflict check completion and communication from the coherency engine in block 610 .
- Bandwidth is typically wasted with continuous requests by the line in exclusive state and NACKs (Not Acknowledged responses) from the coherency engine before exclusive state is granted. By applying intermediate MESI states within the coherency protocol, bandwidth utilization is maximized and latency is minimized.
- the data line is granted ‘E’-state ownership. Control passes to decision block 620 . If a conflict is detected for exclusive access to the line (e.g. more than one cache requests exclusive ‘E’ ownership of the line for a write), the line changes to conflict ‘C’-state in 630 .
- the data line is placed in ‘C’-state, awaiting acknowledgment from the coherency engine for exclusive access to the line.
- the conflict ‘C’-state promotes maximum bandwidth utilization by avoiding unnecessary and superfluous bandwidth usage.
- latency is minimized by the coherency engine, which arbitrates the conflict and communicates exactly when the line can be promoted from ‘C’-state back to exclusive ‘E’-state.
- the line issues a request for exclusive ‘E’-state again in block 605 . This returns the data line to ‘E-prime’ state once again to await acknowledgment for exclusive access to the line.
- a processor write occurs and the line is converted to modified ‘M’-state.
- a sub-line, or partial line, write command converts the data line from ‘E’-state to ‘M-prime’ state.
- a request is issued for ownership to obtain ‘ME-prime’ ownership to for a partial line write in block 705 .
- Control passes to decision block 710 . If a conflict is detected for exclusive access for the partial write, the line changes to conflict ‘C’-state in block 720 , awaiting conflict resolution. As discussed above regarding ‘C’-state and resolution of conflicts for exclusive ‘E’ ownership, the same conflict resolution process applies when a conflict for ‘ME-prime’ ownership occurs.
- the line is placed in ‘ME-prime’ state and the partial write occurs in block 715 .
- Control then passes to decision block 730 . If the system issues a full line write command, the partial line writes are merged into a full line write. The line is merged into a full line write to the processor and the line state converted to modified ‘M-state’ in block 735 . If there is no full line write command, control passes to block 740 so the line returns to ‘M-prime’ state awaiting additional partial writes to the line. However, if a snoop detects a line conflict in the write cache or a least recently used (LRU) command is issued, the line is written as a full line write. The LRU command eliminates the least used cached entry if the number of partials writes outnumber the write capacity of the full line write. The line converts from ‘M-prime’ state to modified ‘M’-state.
- LRU least recently used
- the cache-coherent I/O device 200 includes a write cache 210 , a coherency engine 205 , and one or more read caches 215 and 220 .
- a coherent host interface 230 is provided to connect with a coherent host, such as a front-side bus, an Intel Scalability Port, or a Scalability Node Controller.
- the Scalability Port for example, is a cache-coherent interface optimized for scalable multi-node systems that maintain coherency between all processors and their caches.
- the coherent host interface 230 may connect with two coherent hosts, such as two Scalability Ports.
- At least one input/output interface 235 and 240 is provided to connect with the I/O components or devices 245 and 250 .
- the I/O interface 235 and 240 typically do not directly connect to the I/O components or devices 245 and 250 , though.
- An intermediary device such as a hub-link or input/output bridge, like an Intel P64H2 Hub Interface-to-PCI Bridge, or a VXB InfiniBand (“InfiniBand Architecture Specification”, version 1.0, Jun. 19, 2001, from the InfiniBand Trade Association) Bridge, is generally connected to the I/O interface 235 and 240 , to which the I/O components or devices 245 and 250 connects.
- Each P64H2 bridge has two PCI-X (“PCI-X Specification”, Revision 1.0a, Aug. 29, 2000, from the PCI-SIG) segments to which I/O components or devices 245 and 250 may connect.
- PCI-X is a high-performance extension to the PCI Local Bus having increased bandwidth and bus performance.
- the cache-coherent I/O device 200 may include input/output interfaces 235 and 240 that are coupled to an intermediary device, such as a hub-link or input/output bridge, like a PCI-X bridge 860 or an InfiniBand bridge 870 .
- the I/O components or devices 245 and 250 then connect to the intermediary devices 860 and 870 .
- Cache-coherent I/O device 200 may also include an I/O interface that connects to a legacy input/output bridge 850 to handle connections with legacy I/O components or devices.
- the cache-coherent I/O device 200 is adapted to connect to a coherent host, such as a Scalability Port 840 , which is a cache-coherent interface optimized for scalable multi-node systems that maintain coherency between all processors and their caches.
- the Scalability Port 840 in turn may connect to at least one Scalability Node Controller 820 , which controls the interface between the processors 810 , the main memory 830 (e.g., DRAM), and the Scalability Port 840 .
- the cache-coherent I/O device 200 utilized in the I/O system architecture 800 of the present invention provides for optimized I/O applications in, for example, a chipset for a multi-processor computer system.
- the cache-coherent I/O device 200 minimizes latency and provides quick responses to requests. Implementation scalability and performance are therefore optimized with the cache-coherent I/O device 200 of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
A method and apparatus for the synchronization of distributed caches. More particularly, the present invention to cache memory systems and more particularly to a hierarchical caching protocol suitable for use with distributed caches, including use within a caching input/output (I/O) hub.
Description
This application is a continuation of patent application Ser. No. 10/231,414, filed on Aug. 28, 2002, which will issue on Jun. 9, 2009 as U.S. Pat. No. 7,546,422.
The present invention relates to cache memory systems and more particularly to a hierarchical caching protocol suitable for use with distributed caches (e.g., in Very Large-Scale Integration (VLSI) devices), and may be utilized within a caching input/output (I/O) hub.
As is known in the art, the system cache in a computer system serves to enhance the system performance of modern computers. For example, a cache can maintain data between a processor and relatively slower system memory by holding recently accessed memory locations in case they are needed again. The presence of cache allows the processor to continuously perform operations utilizing the data in the faster-accessing cache.
Architecturally, system cache is designed as a “monolithic” unit. In order to give a processor core simultaneous read and write access from multiple pipelines, multiple ports can be added to the monolithic cache device for external I/O devices. However, there are several detrimental architectural and implementation impacts of using a monolithic cache device with several read/write ports (for example, in a dual-ported monolithic cache). Current monolithic cache devices are not optimized for multiple ports and not the most efficient implementation available.
Computer systems are designed to accommodate a single or multiple central processing units (CPUs), coupled via a common system bus or switch to a memory and a number of external input/output devices. The purpose of providing multiple central processing units is to increase the performance of operations by sharing tasks between the processors. Such an arrangement allows the computer to simultaneously support a number of different applications while supporting I/O components that are, for example, communicating over a network and displaying images on attached display devices. Multi-processor computer systems are typically utilized for enterprise and network server systems.
To enhance performance, all of the devices coupled to the bus must communicate efficiently. Idle cycles on the system bus represent time periods in which an application is not being supported, and therefore represent reduced performance.
A number of situations arise in multi-processor computer system designs in which the bus, although not idle, is not being used efficiently by the processors coupled to the bus. Some of these situations arise due to the differing nature of the devices that are coupled to the bus. For example, processors typically include cache logic for temporary storage of data from the memory. A coherency protocol is implemented to ensure that each central processor unit only retrieves the most up to date version of data from the cache. MESI (Modified-Exclusive-Shared-Invalid) coherency protocol data can be added to cached data in order to arbitrate and synchronize multiple copies of the same data within various caches. Therefore, processors are commonly referred to as “cacheable” devices.
However, I/O components, such as those coupled to a Peripheral Component Interconnect (PCI) (“PCI Local Bus Specification”, version 2.1, Jun. 1, 1995, from the PCI Special Interest Group (PCI-SIG)) bus, are generally non-cacheable devices. That is, they typically do not implement the same cache coherency protocol that is used by the processors. Typically, I/O components retrieve data from memory, or a cacheable device, via a Direct Memory Access (DMA) operation. Accordingly, measures must be taken to ensure that I/O components only retrieve valid data for their operations. An I/O device may be provided as a connection point between various I/O bridge components, to which I/O components are attached, and ultimately, to the processor.
An input/output (I/O) device may be utilized as a caching I/O device. That is, the I/O device includes a single, monolithic caching resource for data. Therefore, because an I/O device is typically coupled to several client ports, a monolithic I/O cache device will suffer the same detrimental architectural and performance impacts as previously discussed. Current I/O cache device designs are not efficient implementations for high performance systems.
Implementing multiple cache systems for processors and I/O devices requires cache coherency amongst the caches. Cache coherency is the synchronization of data in a plurality of caches such that reading a memory location via any cache will return the most recent data written to that location via any other cache. Current solutions for synchronizing multiple cache systems include utilizing the MESI coherency protocol and having each cache broadcast its request to every other cache in the system and then wait for a response from those devices. This approach has the inherent problem of being non-scalable. As additional cache devices are added as needed to a multiple cache system, latency throughout the system is increased dramatically, thereby decreasing overall system performance. Multiple cache systems become impractical to implement, and therefore, a need exists for a scalable method of improving the efficiency and latency performance of distributed caches. Furthermore, a need exists for an improved coherency protocol to improve the performance of synchronization of increased data bandwidth inherent in a distributed cache system.
In view of the above, there is a need for a method and apparatus for synchronizing distributed caches in VLSI device, namely, high performance I/O systems.
Referring to FIG. 1 , a block diagram of a processor cache system employing an embodiment of the present invention is shown. In this embodiment, processor 120 requests data from cache-coherent CPU device 100. The cache-coherent CPU device 100 implements coherency by arbitrating and synchronizing the data within the distributed caches 110 and 115. CPU port components 140 and 145 may include, for example, system RAM, or I/O Components. However, any suitable component for the CPU ports may be utilized as port components 140 and 145. In this example, cache-coherent CPU device 100 is part of a chipset that provides a PCI bus to interface with I/O components (described below) and interfaces with system memory and the CPU.
The cache-coherent CPU device 100 includes a coherency engine 105 and one or more read and write caches 110 and 115. In this embodiment of the cache-coherent CPU device 100, coherency engine 105 contains a reference table, indexing the data within distributed caches 110 and 115. The coherency engine 105 may utilize, for example, the Modified-Exclusive-Shared-Invalid (MESI) coherency protocol, labeling the data with line state MESI tags: ‘M’-state (modified), ‘E’-state (exclusive), ‘S’-state (shared), or ‘I’-state (invalid). In addition, coherency engine 105 may also utilize other coherency protocols, including but not limited to, an improved MESI protocol with intermediate coherency states described further in this application. Each new request from the cache of any of the processor port components 140 and 145 is checked against the table of coherency engine 105. If the request does not interfere with any data found within any of the other caches, the transaction is processed. Utilizing MESI tags enables coherency engine 105 to quickly arbitrate between caches reading from and writing to the same data, meanwhile, keeping all data synchronized and tracked between all caches.
Rather than employing a single monolithic cache, cache-coherent processor device 100 physically partitions the caching resources into smaller, more implementable portions, each connected to coherency engine 105. Caches 110 and 115 are distributed across all ports on the device, such that each cache is associated with a port component. According to an embodiment of the present invention, cache 110 is physically located on the device nearby port component 140 being serviced. Similarly, cache 115 is located proximately to port component 145, thereby reducing the latency of transaction data requests. This approach minimizes the latency for “cache hits” and performance is increased. A cache hit is a request to read from memory that may be satisfied from the cache without using main (or another) memory. Reducing transaction latency is a major benefit of a distributed cache mechanism. This allows the cache coherent device 100 to supply coherent responses to port component devices 140 and 145 without traversing the distance across these devices. However, device 100 must be kept cache coherent with respect to the other coherent devices in the system. This results from host CPU 120 and other coherent port components sending remote coherency “snoops” (i.e. a monitoring signal) to determine if the port component maintains MESI state information for a particular coherent line. Since the coherency engine 105 tracks the MESI state of all coherent lines maintained within the device 100, coherency engine 105 can quickly respond to remote snoop requests. Rather than having the remote snoop request traverse the entire system diameter of each port component to query the local caches directly, the remote snoop is serviced quickly, thereby reducing latency.
Distributing caches, according to this embodiment of the present invention, also provides improvements in scalability design. Using a monolithic cache, an increase in the number of ports would make the CPU device geometrically more complex in design (e.g., a four-port CPU device would be sixteen times more complex using a monolithic cache compared to a one-port CPU device). With this embodiment of the present invention, utilizing a coherency engine, the addition of another port is easier to design into the CPU device by adding the appropriate connections to the coherency engine and an additional cache for the new port. Therefore, distributed caches that implement a coherency directory are inherently more scalable.
Furthermore, the distributed cache architecture improves aggregate bandwidth with each port component 140 and 145 capable of utilizing the full transaction bandwidth for each of the read/ write caches 110 and 115.
Referring to FIG. 2 , a block diagram of an input/output cache device employing an embodiment of the present invention is shown. In this embodiment, cache-coherent I/O device 200 is connected to a coherent host, here, a front-side bus 225. The cache-coherent I/O device 200 implements coherency by arbitrating and synchronizing the data within the distributed caches 210, 215 and 220. A further implementation to improve current systems involves the leveraging of existing transaction buffers to form caches 210, 215 and 220. Buffers are typically present in the internal protocol engines used for external systems and I/O interfaces. These buffers are used to segment and reassemble external transaction requests into sizes that are more suitable to the internal protocol logic. By augmenting these pre-existing buffers with coherency logic and a content addressable memory to track and maintain coherency information, the buffers can be effectively used as MESI coherent caches 210, 215, and 220 implemented within a distributed cache system. I/ O components 245 and 250 may include, for example, a disk drive. However, any suitable component or device for the I/O ports may be utilized as I/ O components 245 and 250.
According to an embodiment of the present invention, a first read cache 215 may be provided and associated with the first I/O interface 235, and a second read cache 220 may be provided and associated with the second I/O interface 240. That is, for each I/ O interface 235, 240, there is a read cache 215, 220 dedicated thereto. This approach minimizes the latency for “cache hits” and performance is increased. This arrangement is particularly useful for data that is prefetched by I/ O components 245 and 250. Any suitable configuration of the number of I/O interfaces, I/O components, and read caches may be utilized. The read caches 215 and 220 provides the I/O component 245 and 250 a low latency copy of the “most likely to use” data. The distributed cache architecture also improves aggregate bandwidth with each port component 245 and 250 capable of utilizing the full transaction bandwidth for each read/ write cache 210, 215 and 220.
In an embodiment of the present invention, a first read cache 215 may be provided and associated with the first I/O interface 235, and a second read cache 220 may be provided and associated with the second I/O interface 240. According to an embodiment of the present invention, the read caches 215 and 220 maintain cache lines in the shared and invalid states. Although the read caches 215 and 220 are shown as being on a single component (i.e., on the cache-coherent I/O device 200), the read caches may be distributed (and separated) on one or more different components. The write cache 210 manages coherent memory writes initiated by the I/ O components 245 and 250. The write cache 210 is also responsible for snooping, or monitoring, through coherent host interface 230 to the front-side bus 225 (or an Intel® Scalability Port) before committing to the memory write. According to an embodiment of the present invention, the write cache 210 follows the Modified-Exclusive-Shared-Invalid (MESI) caching protocol. However, any suitable caching protocol may be utilized.
A coherency engine 205 is provided in the cache-coherent I/O device 200. Coherency engine 205 provides tracking of all of the cache lines in the write cache 210 and the read caches 215 and 220. The coherency engine 205 tracks the line state, as well as a pointer to the structure that stores the tracking data. Tracking the state enables a faster response to requests. Tracking the structures storing the line enables the protocol that is required between the structures.
A local request buffer may be provided with the cache-coherent I/O device 200 to store all inbound coherent and non-coherent transactions. A remote request buffer may also be provided with cache-coherent I/O device 200 to check for conflicts between snoop or invalidate cycles from the coherent host and the inbound requests from cache-coherent I/O device 200 itself.
The cache-coherent I/O device 200 may have a plurality of caching resources, each including a write cache 210, a coherency engine 205, one or more read cache 215 and 220, a local request buffer, and a remote request buffer. Moreover, the cache-coherent I/O device 200 may include a coherency engine 205 interconnecting the read caches 215 and 220 and the write cache 210. The coherency engine 205 is utilized to synchronize the caches within the caching resources.
Effective transaction bandwidth in I/O devices is improved in at least two ways by utilizing a cache-coherent I/O device 200. Cache-coherent I/O device 200 may aggressively prefetch data. If cache-coherent device 200 speculatively requests ownership of data subsequently requested or modified by the processor system, caches 210, 215 and 220 may be “snooped” (i.e. monitored) by the processor, which, in turn, will return the data with the correct coherency state preserved. As a result, cache-coherent device 200 can selectively purge contended coherent data, rather than deleting all prefetched data in a non-coherent system where data is modified in one of the prefetch buffers. Therefore, the cache hit rate is increased, thereby increasing performance.
Cache-coherent I/O device 200 also enables pipelining coherent ownership requests for a series of inbound write transactions destined for coherent memory. This is possible because cache-coherent I/O device 200 provides an internal cache which is maintained coherent with respect to system memory. The write transactions can be issued without blocking the ownership requests as they return. Existing I/O devices must block each inbound write transaction, waiting for the system memory controller to complete the transaction before subsequent write transactions may be issued. Pipelining I/O writes significantly improves the aggregate bandwidth of inbound write transactions to coherent memory space.
As seen from the above, the distributed caches serve to enhance overall cache system performance. The distributed caches system enhances the architecture and implementation of a cache system with multiple ports. Specifically within I/O cache systems, distributed caches conserve the internal buffer resources in I/O devices, thereby improving device size, while improving the latency and bandwidth of I/O devices to memory.
Referring to FIG. 3 , a flow diagram of an inbound coherent read transaction employing an embodiment of the present invention is shown. An inbound coherent read transaction originates from port component 140 or 145 (or similarly from I/O component 245 or 250). Accordingly, in block 300, a read transaction is issued. Control is passed to decision block 305, where the address for the read transaction is checked within the distributed caches 110 or 115 (or similarly from caches 215 or 220). If the check results in a cache hit, then the data is retrieved from the cache in block 310. Control then passes to block 315 where speculatively prefetched data in the cache can be utilized to increase the effective read bandwidth and reduce the read transaction latency. If the read transaction data is not found in cache from decision block 305, resulting in a miss, a cache line is allocated for the read transaction request in block 320. Control then passes to block 325 where the read transaction is forwarded to the coherent host to retrieve the requested data. In requesting this data, the speculative prefetch mechanism in block 315 can be utilized to increase the cache hit rate by speculatively reading one or more cache lines ahead of the current read request and by maintaining the speculatively read data coherent in the distributed cache.
Referring to FIG. 4 , a flow diagram of one or more inbound coherent write transactions employing an embodiment of the present invention is shown. An inbound coherent write transaction originates from port component 140 or 145 (or similarly from I/O component 245 or 250). Accordingly, in block 400, a write transaction is issued. Control is passed to block 405, where the address for the write transaction is checked within the distributed caches 110 or 115.
In decision block 410, a determination is made whether the check results in a “cache hit” or “cache miss.” If the cache-coherent device does not have exclusive ‘E’ or modified ‘M’ ownership of the cache line, the check results in a cache miss. Control then passes to block 415, where the coherency engine will forward a “request for ownership” to an external coherency device (e.g. memory) requesting exclusive ‘E’ ownership of the target cache line. When exclusive ownership is granted to the cache-coherent device, the coherency engine marks the line as ‘M’. At this point, in decision block 420, the coherency engine may either forward the write transaction data to the front-side bus to write data in coherent memory space in block 425, or maintain the data locally in the distributed caches in modified ‘M’-state in block 430. If the coherency engine always forwards the write data to the front-side bus upon receiving exclusive ‘E’ ownership of the line, then the cache-coherent device operates as a “write-through” cache, in block 425. If the coherency engine maintains the data locally in the distributed caches in modified ‘M’-state, then the cache-coherent device operates as a “write-back” cache, in block 430. In each instance, either forwarding the write transaction data to the front-side bus to write data in coherent memory space in block 425, or maintaining the data locally in the distributed caches in modified ‘M’-state in block 430, control then passes to block 435, where the pipelining capability within distributed caches is utilized.
In block 435, the pipelining capability of global system coherency can be utilized to streamline a series of inbound write transactions, thereby improving the aggregate bandwidth of inbound writes to memory. Since global system coherency will be maintained if the write transaction data is promoted to modified ‘M’-state in the same order it was received from port component 140 or 145 (or similarly from I/O component 245 or 250), the processing of a stream of multiple write requests may be pipelined. In this mode, the coherency engine will forward a request for ownership to an external coherency device requesting exclusive ‘E’ ownership of the target cache line as each write request is received from port component 140 or 145 (or similarly from I/O component 245 or 250). When exclusive ownership is granted to the cache-coherent device, the coherency engine marks the line as modified ‘M’ as soon as all the preceding writes have also been marked as modified ‘M’. As a result, a series of inbound writes from port 140 or 145 (or similarly from I/O component 245 or 250) will result in a corresponding series of ownership requests, with the stream of writes being promoted to modified ‘M’-state in the proper order for global system coherency.
If a determination is made that the check results in a “cache hit” in decision block 410, control then passes to decision block 440. If the cache-coherent device already has exclusive ‘E’ or modified ‘M’ ownership of the cache line in one of the other distributed caches, the check results in a cache hit. At this point, in decision block 440, the coherency engine will manage the coherency conflict either as a write-through cache, passing control to block 445, or, as a write-back cache, passing control to block 455. If the coherency engine always blocks the new write transaction until the senior write data can be forwarded to the front-side bus upon receiving a subsequent write to the same line, then the cache-coherent device operates as a write-through cache. If the coherency engine always merges the data from both writes locally in the distributed caches in modified ‘M’-state, then the cache-coherent device operates as a write-back cache. As a write-through cache, the new write transaction is blocked in block 445, until the older (“senior”) write transaction data can be forwarded to the front-side bus to write data in coherent memory space in block 450. After the senior write transactions have been forwarded, other write transactions can then be forwarded to the front-side bus to write data in coherent memory space in block 425. Control then passes to block 435, where the pipelining capability of distributed caches is utilized. As a write-back cache in block 455, the data from both writes is merged locally in the distributed caches in modified ‘M’-state, and held internally in modified ‘M’-state in block 430. Again, control passes to block 435, where multiple inbound write transactions may be pipelined, as described above.
Referring to FIG. 5 , a state machine diagram showing a coherency protocol employing an embodiment of the present invention is shown. The state machine diagram illustrates the system utilizing the MESI coherency protocol and intermediate states described herein.
In state 510, a data line is in ‘I’-state, where both reads and writes typically begin. However, the coherency engine does not have state information for transactions in this state. If the data line is not already present in the cache when a read transaction is issued, the data line is allocated to the cache. The data can then be retrieved from a processor or bus read. After the read transaction is completed, the coherency engine recognizes the data line as ‘S’-state in 515. Once the line is purged or written to the bus, the line is invalid and returned to ‘I’-state in 510. However, when in ‘S’-state, if a snoop detects a line conflict, the coherency engine changes the data line to shared-conflict state as ‘SC’-state in 550 to invalidate the line.
When a write transaction is issued, the line starts as ‘I’-state in 510. The line is requested as exclusive, and then is immediately changed ‘E-prime’ state in 520 awaiting acknowledgement from the coherency engine to promote the line to exclusive ‘E’-state in 525. A request for ownership is issued from the internal ordering queues, but the data line remains in ‘E-prime’ state in 520 until a positive completion for exclusive ownership is received from the coherency engine. If a snoop detects a line in the cache as ‘S’-state, the data line must be invalidated and moves to ‘SC’-state in 550. The line is invalidated and returned to ‘I’-state in 510. Or, if a line conflict is detected in the request for exclusive ownership, the line transitions to ‘SC’ state in 555 and waits for the conflict to be resolved. After the inbound request for ownership is granted, a snoop responds by moving the line to exclusive ‘E’-state in 525.
In ‘E-prime’ state in 520, when the request for ownership is completed, the line moves to ‘E’-state in 525. If a conflict is detected for exclusive access to the line, the line changes to conflict ‘C’-state in 530. A line moves to ‘C’-state as a result of either when a snoop detects a line conflict for exclusive ‘E’-state ownership or when the ordering requirements for a line write have not been met. When the conflict is resolved, the line returns to ‘E-prime’ in 520 awaiting acknowledgment to exclusive access to the line in ‘E’-state in 525.
From ‘E’-state, the line can be modified by writing either a full line writes or a sub-line writes in the form of partial writes to the line. A full line write command completes a processor write and changes the line state to ‘M’-state in 535. This occurs as a result of meeting the ordering requirements for a full line write. The line write to memory is performed and the write transaction is completed. If the data line needs to be written to again, a purge of the cached copy or write to the bus occurs, invalidating the line, and returning the line to ‘I’-state in 510 at the end of the write transaction cycle shown. A sub-line write command includes states 540 and 545, ‘M-prime’ state and modified-exclusive ‘ME-prime’ state, respectively. When the ordering requirements for a sub-line write are met, the line is promoted to ‘M-prime’ state in 540. In this state, the line resides in the write cache, available for subsequent partial writes to merge into it. Two mechanisms can move the data line from ‘M-prime’ state in 540 to ‘M’-state in 535, where the data line is written to memory. Either, an external snoop detects a line conflict in the write cache or the least recently used (LRU) command is issued to purge the overloaded cache line.
When a subsequent sub-line write makes a request for ownership, the data line in ‘M-prime’ state in 540 is moved to ‘ME-prime’ state in 545. In this pseudo-exclusive state, similar to the ‘E-prime’ state, the data line may move to ‘C’-state in 530 as a result of either a snoop detecting a line conflict for exclusive ownership for the partial write or ordering requirements for a partial write not being met. If the exclusive ownership for the partial write is granted and the ordering requirements are met for a partial line, the data line changes back to ‘M-prime’ state in 540 to await further sub-line write commands. However, the data line in ‘ME-prime’ state in 545 may need to be written to memory. If the ordering requirements for a full line write are met, the partial lines are merged for a full line write. The line write to memory is performed and the write transaction is completed as the data line is promoted from ‘ME-prime’ state in 545 to ‘M-state’ in 535. Once the line is written to memory, the coherency engine no longer holds the state for the line, and is considered invalid ‘I’-state in 510.
The intermediate MESI states, ‘E-prime’ in state 520, ‘C’-state (conflict) in state 530, ‘M-prime’ in state 540, and ‘ME-prime’ (modified/exclusive) in state 545 are discussed in further detail in FIG. 6 and FIG. 7 below.
Referring to FIG. 6 , a flow diagram is shown to demonstrate resolving a request for ownership conflict utilizing the intermediate coherency protocol states employing an embodiment of the present invention. A data line is requested in invalid ‘I’-state in block 600. Control passes to block 605, where a request for ownership is issued for exclusive ‘E’-state. The data line is placed in ‘E-prime’ state awaiting acknowledgement from the coherency engine to promote the line to exclusive ‘E’-state in block 610. Commonly, because of the potential latency due to the communication distances from the various caches arbitrated by the coherency engine, the line is placed in ‘E-prime’ state, awaiting line conflict check completion and communication from the coherency engine in block 610. Bandwidth is typically wasted with continuous requests by the line in exclusive state and NACKs (Not Acknowledged responses) from the coherency engine before exclusive state is granted. By applying intermediate MESI states within the coherency protocol, bandwidth utilization is maximized and latency is minimized. In block 615, the data line is granted ‘E’-state ownership. Control passes to decision block 620. If a conflict is detected for exclusive access to the line (e.g. more than one cache requests exclusive ‘E’ ownership of the line for a write), the line changes to conflict ‘C’-state in 630. Rather than return to ‘I’-state and continuously request exclusive ‘E’ access for the line only to receive NACKs in response, the data line is placed in ‘C’-state, awaiting acknowledgment from the coherency engine for exclusive access to the line. Again, the conflict ‘C’-state promotes maximum bandwidth utilization by avoiding unnecessary and superfluous bandwidth usage. Further, latency is minimized by the coherency engine, which arbitrates the conflict and communicates exactly when the line can be promoted from ‘C’-state back to exclusive ‘E’-state. When the conflict is resolved, the line issues a request for exclusive ‘E’-state again in block 605. This returns the data line to ‘E-prime’ state once again to await acknowledgment for exclusive access to the line.
If no ownership conflict exists for the data line, control passes to block 625, where a full line write commands is issued. A processor write occurs and the line is converted to modified ‘M’-state.
Referring to FIG. 7 , a flow diagram of an inbound coherent write transaction for a partial line write employing an embodiment of the present invention is shown. In block 700, a sub-line, or partial line, write command converts the data line from ‘E’-state to ‘M-prime’ state. A request is issued for ownership to obtain ‘ME-prime’ ownership to for a partial line write in block 705. Control passes to decision block 710. If a conflict is detected for exclusive access for the partial write, the line changes to conflict ‘C’-state in block 720, awaiting conflict resolution. As discussed above regarding ‘C’-state and resolution of conflicts for exclusive ‘E’ ownership, the same conflict resolution process applies when a conflict for ‘ME-prime’ ownership occurs. The benefits of reduced latency and increased bandwidth utilization as discussed above for the conflict ‘C’-state also apply in this example. When the conflict is resolved, in block 725, the line issues a request for exclusive ‘E’-state again to attempt the sub-line write once more. This returns control back to block 700.
If no conflicts result from the request for ‘ME-prime’ ownership, the line is placed in ‘ME-prime’ state and the partial write occurs in block 715. Control then passes to decision block 730. If the system issues a full line write command, the partial line writes are merged into a full line write. The line is merged into a full line write to the processor and the line state converted to modified ‘M-state’ in block 735. If there is no full line write command, control passes to block 740 so the line returns to ‘M-prime’ state awaiting additional partial writes to the line. However, if a snoop detects a line conflict in the write cache or a least recently used (LRU) command is issued, the line is written as a full line write. The LRU command eliminates the least used cached entry if the number of partials writes outnumber the write capacity of the full line write. The line converts from ‘M-prime’ state to modified ‘M’-state.
Referring to FIG. 8 , an input/output system architecture illustration according to an embodiment of the present invention is shown. The cache-coherent I/O device 200 includes a write cache 210, a coherency engine 205, and one or more read caches 215 and 220. A coherent host interface 230 is provided to connect with a coherent host, such as a front-side bus, an Intel Scalability Port, or a Scalability Node Controller. The Scalability Port, for example, is a cache-coherent interface optimized for scalable multi-node systems that maintain coherency between all processors and their caches. According to one embodiment of the present invention, the coherent host interface 230 may connect with two coherent hosts, such as two Scalability Ports. At least one input/ output interface 235 and 240 is provided to connect with the I/O components or devices 245 and 250. The I/ O interface 235 and 240 typically do not directly connect to the I/O components or devices 245 and 250, though. An intermediary device, such as a hub-link or input/output bridge, like an Intel P64H2 Hub Interface-to-PCI Bridge, or a VXB InfiniBand (“InfiniBand Architecture Specification”, version 1.0, Jun. 19, 2001, from the InfiniBand Trade Association) Bridge, is generally connected to the I/ O interface 235 and 240, to which the I/O components or devices 245 and 250 connects. Each P64H2 bridge, for example, has two PCI-X (“PCI-X Specification”, Revision 1.0a, Aug. 29, 2000, from the PCI-SIG) segments to which I/O components or devices 245 and 250 may connect. PCI-X is a high-performance extension to the PCI Local Bus having increased bandwidth and bus performance.
As discussed above, the cache-coherent I/O device 200 may include input/ output interfaces 235 and 240 that are coupled to an intermediary device, such as a hub-link or input/output bridge, like a PCI-X bridge 860 or an InfiniBand bridge 870. The I/O components or devices 245 and 250 then connect to the intermediary devices 860 and 870. Cache-coherent I/O device 200 may also include an I/O interface that connects to a legacy input/output bridge 850 to handle connections with legacy I/O components or devices.
The cache-coherent I/O device 200 is adapted to connect to a coherent host, such as a Scalability Port 840, which is a cache-coherent interface optimized for scalable multi-node systems that maintain coherency between all processors and their caches. The Scalability Port 840 in turn may connect to at least one Scalability Node Controller 820, which controls the interface between the processors 810, the main memory 830 (e.g., DRAM), and the Scalability Port 840.
Accordingly, the cache-coherent I/O device 200 utilized in the I/O system architecture 800 of the present invention provides for optimized I/O applications in, for example, a chipset for a multi-processor computer system. The cache-coherent I/O device 200 minimizes latency and provides quick responses to requests. Implementation scalability and performance are therefore optimized with the cache-coherent I/O device 200 of the present invention.
While the description above refers to particular embodiments of the present invention, it will be understood that many modifications may be made without departing from the spirit thereof. The accompanying claims are intended to cover such modifications as would fall within the true scope and spirit of the present invention. The presently disclosed embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims, rather than the foregoing description, and all changes that come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.
Claims (30)
1. In a cache-coherent device including a coherency engine and a plurality of client ports, a method for processing a transaction, comprising:
receiving a transaction request for a data element at one of said plurality of client ports, said transaction request includes an address;
determining whether said address is present in one of a plurality of sub-unit caches, each of said sub-unit caches assigned to one of said plurality of client ports; and
tracking with said coherency engine the state information of said data element in said plurality of sub-unit caches according to a coherency protocol wherein the state information is set to an intermediate state upon detection of a conflict and released from the intermediate state upon resolution of the conflict.
2. The method of claim 1 wherein said transaction request is a read transaction request.
3. The method of claim 2 further comprising:
transmitting said data element for said read transaction request from said one of said plurality of sub-unit caches to one of said plurality of client ports.
4. The method of claim 3 further comprising:
prefetching one or more cache lines ahead of said read transaction request; and
updating a coherency state information in said plurality of sub-unit caches.
5. The method of claim 4 wherein a coherency state is stored as a set of status bits in said plurality of sub-unit caches and utilized by the cache coherency protocol, wherein said set of status bits for each data element in the cache include: a modified bit, an exclusive bit, a shared bit, an invalid bit, an exclusive prime bit, a modified prime bit, a modified-exclusive prime bit, a conflict bit, and a shared conflict bit.
6. The method of claim 1 wherein said transaction request is a write transaction request.
7. The method of claim 6 further comprising:
modifying coherency state information for a cache line in said one of said plurality of sub-unit caches;
updating coherency state information in others of said plurality of sub-unit caches by said coherency engine; and
transmitting data for said write transaction request from said one of said plurality of sub-unit caches to memory.
8. The method of claim 7 further comprising:
modifying coherency state information of said write transaction request in the order received; and
pipelining multiple write requests.
9. The method of claim 8 wherein a coherency state is stored as a set of status bits in said plurality of sub-unit caches and utilized by the cache coherency protocol, wherein said set of status bits for each data element in the cache include: a modified bit, an exclusive bit, a shared bit, an invalid bit, an exclusive prime bit, a modified prime bit, a modified-exclusive prime bit, a conflict bit, and a shared conflict bit.
10. A cache-coherent device comprising:
a plurality of client ports, each to be coupled to one of a plurality of port components, and each to be coupled to one or more of a plurality of sub-unit caches; and
a coherency engine coupled to said plurality of sub-unit caches, wherein said coherency engine is to track the state information of a data element cached in said plurality of sub-unit caches according to a coherency protocol wherein the state information is set to an intermediate state upon detection of a conflict and released from the intermediate state upon resolution of the conflict.
11. The device of claim 10 wherein said plurality of sub-unit caches is operable to generate a plurality of signals, including:
a first signal generated in response to a snoop for a data element that is requested in exclusive state;
a second signal generated in response to a snoop for a data element that is granted in exclusive state;
a third signal that is generated for a data element that cannot be granted exclusive state.
12. The device of claim 11 wherein said plurality of signals further include:
a fourth signal generated in response to a sub-line write command for a data element that is to be written as a partial line write;
a fifth signal generated in response to a snoop for a data element that is requested in exclusive state for a partial line write; and
a sixth signal that is generated for a data element that cannot be granted modified-exclusive prime state.
13. The device of claim 12 wherein said plurality of sub-unit caches include transaction buffers that operate on a coherency logic protocol.
14. The device of claim 13 wherein said plurality of port components include processor port components.
15. The device of claim 13 wherein said plurality of port components include input/output components.
16. The device of claim 13 wherein said plurality of sub-unit caches store a set of status bits for each data element in the cache, including a modified bit, an exclusive bit, a shared bit, an invalid bit, an exclusive prime bit, a modified prime bit, a modified-exclusive prime bit, a conflict bit, and a shared-conflict bit.
17. The device of claim 16 wherein:
said first signal is an exclusive prime signal.
18. The device of claim 16 wherein:
said second signal is an exclusive signal.
19. The device of claim 16 wherein:
said third signal is a conflict signal.
20. The device of claim 16 wherein:
said fourth signal is a modified prime signal.
21. The device of claim 16 wherein:
said fifth signal is a modified-exclusive prime signal.
22. The device of claim 16 wherein:
said sixth signal is a conflict signal.
23. A processing system comprising:
a processor;
a plurality of port components; and
a cache-coherent device coupled to said processor and including a plurality of client ports, each coupled to one of said plurality of port components, said cache-coherent device further including a plurality of sub-unit caches, each coupled to one of said plurality of client ports and assigned to one of said plurality of port components, a coherency engine coupled to said plurality of sub-unit caches, wherein said coherency engine is to track the state information of a data element cached in said plurality of sub-unit caches according to a coherency protocol wherein the state information is set to an intermediate state upon detection of a conflict and released from the intermediate state upon resolution of the conflict.
24. The system of claim 23 wherein said plurality of sub-unit caches is operable to generate a plurality of signals, including:
a first signal generated in response to a snoop for a data element that is requested in exclusive state;
a second signal generated in response to a snoop for a data element that is granted in exclusive state; and
a third signal that is generated for a data element that cannot be granted exclusive state.
25. The system of claim 24 wherein said plurality of signals further include:
a fourth signal generated in response to a sub-line write command for a data element that is to be written as a partial line write;
a fifth signal generated in response to a snoop for a data element that is requested in exclusive state for a partial line write; and
a sixth signal that is generated for a data element that cannot be granted modified-exclusive prime state.
26. The processing system of claim 25 wherein said plurality of port components include input/output components.
27. The system of claim 26 wherein said plurality of sub-unit caches include transaction buffers that operate on a coherency logic protocol.
28. The system of claim 27 wherein said plurality of sub-unit caches store a set of status bits for each data element in the cache, including a modified bit, an exclusive bit, a shared bit, an invalid bit, an exclusive prime bit, a modified prime bit, a modified-exclusive prime bit, a conflict bit, and a shared-conflict bit.
29. A set of instructions residing in a storage medium, said set of instructions capable of being executed by a processor to implement a method for processing a transaction, comprising:
receiving a transaction request for a data element at one of a plurality of client ports, said transaction request includes an address;
determining whether said address is present in one of a plurality of sub-unit caches, each of said sub-unit caches assigned to one of said plurality of client ports; and
tracking with a coherency engine the state information of said data element in said plurality of sub-unit caches according to a coherency protocol, wherein the state information is set to an intermediate state upon detection of a conflict and released from the intermediate state upon resolution of the conflict.
30. The method of claim 29 wherein a coherency state is stored as a set of status bits in said plurality of sub-unit caches and utilized by the cache coherency protocol, wherein said set of status bits for each data element in the cache include: a modified bit, an exclusive bit, a shared bit, an invalid bit, an exclusive prime bit, a modified prime bit, a modified-exclusive prime bit, a conflict bit, and a shared conflict bit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US12/479,541 US8046539B2 (en) | 2002-08-28 | 2009-06-05 | Method and apparatus for the synchronization of distributed caches |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US10/231,414 US7546422B2 (en) | 2002-08-28 | 2002-08-28 | Method and apparatus for the synchronization of distributed caches |
US12/479,541 US8046539B2 (en) | 2002-08-28 | 2009-06-05 | Method and apparatus for the synchronization of distributed caches |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US10/231,414 Continuation US7546422B2 (en) | 2002-08-28 | 2002-08-28 | Method and apparatus for the synchronization of distributed caches |
Publications (2)
Publication Number | Publication Date |
---|---|
US20090240894A1 US20090240894A1 (en) | 2009-09-24 |
US8046539B2 true US8046539B2 (en) | 2011-10-25 |
Family
ID=31976703
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US10/231,414 Expired - Fee Related US7546422B2 (en) | 2002-08-28 | 2002-08-28 | Method and apparatus for the synchronization of distributed caches |
US12/479,541 Expired - Fee Related US8046539B2 (en) | 2002-08-28 | 2009-06-05 | Method and apparatus for the synchronization of distributed caches |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US10/231,414 Expired - Fee Related US7546422B2 (en) | 2002-08-28 | 2002-08-28 | Method and apparatus for the synchronization of distributed caches |
Country Status (1)
Country | Link |
---|---|
US (2) | US7546422B2 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9086974B2 (en) | 2013-09-26 | 2015-07-21 | International Business Machines Corporation | Centralized management of high-contention cache lines in multi-processor computing environments |
US9292444B2 (en) | 2013-09-26 | 2016-03-22 | International Business Machines Corporation | Multi-granular cache management in multi-processor computing environments |
US9298623B2 (en) | 2013-09-26 | 2016-03-29 | Globalfoundries Inc. | Identifying high-conflict cache lines in transactional memory computing environments |
US9298626B2 (en) | 2013-09-26 | 2016-03-29 | Globalfoundries Inc. | Managing high-conflict cache lines in transactional memory computing environments |
US9329890B2 (en) | 2013-09-26 | 2016-05-03 | Globalfoundries Inc. | Managing high-coherence-miss cache lines in multi-processor computing environments |
US9380127B2 (en) | 2011-05-18 | 2016-06-28 | Alibaba Group Holding Limited | Distributed caching and cache analysis |
US10452545B1 (en) | 2017-10-06 | 2019-10-22 | Veritas Technologies Llc | Systems and methods for maintaining cache coherency |
Families Citing this family (98)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030041215A1 (en) * | 2001-08-27 | 2003-02-27 | George Robert T. | Method and apparatus for the utilization of distributed caches |
US8185602B2 (en) | 2002-11-05 | 2012-05-22 | Newisys, Inc. | Transaction processing using multiple protocol engines in systems having multiple multi-processor clusters |
US20060236071A1 (en) * | 2005-04-15 | 2006-10-19 | Barszczak Tomasz M | Method and system for optimizing operations on memory device |
US7840755B2 (en) * | 2005-05-24 | 2010-11-23 | Lsi Corporation | Methods and systems for automatically identifying a modification to a storage array |
US20070073979A1 (en) * | 2005-09-29 | 2007-03-29 | Benjamin Tsien | Snoop processing for multi-processor computing system |
US7600078B1 (en) * | 2006-03-29 | 2009-10-06 | Intel Corporation | Speculatively performing read transactions |
US8327115B2 (en) | 2006-04-12 | 2012-12-04 | Soft Machines, Inc. | Plural matrices of execution units for processing matrices of row dependent instructions in single clock cycle in super or separate mode |
EP2527972A3 (en) | 2006-11-14 | 2014-08-06 | Soft Machines, Inc. | Apparatus and method for processing complex instruction formats in a multi- threaded architecture supporting various context switch modes and virtualization schemes |
US7752350B2 (en) * | 2007-02-23 | 2010-07-06 | International Business Machines Corporation | System and method for efficient implementation of software-managed cache |
US8364882B2 (en) * | 2007-12-31 | 2013-01-29 | Intel Corporation | System and method for executing full and partial writes to DRAM in a DIMM configuration |
US8347035B2 (en) * | 2008-12-18 | 2013-01-01 | Intel Corporation | Posting weakly ordered transactions |
US9952968B2 (en) * | 2010-01-29 | 2018-04-24 | Micro Focus Software, Inc. | Methods and system for maintaining data coherency in distributed data cache network |
KR101685247B1 (en) | 2010-09-17 | 2016-12-09 | 소프트 머신즈, 인크. | Single cycle multi-branch prediction including shadow cache for early far branch prediction |
US20120079212A1 (en) | 2010-09-23 | 2012-03-29 | International Business Machines Corporation | Architecture for sharing caches among multiple processes |
US8806153B2 (en) * | 2011-02-22 | 2014-08-12 | International Business Machines Corporation | Partial line cache write injector for direct memory access write |
CN108376097B (en) | 2011-03-25 | 2022-04-15 | 英特尔公司 | Register file segments for supporting code block execution by using virtual cores instantiated by partitionable engines |
CN103547993B (en) | 2011-03-25 | 2018-06-26 | 英特尔公司 | By using the virtual core by divisible engine instance come execute instruction sequence code block |
EP2689326B1 (en) | 2011-03-25 | 2022-11-16 | Intel Corporation | Memory fragments for supporting code block execution by using virtual cores instantiated by partitionable engines |
TWI603198B (en) | 2011-05-20 | 2017-10-21 | 英特爾股份有限公司 | Decentralized allocation of resources and interconnect structures to support the execution of instruction sequences by a plurality of engines |
WO2012162189A1 (en) | 2011-05-20 | 2012-11-29 | Soft Machines, Inc. | An interconnect structure to support the execution of instruction sequences by a plurality of engines |
US8661449B2 (en) | 2011-06-17 | 2014-02-25 | Microsoft Corporation | Transactional computation on clusters |
EP2783280B1 (en) | 2011-11-22 | 2019-09-11 | Intel Corporation | An accelerated code optimizer for a multiengine microprocessor |
WO2013077876A1 (en) | 2011-11-22 | 2013-05-30 | Soft Machines, Inc. | A microprocessor accelerated code optimizer |
WO2013095511A1 (en) * | 2011-12-22 | 2013-06-27 | Intel Corporation | Prefetch with request for ownership without data |
GB2500964B (en) * | 2012-02-08 | 2014-06-11 | Ibm | Forward progress mechanism for stores in the presence of load contention in a system favoring loads by state alteration |
US8799588B2 (en) * | 2012-02-08 | 2014-08-05 | International Business Machines Corporation | Forward progress mechanism for stores in the presence of load contention in a system favoring loads by state alteration |
US8930674B2 (en) | 2012-03-07 | 2015-01-06 | Soft Machines, Inc. | Systems and methods for accessing a unified translation lookaside buffer |
KR101944329B1 (en) | 2012-04-17 | 2019-04-18 | 삼성전자주식회사 | Multi processor system and managing method for cache memory thereof |
US9274963B2 (en) | 2012-07-20 | 2016-03-01 | International Business Machines Corporation | Cache replacement for shared memory caches |
US9229873B2 (en) | 2012-07-30 | 2016-01-05 | Soft Machines, Inc. | Systems and methods for supporting a plurality of load and store accesses of a cache |
US9710399B2 (en) | 2012-07-30 | 2017-07-18 | Intel Corporation | Systems and methods for flushing a cache with modified data |
US9740612B2 (en) * | 2012-07-30 | 2017-08-22 | Intel Corporation | Systems and methods for maintaining the coherency of a store coalescing cache and a load cache |
US9916253B2 (en) | 2012-07-30 | 2018-03-13 | Intel Corporation | Method and apparatus for supporting a plurality of load accesses of a cache in a single cycle to maintain throughput |
US9430410B2 (en) | 2012-07-30 | 2016-08-30 | Soft Machines, Inc. | Systems and methods for supporting a plurality of load accesses of a cache in a single cycle |
US9678882B2 (en) | 2012-10-11 | 2017-06-13 | Intel Corporation | Systems and methods for non-blocking implementation of cache flush instructions |
EP2972845B1 (en) | 2013-03-15 | 2021-07-07 | Intel Corporation | A method for executing multithreaded instructions grouped onto blocks |
US9886279B2 (en) | 2013-03-15 | 2018-02-06 | Intel Corporation | Method for populating and instruction view data structure by using register template snapshots |
US9904625B2 (en) | 2013-03-15 | 2018-02-27 | Intel Corporation | Methods, systems and apparatus for predicting the way of a set associative cache |
WO2014150806A1 (en) | 2013-03-15 | 2014-09-25 | Soft Machines, Inc. | A method for populating register view data structure by using register template snapshots |
WO2014150991A1 (en) | 2013-03-15 | 2014-09-25 | Soft Machines, Inc. | A method for implementing a reduced size register view data structure in a microprocessor |
CN105247484B (en) | 2013-03-15 | 2021-02-23 | 英特尔公司 | Method for emulating a guest centralized flag architecture using a locally distributed flag architecture |
WO2014150971A1 (en) | 2013-03-15 | 2014-09-25 | Soft Machines, Inc. | A method for dependency broadcasting through a block organized source view data structure |
US9569216B2 (en) | 2013-03-15 | 2017-02-14 | Soft Machines, Inc. | Method for populating a source view data structure by using register template snapshots |
US9891924B2 (en) | 2013-03-15 | 2018-02-13 | Intel Corporation | Method for implementing a reduced size register view data structure in a microprocessor |
US10275255B2 (en) | 2013-03-15 | 2019-04-30 | Intel Corporation | Method for dependency broadcasting through a source organized source view data structure |
US10140138B2 (en) | 2013-03-15 | 2018-11-27 | Intel Corporation | Methods, systems and apparatus for supporting wide and efficient front-end operation with guest-architecture emulation |
US9811342B2 (en) | 2013-03-15 | 2017-11-07 | Intel Corporation | Method for performing dual dispatch of blocks and half blocks |
CN103383666B (en) * | 2013-07-16 | 2016-12-28 | 中国科学院计算技术研究所 | Improve method and system and the cache access method of cache prefetching data locality |
US9524195B2 (en) | 2014-02-27 | 2016-12-20 | International Business Machines Corporation | Adaptive process for data sharing with selection of lock elision and locking |
US9880933B1 (en) * | 2013-11-20 | 2018-01-30 | Amazon Technologies, Inc. | Distributed in-memory buffer cache system using buffer cache nodes |
US20150186277A1 (en) * | 2013-12-30 | 2015-07-02 | Netspeed Systems | Cache coherent noc with flexible number of cores, i/o devices, directory structure and coherency points |
US9652387B2 (en) | 2014-01-03 | 2017-05-16 | Red Hat, Inc. | Cache system with multiple cache unit states |
US9424071B2 (en) | 2014-01-24 | 2016-08-23 | International Business Machines Corporation | Transaction digest generation during nested transactional execution |
US9465746B2 (en) | 2014-01-24 | 2016-10-11 | International Business Machines Corporation | Diagnostics for transactional execution errors in reliable transactions |
US9317379B2 (en) | 2014-01-24 | 2016-04-19 | International Business Machines Corporation | Using transactional execution for reliability and recovery of transient failures |
US9323568B2 (en) | 2014-01-24 | 2016-04-26 | International Business Machines Corporation | Indicating a low priority transaction |
US9304935B2 (en) | 2014-01-24 | 2016-04-05 | International Business Machines Corporation | Enhancing reliability of transaction execution by using transaction digests |
US9645879B2 (en) | 2014-02-27 | 2017-05-09 | International Business Machines Corporation | Salvaging hardware transactions with instructions |
US9361041B2 (en) | 2014-02-27 | 2016-06-07 | International Business Machines Corporation | Hint instruction for managing transactional aborts in transactional memory computing environments |
US9442775B2 (en) | 2014-02-27 | 2016-09-13 | International Business Machines Corporation | Salvaging hardware transactions with instructions to transfer transaction execution control |
US9471371B2 (en) | 2014-02-27 | 2016-10-18 | International Business Machines Corporation | Dynamic prediction of concurrent hardware transactions resource requirements and allocation |
US20150242216A1 (en) | 2014-02-27 | 2015-08-27 | International Business Machines Corporation | Committing hardware transactions that are about to run out of resource |
US9430273B2 (en) | 2014-02-27 | 2016-08-30 | International Business Machines Corporation | Suppressing aborting a transaction beyond a threshold execution duration based on the predicted duration |
US9411729B2 (en) | 2014-02-27 | 2016-08-09 | International Business Machines Corporation | Salvaging lock elision transactions |
US9336097B2 (en) | 2014-02-27 | 2016-05-10 | International Business Machines Corporation | Salvaging hardware transactions |
US9262206B2 (en) | 2014-02-27 | 2016-02-16 | International Business Machines Corporation | Using the transaction-begin instruction to manage transactional aborts in transactional memory computing environments |
US9575890B2 (en) | 2014-02-27 | 2017-02-21 | International Business Machines Corporation | Supporting atomic accumulation with an addressable accumulator |
US9329946B2 (en) | 2014-02-27 | 2016-05-03 | International Business Machines Corporation | Salvaging hardware transactions |
US9311178B2 (en) | 2014-02-27 | 2016-04-12 | International Business Machines Corporation | Salvaging hardware transactions with instructions |
US9424072B2 (en) | 2014-02-27 | 2016-08-23 | International Business Machines Corporation | Alerting hardware transactions that are about to run out of space |
US9442853B2 (en) | 2014-02-27 | 2016-09-13 | International Business Machines Corporation | Salvaging lock elision transactions with instructions to change execution type |
US9465673B2 (en) | 2014-02-27 | 2016-10-11 | International Business Machines Corporation | Deferral instruction for managing transactional aborts in transactional memory computing environments to complete transaction by deferring disruptive events handling |
US9524187B2 (en) | 2014-03-02 | 2016-12-20 | International Business Machines Corporation | Executing instruction with threshold indicating nearing of completion of transaction |
US9262343B2 (en) | 2014-03-26 | 2016-02-16 | International Business Machines Corporation | Transactional processing based upon run-time conditions |
US9256553B2 (en) | 2014-03-26 | 2016-02-09 | International Business Machines Corporation | Transactional processing based upon run-time storage values |
US9740614B2 (en) | 2014-06-27 | 2017-08-22 | International Business Machines Corporation | Processor directly storing address range of co-processor memory accesses in a transactional memory where co-processor supplements functions of the processor |
US10073784B2 (en) | 2014-06-27 | 2018-09-11 | International Business Machines Corporation | Memory performance when speculation control is enabled, and instruction therefor |
US10114752B2 (en) | 2014-06-27 | 2018-10-30 | International Business Machines Corporation | Detecting cache conflicts by utilizing logical address comparisons in a transactional memory |
US9703718B2 (en) | 2014-06-27 | 2017-07-11 | International Business Machines Corporation | Managing read tags in a transactional memory |
US9658961B2 (en) | 2014-06-27 | 2017-05-23 | International Business Machines Corporation | Speculation control for improving transaction success rate, and instruction therefor |
US10025715B2 (en) | 2014-06-27 | 2018-07-17 | International Business Machines Corporation | Conditional inclusion of data in a transactional memory read set |
US9477481B2 (en) | 2014-06-27 | 2016-10-25 | International Business Machines Corporation | Accurate tracking of transactional read and write sets with speculation |
US9720837B2 (en) | 2014-06-27 | 2017-08-01 | International Business Machines Corporation | Allowing non-cacheable loads within a transaction |
US9772944B2 (en) | 2014-06-27 | 2017-09-26 | International Business Machines Corporation | Transactional execution in a multi-processor environment that monitors memory conflicts in a shared cache |
US10013351B2 (en) | 2014-06-27 | 2018-07-03 | International Business Machines Corporation | Transactional execution processor having a co-processor accelerator, both sharing a higher level cache |
US9830263B1 (en) * | 2014-06-30 | 2017-11-28 | EMC IP Holding Company LLC | Cache consistency |
US10120800B2 (en) | 2014-07-18 | 2018-11-06 | Oracle International Corporation | History based memory speculation for partitioned cache memories |
US9684598B1 (en) * | 2014-09-30 | 2017-06-20 | EMC IP Holding Company LLC | Method and apparatus for fast distributed cache re-sync after node disconnection |
US9886382B2 (en) | 2014-11-20 | 2018-02-06 | International Business Machines Corporation | Configuration based cache coherency protocol selection |
US10261705B2 (en) * | 2016-12-15 | 2019-04-16 | Alibaba Group Holding Limited | Efficient data consistency verification for flash storage |
CN108228470B (en) * | 2016-12-21 | 2021-05-18 | 北京忆恒创源科技有限公司 | Method and equipment for processing write command for writing data into NVM (non-volatile memory) |
CN108572926B (en) * | 2017-03-13 | 2022-02-22 | 阿里巴巴集团控股有限公司 | Method and device for synchronizing caches of central processing units |
US20180365070A1 (en) * | 2017-06-16 | 2018-12-20 | International Business Machines Corporation | Dynamic throttling of broadcasts in a tiered multi-node symmetric multiprocessing computer system |
US11656992B2 (en) | 2019-05-03 | 2023-05-23 | Western Digital Technologies, Inc. | Distributed cache with in-network prefetch |
US11765250B2 (en) | 2020-06-26 | 2023-09-19 | Western Digital Technologies, Inc. | Devices and methods for managing network traffic for a distributed cache |
US11675706B2 (en) | 2020-06-30 | 2023-06-13 | Western Digital Technologies, Inc. | Devices and methods for failure detection and recovery for a distributed cache |
US11736417B2 (en) | 2020-08-17 | 2023-08-22 | Western Digital Technologies, Inc. | Devices and methods for network message sequencing |
US12088470B2 (en) | 2020-12-18 | 2024-09-10 | Western Digital Technologies, Inc. | Management of non-volatile memory express nodes |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6052760A (en) | 1997-11-05 | 2000-04-18 | Unisys Corporation | Computer system including plural caches and utilizing access history or patterns to determine data ownership for efficient handling of software locks |
US6374332B1 (en) | 1999-09-30 | 2002-04-16 | Unisys Corporation | Cache control system for performing multiple outstanding ownership requests |
US6415364B1 (en) | 1997-12-31 | 2002-07-02 | Unisys Corporation | High-speed memory storage unit for a multiprocessor system having integrated directory and data storage subsystems |
US6415634B2 (en) | 1999-03-11 | 2002-07-09 | L. Hanson Luquire | Padlock |
US20020099833A1 (en) | 2001-01-24 | 2002-07-25 | Steely Simon C. | Cache coherency mechanism using arbitration masks |
US6434641B1 (en) | 1999-05-28 | 2002-08-13 | Unisys Corporation | System for reducing the number of requests presented to a main memory in a memory storage system employing a directory-based caching scheme |
US6473849B1 (en) | 1999-09-17 | 2002-10-29 | Advanced Micro Devices, Inc. | Implementing locks in a distributed processing system |
US6480963B1 (en) | 1998-06-17 | 2002-11-12 | Fujitsu Limited | Network system for transporting security-protected data |
US6480927B1 (en) | 1997-12-31 | 2002-11-12 | Unisys Corporation | High-performance modular memory system with crossbar connections |
US6560681B1 (en) * | 1998-05-08 | 2003-05-06 | Fujitsu Limited | Split sparse directory for a distributed shared memory multiprocessor system |
US6636926B2 (en) | 1999-12-24 | 2003-10-21 | Hitachi, Ltd. | Shared memory multiprocessor performing cache coherence control and node controller therefor |
US6668308B2 (en) * | 2000-06-10 | 2003-12-23 | Hewlett-Packard Development Company, L.P. | Scalable architecture based on single-chip multiprocessing |
US6681292B2 (en) * | 2001-08-27 | 2004-01-20 | Intel Corporation | Distributed read and write caching implementation for optimized input/output applications |
US6789173B1 (en) | 1999-06-03 | 2004-09-07 | Hitachi, Ltd. | Node controller for performing cache coherence control and memory-shared multiprocessor system |
US6848023B2 (en) | 2000-03-17 | 2005-01-25 | Hitachi, Ltd. | Cache directory configuration method and information processing device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6223260B1 (en) * | 1996-01-25 | 2001-04-24 | Unisys Corporation | Multi-bus data processing system in which all data words in high level cache memories have any one of four states and all data words in low level cache memories have any one of three states |
US5813034A (en) * | 1996-01-25 | 1998-09-22 | Unisys Corporation | Method and circuitry for modifying data words in a multi-level distributed data processing system |
-
2002
- 2002-08-28 US US10/231,414 patent/US7546422B2/en not_active Expired - Fee Related
-
2009
- 2009-06-05 US US12/479,541 patent/US8046539B2/en not_active Expired - Fee Related
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6052760A (en) | 1997-11-05 | 2000-04-18 | Unisys Corporation | Computer system including plural caches and utilizing access history or patterns to determine data ownership for efficient handling of software locks |
US6415364B1 (en) | 1997-12-31 | 2002-07-02 | Unisys Corporation | High-speed memory storage unit for a multiprocessor system having integrated directory and data storage subsystems |
US6480927B1 (en) | 1997-12-31 | 2002-11-12 | Unisys Corporation | High-performance modular memory system with crossbar connections |
US6560681B1 (en) * | 1998-05-08 | 2003-05-06 | Fujitsu Limited | Split sparse directory for a distributed shared memory multiprocessor system |
US6480963B1 (en) | 1998-06-17 | 2002-11-12 | Fujitsu Limited | Network system for transporting security-protected data |
US6415634B2 (en) | 1999-03-11 | 2002-07-09 | L. Hanson Luquire | Padlock |
US6434641B1 (en) | 1999-05-28 | 2002-08-13 | Unisys Corporation | System for reducing the number of requests presented to a main memory in a memory storage system employing a directory-based caching scheme |
US6789173B1 (en) | 1999-06-03 | 2004-09-07 | Hitachi, Ltd. | Node controller for performing cache coherence control and memory-shared multiprocessor system |
US6473849B1 (en) | 1999-09-17 | 2002-10-29 | Advanced Micro Devices, Inc. | Implementing locks in a distributed processing system |
US6374332B1 (en) | 1999-09-30 | 2002-04-16 | Unisys Corporation | Cache control system for performing multiple outstanding ownership requests |
US6636926B2 (en) | 1999-12-24 | 2003-10-21 | Hitachi, Ltd. | Shared memory multiprocessor performing cache coherence control and node controller therefor |
US6848023B2 (en) | 2000-03-17 | 2005-01-25 | Hitachi, Ltd. | Cache directory configuration method and information processing device |
US6668308B2 (en) * | 2000-06-10 | 2003-12-23 | Hewlett-Packard Development Company, L.P. | Scalable architecture based on single-chip multiprocessing |
US20020099833A1 (en) | 2001-01-24 | 2002-07-25 | Steely Simon C. | Cache coherency mechanism using arbitration masks |
US6681292B2 (en) * | 2001-08-27 | 2004-01-20 | Intel Corporation | Distributed read and write caching implementation for optimized input/output applications |
Non-Patent Citations (1)
Title |
---|
Azimi, M , et al., "Scalability Port: A Coherent Interface for Shared Memory Multiprocessors", High Performance Interconnects IEEE, (Aug. 21, 2002), pp. 65-70. * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9380127B2 (en) | 2011-05-18 | 2016-06-28 | Alibaba Group Holding Limited | Distributed caching and cache analysis |
US9086974B2 (en) | 2013-09-26 | 2015-07-21 | International Business Machines Corporation | Centralized management of high-contention cache lines in multi-processor computing environments |
US9292444B2 (en) | 2013-09-26 | 2016-03-22 | International Business Machines Corporation | Multi-granular cache management in multi-processor computing environments |
US9298623B2 (en) | 2013-09-26 | 2016-03-29 | Globalfoundries Inc. | Identifying high-conflict cache lines in transactional memory computing environments |
US9298626B2 (en) | 2013-09-26 | 2016-03-29 | Globalfoundries Inc. | Managing high-conflict cache lines in transactional memory computing environments |
US9329890B2 (en) | 2013-09-26 | 2016-05-03 | Globalfoundries Inc. | Managing high-coherence-miss cache lines in multi-processor computing environments |
US9740616B2 (en) | 2013-09-26 | 2017-08-22 | International Business Machines Corporation | Multi-granular cache management in multi-processor computing environments |
US10452545B1 (en) | 2017-10-06 | 2019-10-22 | Veritas Technologies Llc | Systems and methods for maintaining cache coherency |
US10831662B1 (en) | 2017-10-06 | 2020-11-10 | Veritas Technologies Llc | Systems and methods for maintaining cache coherency |
Also Published As
Publication number | Publication date |
---|---|
US7546422B2 (en) | 2009-06-09 |
US20040044850A1 (en) | 2004-03-04 |
US20090240894A1 (en) | 2009-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8046539B2 (en) | Method and apparatus for the synchronization of distributed caches | |
KR100545951B1 (en) | Distributed read and write caching implementation for optimized input/output applications | |
US6636949B2 (en) | System for handling coherence protocol races in a scalable shared memory system based on chip multiprocessing | |
US7032074B2 (en) | Method and mechanism to use a cache to translate from a virtual bus to a physical bus | |
US7305524B2 (en) | Snoop filter directory mechanism in coherency shared memory system | |
US5881303A (en) | Multiprocessing system configured to perform prefetch coherency activity with separate reissue queue for each processing subnode | |
US7600080B1 (en) | Avoiding deadlocks in a multiprocessor system | |
US6519685B1 (en) | Cache states for multiprocessor cache coherency protocols | |
US5848254A (en) | Multiprocessing system using an access to a second memory space to initiate software controlled data prefetch into a first address space | |
EP1311956B1 (en) | Method and apparatus for pipelining ordered input/output transactions in a cache coherent, multi-processor system | |
KR100613817B1 (en) | Method and apparatus for the utilization of distributed caches | |
US7577794B2 (en) | Low latency coherency protocol for a multi-chip multiprocessor system | |
US20020053004A1 (en) | Asynchronous cache coherence architecture in a shared memory multiprocessor with point-to-point links | |
JPH07253928A (en) | Duplex cache snoop mechanism | |
US8015364B2 (en) | Method and apparatus for filtering snoop requests using a scoreboard | |
US5909697A (en) | Reducing cache misses by snarfing writebacks in non-inclusive memory systems | |
US8332592B2 (en) | Graphics processor with snoop filter | |
US6418514B1 (en) | Removal of posted operations from cache operations queue | |
US20060179173A1 (en) | Method and system for cache utilization by prefetching for multiple DMA reads | |
US7797495B1 (en) | Distributed directory cache | |
US6430658B1 (en) | Local cache-to-cache transfers in a multiprocessor system | |
US6345340B1 (en) | Cache coherency protocol with ambiguous state for posted operations | |
US6389516B1 (en) | Intervention ordering in a multiprocessor system | |
JP2002116954A (en) | Cache system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
FPAY | Fee payment |
Year of fee payment: 4 |
|
FEPP | Fee payment procedure |
Free format text: MAINTENANCE FEE REMINDER MAILED (ORIGINAL EVENT CODE: REM.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
LAPS | Lapse for failure to pay maintenance fees |
Free format text: PATENT EXPIRED FOR FAILURE TO PAY MAINTENANCE FEES (ORIGINAL EVENT CODE: EXP.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
STCH | Information on status: patent discontinuation |
Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362 |
|
FP | Lapsed due to failure to pay maintenance fee |
Effective date: 20191025 |