Content deleted Content added
Ira Leviton (talk | contribs) m Fixed a typo found with Wikipedia:Typo_Team/moss. |
added referenced but basic information about cache placement policies on the mainboard of a computer Tag: Reverted |
||
Line 1:
{{Short description|Design decisions affecting processor cache speeds and sizes}}
{{Distinguish|cache replacement policies}}
[[File:Dual Core Generic.svg|thumb|190px|Diagram of a generic dual-core processor with CPU-local level-1 caches and a shared, on-die level-2 cache]]
'''Cache placement policies''' are programmable approaches to holding data that is to be utilized by the [[general processing unit]] (CPU) in the [[CPU cache]].
==Performance==
[[CPU cache]] plays a significant role in the overall performance of a computer system and the speed at which a [[general processing unit]] (CPU) can process data. CPU cache is very fast [[computer memory]], usually using [[static random-access memory]] (SRAM). SRAM is [[volatile memory]], it can only store data when supplied with electricity. The CPU cache sits between the CPU core and the [[random-access memory]] (RAM). The CPU cache isolates the super fast CPU cores from the much slower RAM, which is usually [[direct random access memory]] (DRAM).<ref>{{Cite book|title= Fundamentals of Computer Organization and Design | author1= Sivarama P. Dandamudi |publisher= Springer New York |year=2006 |isbn= 9780387215662 | pages=731}}</ref>
Cache placement policies can enhance the performance of data processing by the CPU cores, because computer programs may access data in the RAM sequentially, also known as sequential execution or spatial locality behavior. Alternatively computer programs may execute a part of the code or data repeatedly for some time, also known as sequential code execution or [[Infinite loop|loop structure]].<ref>{{Cite book|title= Fundamentals of Computer Organization and Design | author1= Sivarama P. Dandamudi |publisher= Springer New York |year=2006 |isbn= 9780387215662 | pages=731}}</ref>
[[File:Direct-Mapped Cache Snehal Img.png|thumb|Direct-Mapped Cache]]
[[File:Fully-Associative Cache Snehal Img.png|thumb|Fully associative cache]]
There are three different policies available for placement of data the CPU cache: direct-mapped, fully associative, and set-associative. Originally this space of cache organizations was described using the term "congruence mapping".<ref>{{Cite journal| last=Mattson| first=R.L.| author1-link=Richard Mattson| last2=Gecsei| first2=J.| last3=Slutz| first3=D. R.| last4=Traiger| first4=I| date=1970| title= Evaluation Techniques for Storage Hierarchies|journal=IBM Systems Journal| volume=9| issue=2| pages=78–117| doi=10.1147/sj.92.0078}}</ref>
== See also ==
* [[Cache algorithms]]
* [[Cache hierarchy]]
* [[Cache (computing)
* [[Cache coloring]]
|