Labels

Wednesday, August 1, 2012

What is L1 / L2 / L3 Cache?

cache memory is a high speed memory kept in between processor and RAM to increase the data execution speed. It is kept near to the processor.
There are different levels of cache.
L1-cache is the fastest cache and it usually comes within the processor chip itself. 
The L1 cache typically ranges in size from 8KB to 64KB and uses the high-speed SRAM (static RAM) instead of the slower and cheaper DRAM (dynamic RAM) used for main memory.
The Intel Celeron processor uses two separate 16KB L1 caches, one for the instructions and one for the data.

L2 cache comes between L1 and RAM(processor-L1-L2-RAM) and is bigger than the primary cache (typically 64KB to 4MB). 

L3 cache is not found nowadays as its function is replaced by L2 cache. L3 caches are found on the motherboard rather than the processor. It is kept between RAM and L2 cache.

So if your system has L1,L2 and L3 cache data fetching will be L1->L2->L3->RAM
ie. If data is not there in L1 it will check L2 then L3 then RAM...



A memory cache, sometimes called a cache store or RAM cache, is a portion of memory made of high-speed static RAM (SRAM) instead of the slower and cheaper dynamic RAM (DRAM) used for main memory. Memory caching is effective because most programs access the same data or instructions over and over. By keeping as much of this information as possible in SRAM, the computer avoids accessing the slower DRAM. 

Short for Level 1 cache, a memory cache built into the microprocessor. 

Short for Level 2 cache, cache memory that is external to the microprocessor. In general, L2 cache memory, also called the secondary cache, resides on a separate chip from the microprocessor chip. 

As more and more processors begin to include L2 cache into their architectures, Level 3 cache is now the name for the extra cache built into motherboards between the microprocessor and the main memory. 

the l2 cache is now always built onto the processor for x86 archetechure


cache memory


http://cfs14.tistory.com/image/24/tistory/2008/10/19/23/33/48fb453dd00c3

No comments:

Learn German - Quick Reference