To achieve cache coherence, the following conditions must be met: In a multi-processor system, consider that more than one processor has cached a copy of memory location X. A kind of data that appears in different caches at the same time is called cache coherence, which is called global memory in some systems. DefinitionĬoherence defines the behavior of reads and writes to a single address location. However, in practice, it is usually executed at the granularity of cache blocks. In theory, cache coherence can be enforced at load/store granularity. Transaction Serialization: All processors must see the read/write to a single memory location in the same order.Write Propagation: Any data changes in the cache must be propagated to other copies (the copy of the cache line) in the peer caches.The following are the requirements for cache coherence: Cache coherence is to ensure that changes in shared operands (data) values are propagated in the entire system in time. When one copy of the data is changed, the other copies must reflect the change. In a shared-memory multiprocessor system, each processor has a separate cache memory, and there can be many copies of shared data: one in main memory, and one in the local cache of each processor that requested it. Tip: If you want to fix high CPU usage caused by various reasons, then it is recommended to go to the MiniTool website.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |