This is an old version, saved 5 Dec 2026, 04:37 by TechWritereditor. It is the current version.
CPU cache
CPU cache is a small, fast memory that temporarily stores frequently used instructions and data so that the Central processing unit (CPU) can work faster.[1] It holds a copy of only part of main memory, and its small size reduces the time needed to find what the processor wants.[1]
How it works
When the processor needs information, it first checks the cache. If the data is there (a "hit"), the cache supplies it at once; if not (a "miss"), the processor fetches it from main memory.[1][2] Caches work well because most programs show locality of reference: they reuse the same data within a short time, and they tend to use data stored close together.[2][4]
Cache memory is usually made from Static random-access memory (SRAM), which is faster than the Dynamic random-access memory (DRAM) used for main memory and does not need refreshing, but costs more.[2] Modern processors use several levels. Level 1 (L1) is the smallest and fastest; Level 2 (L2) is larger; and in multicore chips each core usually has its own L1 and L2 while all cores share a Level 3 (L3) cache.[2] Designs differ in where a block of memory may be placed: in a direct-mapped cache it has exactly one possible place, in a fully associative cache it can go anywhere, and a set-associative cache is a compromise between the two.[2]
History
The first commercial cache appeared in the IBM System/360 Model 85, described by IBM engineer J. S. Liptay in 1968.[3][4] Its main memory had a cycle time of 1.04 microseconds, far slower than the processor's 80-nanosecond cycle, so IBM added a 16 KB cache that could be expanded to 32 KB.[3] Programs did not need to be changed to use it.[3] IBM simulations found that about 96.8% of memory accesses were served from the cache.[4]
Caches became common in personal computers in the 1980s, when processors began to outpace memory.[2] Intel's 486 placed 8 KB of L1 cache on the processor chip, and its P6 design of 1995 was the first to bring the L2 cache onto the processor as well.[2]
See also
References
- ^ Cache memory. Encyclopaedia Britannica. britannica.com
- ^ What is cache memory?. TechTarget. techtarget.com
- ^ Structural aspects of the System/360 Model 85, II: The cache (J. S. Liptay). IBM Systems Journal (hosted by Carnegie Mellon University). 1968-01-01. andrew.cmu.edu
- ^ Cache Memories. University of Edinburgh School of Informatics. homepages.inf.ed.ac.uk