What Is Cache Memory ?

Cache memory is a high-speed memory, This is one of the fastest memory of our computer system. Generally, cache money is a small memory but more high-speed than RAM. Cache memory is the fastest memory among all other memory. 

Cache Memory is only accessed by the CPU, the CPU store those data and programs into the cache memory that are frequently used by you. You can think of cache memory as a buffer between RAM and CPU. If the CPU needs some data more frequently than others, then the CPU stores it into the cache memory and access it from there.

Types Of The Cache Memory

There are three types of cache memory L1, L2, and L3.

L1

It is the main degree of reserve memory, which is called Level 1 store or L1 reserve. In this sort of store memory, a limited quantity of memory is available inside the CPU itself. In the event that a CPU has four centers (quad-center central processor), at that point, each center will have its own level 1 reserve. As this memory is available in the CPU, it can work at a similar speed as of the CPU. The size of this memory goes from 2KB to 64 KB. The L1 reserve further has two kinds of stores: The instruction store, which stores directions needed by the CPU, and the information store that stores the information needed by the CPU. 

L2

 This reserve is known as Level 2 store or L2 store. This level 2 store might be inside the CPU or outside the CPU. All the centers of a CPU can have their own different level 2 reserve, or they can share one L2 store among themselves. On the off chance that it is outside the CPU, it is associated with the CPU with fast transport. The memory size of this store is in the scope of 256 KB to 512 KB. Regarding speed, they are slower than the L1 reserve. 

L3

 It is known as Level 3 store or L3 reserve. This reserve is absent in all the processors; some top of the line processors may have this sort of store. This reserve is utilized to improve the exhibition of Level 1 and Level 2 store. It is situated external to the CPU and is shared by all the centers of a CPU. Its memory size goes from 1 MB to 8 MB. Despite the fact that it is slower than L1 and L2 store, it is quicker than Random Access Memory (RAM).

How does cache memory work with CPU?

At the point when the CPU needs the information, above all else, it glimpses inside the L1 store. In the event that it doesn't discover anything in L1, it glimpses inside the L2 store. Assuming once more, it doesn't discover the information in the L2 reserve, it investigates the L3 store. On the off chance that information is found in the reserved memory, at that point it is known as a storm hit. Actually, if the information isn't found inside the reserve, it is known as a store miss. 

In the event that information isn't accessible in any of the reserve recollections, it peers inside the Random Access Memory (RAM). In the event that RAM additionally doesn't have the information, at that point, it will get that information from the Hard Disk Drive. 

Thus, when a PC is begun unexpectedly, or an application is opened unexpectedly, information isn't accessible in reserve memory or in RAM. For this situation, the CPU gets the information straightforwardly from the hard plate drive. From that point, when you start your PC or open an application, the CPU can get that information from reserve memory or RAM.

Comments

Popular posts from this blog

What is RAM? Why RAM Is Called Volatile Memory ?

What is Wi-Fi ? What is Wi-Fi 6? Why It Matters? - Everything You Should Know