Cache Memory

Hello Friends, In today's article I will tell you about Cache memory and types of cache memory. I will also tell you advantage and disadvantage of Cache memory.

What is Cache Memory ?

Cache Memory is static computer memory that is very close to the CPU and also known as CPU memory. Every recent instructions are stored in Cache memory. Cache memory is the fastest memory providing high speed data access to a computer microprocessor. But Cache memory capacity is very less as compared to RAM and hard disk.

Cache memory explained, cache memory
Cache memory

Types Of Cache Memory :-

The type of Cache memory is divided into different levels which is L1, L2 and L3.

L1 Cache

L1 is the primary type of cache memory. The size of L1 cache is very less as compared to others which is between 2kb to 64kb, it depends on the computer processor. It is embedded in the processor chip as a cache CPU. Instructions required by the CPU are first discovered in the L1 cache.

L2 Cache

L2 is the secondary type of cache memory. The L2 cache size is more capacious then the L1, which is between 256kb to 512kb. After searching the instructions in the L1 cache if it is not found, than it is searched by computer microprocessor in L2 cache.

L3 Cache

L3 is larger in size but slower in speed as compared to L1 and L2. It's size is between 1MB to 8MB. In multicore processors, every core shared common L3 cache.

Advantage of Cache memory

  • Cache memory is faster than main memory.
  • It uses less access time then main memory.
  • It stores the program which is executed with in a short time.
  • It stores the data for temporary use.

Disadvantage of Cache memory

  • Cache memory capacity is limited.
  • It is very expensive.

Hello friends If you have any question or any suggestion related to cache memory then you can tell us in comment or you can email me.