Professional Documents
Culture Documents
CSAL01E
Quiz 1
The Diagram shows that when the CPU needs data, it first searches the L1 cache. If it’s
not found, the L2 and L3 caches are searched next. If the necessary data is found, it’s called a
cache hit. However, if the data isn’t present in the cache, the CPU has to request it to be loaded
on to the cache from the main memory or storage. This takes time and badly affects
performance. This is called a cache miss.
Usually, the size of the data affects how fast the CPU searches the data. The larger the
data, the longer it may take for the CPU to request it. The analogy of the process can be related
when transporting something heavy as opposed to transferring something light-weight. It will
take time to transfer the heavy one.
References:
https://www.makeuseof.com/tag/what-is-cpu-cache/
https://www.hardwaretimes.com/difference-between-l1-l2-and-l3-cache-types-and-
importance-of-cpu-cache/
https://www.geeksforgeeks.org/cache-memory-in-computer-organization/#:~:text=In
%20Direct%20mapping%2C%20assigne%20each%20memory%20block%20to,the%20rest%20is
%20stored%20in%20the%20main%20memory.
https://www.sciencedirect.com/topics/computer-science/direct-mapped-cache
https://www.gatevidyalay.com/direct-mapping-cache-mapping/