Nowadays, most of the equipment we use has a digital similar to those of a PC, whether it is mobile phones, video game consoles or even intelligent televisions of the new generation. These computers have processors powered by processing cores, RAM cards, and other components that help computers to complete the work with regard to digital processes.
Cache memory is nothing more than a small part of the storage system which is the solution to performance problems in the memory system. This is usually incorporated in processors and RAM, being a really small piece in terms of physical space. Its function is not complicated at all, but it is really important because it takes care of storing the most used data by the user and keep them close to the processor so that, it can have easy and quick access to them.
Cache memory within informatics, is an electronic component that is found in both the hardware and software, it is responsible for storing recurring data to make it easily accessible and faster to requests generated by the system.
Cache memory is taken as a special buffer of the memory that all computers have, it performs similar functions as the main memory. One of the most recognized caches are internet browsers which maintain temporary downloads made from the internet to have available information for internal system.
Within the cache memory system there are two main functions:
Cache memory originated when the first computers, as far as memory is concerned, could no longer cover the processors’ needs, which were working at a higher speed than memory.
So, system engineers decided to incorporate a small auxiliary memory which would serve to assist the microprocessor thus reducing the waiting time for data recovery.
The term was born in England where it was given the name of “Cache” which translates as a hidden place to store information or contraband.
The first thing that the cache memory does is organize the information in different levels, these range from the smallest to the largest depending on how far away they are from the processor. It is organized in 3 levels to facilitate the processors work when collecting information.
When the processor needs information, it first resorts to the cache, where it searches for each level until it finds the required one. In case this is not the case, the processor looks for it in its internal memory and the cache saves data from the search to evaluate if it is necessary to incorporate it in the cache.
All levels within the cache have control centers where all the managed information is prepared and the higher the level (from 3rd to 1st) the greater the amount of information memory.
Within the cache memories there are 3 types that are most frequently used:
The speed within the cache memories is measured in “ns” which translates into nanoseconds, cache memory handles times between 15 and 35 ns of response to the processor, but this increases or decreases depending on the number of gigabytes and also, the RAM card marks where the cache is mainly found in computers.
When it is not correctly optimized, cache memory causes processors problems, hindering the tasks to be performed.
In some cases, cache memory fails when deleting its temporary files, overloading itself with information and slowing down all the information exchange processes between the cache and the main memory, affecting the computer completely.
The cache memories must be optimized in order to reduce the failures in it known as “miss rate“, also reduce the penalty for failure of it, and finally, reduce the “hit time” when hit time is correct.
The most common failures due to card problems are:
The most used techniques to reduce cache memory failures are the following:
Briceño V., Gabriela. (2019). Cache memory. Recovered on 24 February, 2024, de Euston96: https://www.euston96.com/en/cache-memory/