Cache memory is a Random Access Memory.
The main advantage of cache memory is its very fast speed.
It can be accessed by the CPU at much faster speed than main memory.
2. • Cache Memory-
•
• Cache memory is a Random Access Memory.
• The main advantage of cache memory is its very fast speed.
• It can be accessed by the CPU at much faster speed than main
memory.
3. • Location-
•
• Cache memory lies on the path between the CPU and the main
memory.
• It facilitates the transfer of data between the processor and the main
memory at the speed which matches to the speed of the processor.
4.
5. • Purpose-
•
• The fast speed of the cache memory makes it extremely useful.
• It is used for bridging the speed mismatch between the fastest CPU
and the main memory.
• It does not let the CPU performance suffer due to the slower speed of
the main memory.
6. • Execution Of Program-
•
• Whenever any program has to be executed, it is first loaded in the
main memory.
• The portion of the program that is mostly probably going to be
executed in the near future is kept in the cache memory.
• This allows CPU to access the most probable portion at a faster
speed.
7. • Multilevel Cache Organization-
•
• A multilevel cache organization is an organization where cache
memories of different sizes are organized at multiple levels to
increase the processing speed to a greater extent.
• The smaller the size of cache, the faster its speed.
• The smallest size cache memory is placed closest to the CPU.
• This helps to achieve better performance in terms of speed.
8. L1 Working
• If the computer processor can find the data it needs for its next
operation in cache memory, it will save time compared to having to
get it from random access memory.
• L1 is "level-1" cache memory, usually built onto the microprocessor
chip itself. For example, the Intel MMX microprocessor comes with 32
thousand bytes of L1.
9. L2
• L2 (that is, level-2) cache memory is on a separate chip (possibly on
an expansion card) that can be accessed more quickly than the larger
"main" memory. A popular L2 cache memory size is 1,024 kilobytes
(one megabyte).
10. L3
• A Level 3 (L3) cache is a specialized cache that that is used by the CPU
and is usually built onto the motherboard and, in certain special
processors, within the CPU module itself.
11. • There are CPUs which have the L1 cache on die and the L2 cache on a
separate die on the same chip or even on a separate chip, or there
are CPUs which have both L1 and L2 cache on the same die as the
CPU core.
12. • There are multi-core, multi-chip CPUs where each core has its own L1
cache on die, the 4 cores of one multi-core chip share an L2 cache
that is on chip, but on a separate die, and the 2 chips share an L3
cache that is on a separate chip, but in the same package.