Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





Cache memory: Difference between revisions





Article  

Talk  



Language  

Watch  

View history  

Edit  






Browse history interactively
 Previous editNext edit 
Content deleted Content added
VisualWikitext
m Reverted edits by 88.105.122.99 (talk) to last version by Ferry24.Milan
m →‎Write policy: English grammar edits.
Line 184:
The cache's write policy determines how it handles writes to memory locations that are currently being held in cache.
 
Generally only the Data Cache is involved, because usually the instructions are not self-modifying, and in the case of code self-modifying, the software may force the CPU to store this code only in MM without to involveinvolving the cache (see for instance [[AMD64]] ''Self-Modifying Code''<ref name="AMD642">Architecture Programmer's Manual "3.9.4 Cache Operation" – http://developer.amd.com/wordpress/media/2012/10/24593_APM_v21.pdf</ref>).
 
There are two basic policiespolicy types:
 
:* Write Through
Line 193:
==== Write through ====
 
* Data is written at the same time both into cache and into MM, or into cache and then into memory (from whichhence the name).
 
==== Write-back (or copy back) ====
 
* Data is updated only in cache. The data is "written back" into MM when needed, for instance in case ofon cache line replacement (overwrite) or when required by other caches. This reducereduces bus and memory traffic because the next cache line updatingupdate areis taken only in cache without involving the memory. The bit "'''D'''" or "'''M'''" – (Dirty or Modified) is set on in cache ''Directory'' (see below [[#Cache states|Cache states]]).
 
In case of miss on write there are two different solutions:

Retrieved from "https://en.wikipedia.org/wiki/Cache_memory"
 




Languages

 



This page is not available in other languages.
 

Wikipedia




Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Terms of Use

Desktop