Cache placement policies: Difference between revisions

Content deleted Content added
added referenced but basic information about cache placement policies on the mainboard of a computer
Tag: Reverted
Performance: added referenced info about cache hit and cache miss
Tag: Reverted
Line 5:
 
==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), also known as main memory. 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>
 
General purpose computing has sucessfully used [[CPU cache]]s, by implementing cache placement policies that are appropiate to the computer program routines in processing data. By exploiting the properties of a computer program, cache placement policies ensure that the data processed is readily available and as close as possible to the super fast CPU core. A so called ''cache hit'' indicates that the cache placement policy was successful because the CPU core can access the data at speed. A ''cache miss'' is generated when the CPU core cant find the required data in the CPU cache and the data needs to be pulled out of the [[random-access memory]] (RAM), also known as main memeory. When the CPU core needs to read data out of the RAM, rather than the CPU cache, the access is often three or four times slower.<ref>{{Cite book|title= Foundations of Real-Time Computing: Scheduling and Resource Management | editor1= André M. van Tilborg | editor2= Gary M. Koob |publisher= Springer US |year=2012 |isbn= 9781461539568 | pages=252}}</ref>
 
== Approaches to cache placement==