Skip to main content

Cache Memory | Everything You Need To Know About Cache Memory | Educational Blog | artechreview


Memory is a core element in electrnoic devices like computer, mobile phones, tabs and such devices. There are many types of memory which work together in order to keep running a device smoothly.

Here, I am writing about CACHE MEMORY-short and fast we can say.

Cache memory is a chip based computer component that makes retrieving data from the computer's memory more efficiently within a very short time. It acts as a temporary storage area that the computer's processor can retrieve data easily. This temporary storage area, known as a cache, is more readily available to the processor than the computer's main memory.

It is an extremely fast memory which acts as a buffer between the RAM and CPU. Cache memory holds the recent data and instructions which have been used so that, cache gives such data immediately when CPU requests such data. This is the splendid functionability of cache memory which access the data very fast and accurate. This reduces the time to peform a instruction which new techies are needed in this fast generation era.

Cache memory is sometimes called  CPU Memory, because it is integrated directly into the CPU chip. Therefore, it is more accessible to the processor, and able to increase efficiency, because it is physically close to the processor.



As Cache is integrated on the CPU chip itself, size of the cache has to be small and consequently storage has to be less (8kb to 64kb) when compared to main memory.


CACHE PERFORMANCE:

When the processor needs to read or write a memory location, it first checks in the cache. 


▪︎If the processor finds that the memory location is in the cache, a cache hit has occurred and data is read from cache.

▪︎If the processor does not find the memory location in the cache, a cache miss has occurred. For a cache miss, the cache allocates a new entry and copies in data from main memory, then the request is fulfilled from the contents of the cache.


  TYPES OF CACHE


▪︎Primary Cache

A primary cache is always located on the processor chip. This cache size is small and its access time is very fast.It is referred as level 1(L1) cache.

▪︎Secondary Cache

Secondary cache is placed between the primary cache and the rest of the memory. It is referred to as the level 2 (L2) and level 3(L3) cache. This is a bit larger and takes longer time to access the data.

Level 2 cache is embedded on the CPU chip where as Level 3 is embedded externally to the CPU Chip.

CACHE MEMORY Vs RAM

The temporary storage of data is the main principle of RAM then what's the need of Cache when RAM is doing the same function???

The principle might be same in RAM and Cache Memory, but there's a difference which is notable.

Technically, Cache Memory stores the data  for future operational requests, so those operation can perform staright away in a less time, while RAM stores the application and operational data which is currently in use.

This is what about Cache Memory and it's function to run a machine fast with it's maximum efficiency. This improves the performance of the device.



That's it for this blog hope you find it informative. Please do share across your friends & family and do support us.

Thank You!


Hope you like blog, Do follow me on  TwitterLinkedin & Instagram and stay updated when upcoming blog is posted.

Comments

Popular posts from this blog

APPLE WWDC 2021 LAUNCH UPDATES | WHAT CAN WE EXPECT? | WWDC 2021 EVENT TIMING

WWDC 2021 Hello Everyone! Apple is going to conduct WWDC 2021 which starts from 7-06-2021 i.e., today @10:30 PM as India time. Today in this blog we will be discussing about what the expected launch updates.