What is Cache Memory in Computer? importance of cache memory | CPU
What is Cache Memory: Friends I have already discussed in detail about the mobile processor, 32-bit processor, 64-bit processor, RAM key, computer processor i3i5i7, GPU, etc. This time I’m going to talk about what is cache memory in Computer. Before entering into the discussion, I would like to say, see, many people have requested to post something that is already in this blog, so please check them out from the specific menu. You can also search for any post. If your favorite or desired topic is not found on this blog, of course, please comment to me and request your post, I will definitely try to keep your request. Anyway, let’s get into today’s keynote.
What is Cache Memory?
Now the question is whether this cache memory, see 3 types of memory is installed on your computer. The first is the storage that you know to be a hard drive, for general use. The second is your RAM and the third memory is a cache. The cache is a very fast memory but it is much less in terms of capability.
Types of Cache Memory
Moreover, there are three types of cache. Level one, level two and level three. Your computer’s processor may be dual-core or quadcore or octocore, see each core has two memory levels level one and level two cache and level three cache most of the time the remaining cores of the processor are shared among themselves.
Level One Cache is the fastest and is located inside the processor. A level two cache may be inside the processor and a separate Iceci installed closest to the processor. But there is a high-speed bus between the processor and the 3 IC so that the processor can access that IC very quickly. And the level three cache is a completely separate memory and almost twice the speed of the RAM. And this memory is shared with all the core of the processor.
Importance of cache memory
Knowing what cache memory is and the different types of it, let’s get to the question of why it works and why it is necessary. Let’s give a real-life example to illustrate this. Guys think you work in an office and you work at a desk. Suppose there is a back-office and all your work files are there. Now suppose the back office is your computer’s hard drive and your working desk is the computer’s RAM. So whenever you need to work, you have to get up and go to the room to fetch the file or you can call you’re pon and bring the files and you can start working. Now the bigger your desk, the more files you can work on together, which is an example of RAM. Now suppose you have two drawers on your desk and think this is a cache memory. Although the drawer is much smaller than your desk, it is much easier to access. You can easily open the drawer and take out the work items and start working. Now you must put the things you most need in the drawer, such as a stapler, a stamp, an important document or a proposal. So these drawers are your cache memory.
In the same way, the CPU cache process of your computer has to complete many processes and read and write a lot of data. So in this case, cache memory keeps the data used repeatedly. Now if your computer wants to execute a command, it first tries to find that data or instruction to the cache memory without fetching data from the RAM. If the cache gets the desired data, the processor’s process becomes much faster. The processor can collect data from the cache, read them and display the output. So in a word, cache memory helps your computer processor to work faster.
See what happens many times, think you need something important to work on. You might think it looks like it’s in your drawer or in your cache memory. But if it is not there at that time, it may be late for you to work. And this is called cache latency. This means that your computer may think that it will pick up a certain file from the cache and send a request to the cache. So if the file is not near the cache, it will request RAM or maybe access the hard drive, it may take a while and it is called cache latency.
Cache Memory size
In many processors such as i3, i5, i7 or Intel Zion series processors, 2MB, 3MB, 6MB, 8MB, 12MB, etc. are seen in the cache. You might think that 12MB is a much smaller size. But a lot more capability for cache memory. It is possible to preserve many instructions in just 12 MB, save many read rights commands, and store many important files that require access to a very fast processor. So all these files store cache and make the CPU work faster.
Android Cache Memory
Guys, now you may be wondering if the cache memory option on Android phones is like a computer? See the processor cache I discussed so far is on your phone but the cache options inside the software are a bit different. That is, when you use an app, that app temporarily stores some data on your phone. Suppose you used the Google Maps app on the phone. Now zoom in or zoom out in many places on the map or you can access some locations. Now, these activities are stored on your phone as a temporary cache. The advantage of this is that when you next open the map and zoom in or out on those places, you will not only lose Internet data but also the app will access the location and your previous activities from the Temporary Cache.
So there are many apps on the phone that store your activities as a temporary cache memory on the phone so that you can show quick results when you next use it. But sometimes a lot of temporal files are stored in the Temporary cache, resulting in reduced storage of your phone. So, in this case, you need to clear the cache. That’s why when you go to your phone’s app settings, an option called Cache memory Clear is available. Clearing it removes temporal files stored on the phone for that app. Moreover, another option is App Data Clear. If you clear the login or change any settings in that app, it will be lost and reverted.
The last word
So, guys, I hope you know all the details about cache memory. From now on, when buying a new computer, it may be difficult to determine exactly how much cache memory will be right for you, but try to get as much cache as you can. Because it won’t be able to raise the RAM later. Please comment on any questions and comments. I will share the post with him.