Welcome to YLOAN.COM
yloan.com » Computers & Internet » Cache Memory- Why Do We Need It?
Games Personal-Tech Data Entry registry cruise torrent mac code virus storage uninstaller systems cisco bugs wireless codes maintenance dell update communication trojan atlanta Data Backup Data Storage Data Protection Data Recovery Anti-Virus Windows Linux Software Hardware Mobil-Computing Certification-Tests Computers & Internet Internet

Cache Memory- Why Do We Need It?

Cache Memory- Why Do We Need It?

Cache Memory- Why Do We Need It?

I was considering a way to explain what cache memory is all about without taking a Mathematics class on Logarithm. So, I have decided to try out the following.

I have 100 friends and I cannot remember their names, but I need to get their names at random. I also have 5 more friends who can remember the names of 20 people each. So ideally, if I get the help of these 5 people, I should get the names of these 100 friends at random. These 5 people are ready to help me but for a price!! So I cannot really bring in more people to do the job for me. However, I can rely on these 5 people for the job to be done. So I have my CACHE MEMORY ready!! Whenever I require a name, I can access my 5 people' database anytime and will surely get the name I require.

The computer architecture more or less works on the same principle. We have a slow device like the hard drive, which cannot keep up to the speed required by the processor. So we have got a primary memory installed in between, which we call the RAM (Random Access Memory). The RAM is of course faster, but is still slower than the processor to provide the required data whenever possible. Not only that, in case of RAM, the names of those 100 friends in the given example are stored in 100 "memory locations". We need to say here that, as we all live in a house with a specific address, in the similar way, the data in the RAM are stored in specific address locations. Now, let's consider, there are 5 people in the CPU (Processor) or let's say 5 Kilobyte of memory of higher speed, which we will now call the cache memory. According to the requirement of the CPU, the cache memory will be able to provide the memory address locations of all those 100 people and that will happen very fast. In other words the cache memory will be able to say, in which house each of the 100 people resides.

Now the question is, I might require the names of those 100 people in a sequential manner or else at random. In a similar way the processor might need to access data sequentially or at random. So the cache memory needs to act either in a sequential manner or at random. Numerous algorithms are devised accordingly by the scientists for the proper functioning of the cache memory.

Without going into the algorithm of cache memory in details, let us understand what are level 1 cache and level 2 cache all about. The processors are not at all as simple as they used to be earlier. As the number of cores in the processor is increasing, it is also making the structure of the cache memory more complex at the same time. So we need L2 cache which would be interacting with the L1 cache before the interaction of the processor starts. In the same way we need L3 cache.

The question still remains, why shouldn't we replace the primary memory (RAM) with the cache memory? The answer lies in what I said earlier. My 5 friends are ready to help me, provided that I pay them well. Cache memory, unlike RAM, is still very costly. It is transistor-based and not capacitor-based as the RAM is. So we have a cost versus performance trade off.

So before buying a motherboard or a processor, check out the amount of cache included in it. It is just not only the processor that has cache memory included in it, even the motherboard comes with some cache memory. Check the specifications and take help of a help desk specialist if required before buying a processor or a motherboard. It is the cache memory that makes the difference in performance except the RAM. Also check the FSB (Front Side Bus) or the data path between the processor and the other devices like the RAM. Narrow communication path (related to FSB) between 2 high speed devices can again prove to be a bottle-neck in performance in spite of a good amount of cache memory. But cache memory certainly is one of the most important factors in the performance of the computer when speed is concerned.
All About Ink Cartridges Buy Online Cheap Ink Cartridges Purchase Ink Cartridges: Get Ink Cartridges Online Stop Viruses Spread from USB Drive How can I monitor my home and office without using a CCTV camera? Social Media Monitoring, Social Media PR and Social Media Research Solutions–Reach 2.0 Save Your Laptop Battery Know More About Memory Stick Duo Memory Stick And Its Usages Types of Memory Card Reader HP Ink And Cartridges – Get Quality At A Lower Cost Laptops Have No Comparison with Notebooks! Using USB Removable Memory Card Reader
print
www.yloan.com guest:  register | login | search IP(13.59.134.12) Washington / Seattle Processed in 0.008495 second(s), 5 queries , Gzip enabled , discuz 5.5 through PHP 8.3.9 , debug code: 15 , 4040, 55,
Cache Memory- Why Do We Need It? Seattle