Write-once (cache coherency)

Write-once (cache coherency)

In cache coherency protocol literature, Write-Once is the first write-invalidate protocol defined. It has the optimization of executing write-update on the first write and a write-invalidate on all subsequent writes, reducing the overall bus traffic in consecutive writes to the computer memory. It was firstly described by James R. Goodman's in [http://portal.acm.org/citation.cfm?id=800046.801647] (1983). Cache coherence protocols are an important issue in Symmetric multiprocessing systems, where each CPU maintains a Cache of the memory.

States

In this protocol, each block in the local cache is in one of these four states:
* Invalid: This block has an incoherent copy of the memory.
* Valid: This block has a coherent copy of the memory. The data may be possibly shared, but its content is not modified.
* Reserved: The block is the only copy of the memory, but it is still coherent. No write-back is needed if the block is replaced.
* Dirty: The block is the only copy of the memory and it is incoherent. This copy was written more than once. This is the only state that generates a write-back when the block is replaced in the cache.These states have exactly the same meanings as the four states of the MESI protocol (they are simply listed in reverse order), but this is a simplified form of it that avoids the Read for Ownership operation. Instead, all invalidation is done by writes to main memory.

Transitions

The protocol follows some transition rules for each event:

* Read hit: The information is supplied by the current cache. No state change.
* Read miss: The data is read from main memory. The read is snooped by other caches; if any of them have the line in the "Dirty" state, the read is interrupted long enough to write the data back to memory before it is allowed to continue. Any copies in the "Dirty" or "Reserved" states are set to the "Valid" state.
* Write hit: If the information in the cache is in "Dirty" or "Reserved" state, the cache line is updated in place and its state is set to "Dirty" without updating memory. If the information is in "Valid" state, a write-through operation is executed updating the block and the memory and the block state is changed to "Reserved". Other caches snoop the write and set their copies to "Invalid".
* Write miss: A partial cache line write is handled as a read miss (if necessary to fetch the unwritten portion of the cache line) followed by a write hit. This leaves all other caches in the "Invalid" state, and the current cache in the "Reserved" state.This is a variant of the MESI protocol, but there is no explicit read-for-ownership or broadcast invalidate operation to bring a line into cache in the "Exclusive" state without performing a main memory write. Instead, the first write to a "Valid" (a.k.a. "Shared") cache line performs a write through to memory, which implicitly invalidates other caches. After that, the line is in the "Reserved" ("Exclusive") state, and further writes can be done without reference to main memory, leaving the cache line in the "Dirty" ("Modified") state.

References

* [http://doi.acm.org/10.1145/6513.6514] Archibald, J. and Baer, J. 1986. Cache coherence protocols: evaluation using a multiprocessor simulation model. ACM Trans. Comput. Syst. 4, 4 (Sep. 1986), 273-298. DOI= http://doi.acm.org/10.1145/6513.6514

* [http://portal.acm.org/citation.cfm?id=800046.801647] Goodman, J. R. 1983. Using cache memory to reduce processor-memory traffic. In Proceedings of the 10th Annual international Symposium on Computer Architecture (Stockholm, Sweden, June 13 - 17, 1983). International Conference on Computer Architecture. IEEE Computer Society Press, Los Alamitos, CA, 124-131. URL= http://portal.acm.org/citation.cfm?id=800046.801647


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Write once — may refer to: * Write once, run anywhere, a slogan for the cross platform benefits of Java * Write once (cache coherency), a write invalidate protocol in computer memory design * Write Once Read Many, computer storage that can be written to once …   Wikipedia

  • Cache coherency — In computing, cache coherency (also cache coherence) refers to the integrity of data stored in local caches of a shared resource. Cache coherence is a special case of memory coherence.When clients in a system maintain caches of a common memory… …   Wikipedia

  • Cache — This article is about the computer science optimization concept. For other uses, see Cache (disambiguation). In computer engineering, a cache (  /ˈk …   Wikipedia

  • Cache coherence — In computing, cache coherence (also cache coherency) refers to the consistency of data stored in local caches of a shared resource. Multiple Caches of Shared Resource When clients in a system maintain caches of a common memory resource, problems… …   Wikipedia

  • CPU cache — Cache memory redirects here. For the general use, see cache. A CPU cache is a cache used by the central processing unit of a computer to reduce the average time to access memory. The cache is a smaller, faster memory which stores copies of the… …   Wikipedia

  • MESI protocol — The MESI protocol (known also as Illinois protocol ) is a widely used cache coherency and memory coherence protocol. It is the most common protocol which supports write back cache. Its use in personal computers became widespread with the… …   Wikipedia

  • Когерентность кэша — Несколько кэшей для разделяемого ресурса памяти Когерентность кэша (англ. cache coherence) свойство кэшей, означающее целостность данных, хранящихся в локальных …   Википедия

  • Direct memory access — (DMA) is a feature of modern computers that allows certain hardware subsystems within the computer to access system memory independently of the central processing unit (CPU). Without DMA, the CPU using programmed input/output is typically fully… …   Wikipedia

  • MSI protocol — The MSI protocol is a basic cache coherence protocol that is used in multiprocessor systems. As with other cache coherency protocols, the letters of the protocol name identify the possible states in which a cache line can be. So, for MSI, each… …   Wikipedia

  • Parallel computing — Programming paradigms Agent oriented Automata based Component based Flow based Pipelined Concatenative Concurrent computing …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”