Cache Memory Explained! Types of cache memory.

Cache Memory

Lots of people don’t know about the Cache Memory in their computer. If your one of them then this article is for you. In this article, I am going to tell you What is Cache Memory? its working and types.

Cache Memory

In our computer, there are three types of memory. First is our storage HHD or SSD second is RAM or the third one is Cache Memory. Cache Memory is very smaller than other two types of memory but it is very fast than both of this memory.

Let’s try to understand cache memory by one real-life example. Assume that your office is your computer. If you are working in the office then all your necessary files and other things are kept on your office table and other unnecessary files are stored in the back office. so here your office table is a RAM of your computer and back office is the storage of your computer. The drover of your office table is the cache memory of your computer. In the drover, you store the things which are frequently in your use like the stapler, stamp or some important document. Like this computer use cache memory to store some frequently used files.

Must Read: RAM Explained! How its work?

Types of Cache Memory

There are three types of Cache Memory Level 1, Level 2 and Level 3.

Level 1 (L1) cache memory is fast among all the memory, Which is built inside the processor. size of this memory is between 2 KB to 64 KB, inside this memory there is two type of cache one is instruction cache and other is data cache. Instruction catch store all the instructions required by the CPU and data cache store the data which is required by the CPU.

Must Read: Microprocessor Explained!

Level 2 (L2) cache memory is built either in the processor or beside the processor on separate IC and connected with processer by very high-speed bus. It could be separate for all the cores or shared between all the cores. The memory size of the L2 cache is between 256 KB to 512 KB. In term of speed, it is slower than L1 cache memory.

Must Read: SSD vs HDD Explained! How does it work?

The last level 3 (L3) cache memory is the separate memory, Which has an approximately double speed of RAM but level 3 cache memory is shared between all the cores of the processor. L3 memory is not available in all the processer it is only available in some high-end processor. Its memory size is between 1 MB to 8 MB. it is slower than L1 and L2 memory but still faster than RAM.

Process Flow

Cache Memory

Whenever processor needs some data it will look in the Level 1 memory if it doesn’t get the data then it will look in level 2 memory and Level 3 memory. If the processor gets data inside any on this memory then it is called as the cache hit it if data is not available inside the cache is called as the cache miss.

Must Read: Difference between RAM and ROM Explained!

Suppose if the data is not available in all the memory then the process goes to the RAM to get the data if is data is also not available in the RAM then processer look inside the HHD or SSD.

When you open an application for the first time that data is not available in cache so that it will take more time to open that application compear to the application which is frequently in your use. Because processer will go the HHD or SSD to get the files of that application after the look inside all the Cache Memory and RAM.

I hope you found what you’re searching for. If you like this article please share this with your friends. If you have any question related to this topic please comment below.

You May Also Like

About the Author: Vishal Dalve

Hi, my name is Vishal Dalve. I am a blogger, web Designer and science graduate from India, When I am in the 2ed year of my graduate I wanted to start the blog to share my knowledge and I started Techclarify.com

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.