Timop

Distinguished
Its a fast small storage for data used by the CPU.

L1 is usually used as a storage for decoded instructions, while L2 is a general cache for a single core.

Even-though you haven't mentioned it, There's also a higher level of cached called L3 cache which is a general cache for the whole chip.
 

MarkG

Distinguished
Oct 13, 2004
841
0
19,010


And L2 is usually much larger and much slower than L1, though still much faster than going out to RAM .
 
G

Guest

Guest

I'm seeing chip block diagrams showing "internal" L2 cache. ie. The ARM processor in the Droid. I thought L1 was internal and L2 external (expandable.) EC
 
As a rule, the CPU cache is basically REALLY fast access high speed memory. Each level is slightly larger then the last, but also slightly slower. In a multiple-core environment, one or multiple levels of cache may be dedicated to either a specific core, or for the entire CPU as a whole.

As a general rule:
L1 Cache: 2-3 clcok cycle access
L2 Cache: ~10 clockcycle access
L3 Cache: ~20-30 clockcycle access
Main Memory: ~100 clock cycle access; > 100,000 cycle access if a new page must be loaded. (Hence why more RAM increases speed: Fewer page faults).