Today I am going to tell you what is a cache memory. I hope you already heard of Cache and if you want to know what is a cache and cache memory, then read this full article. I am going to explain each and everything about Cache and Cache Memory.
What is a Cache Memory?
Pronounced as cash, the cache special high speed storage mechanism. It can be either a reserved section of main memory or an independent high speed storage device or even on CPU chip. Whenever some data is required, the CPU first looks in the cache, if it is there or not. If the data is found in cache, CPU does not access memory and hence the process becomes very fast.
The cache memory is a high speed memory available inside CPU in order to speed up access to data and instruction is stored in RAM memory. 95% of the time the processor is working, it is accessing information from cache.In memory cache, sometimes called a cache storage or RAM cache is a portion of memory made of high-speed static RAM(SRAM) instead of the slower and cheaper dynamic RAM(DRAM) used for main memory. Memory caching is effective because most programs access the same data or instructions over and over. By keeping as much of this information as possible in SRAM the computer avoids accessing the slower DRAM.
When data is found in the cache it is called a cache hit, and the effectiveness of a cache is judged by it's hit rate.
Types of cache memory
There are three types of cache memories :
- Level 1 (L1) cache
- Level 2 (L2) cache
- Level 3 (L3) cache
The L1 cache is built inside the CPU package while the L2 and L3 cache are external to the CPU and reside on the motherboard. Some systems may not have L3 cache.
Loved this post? Share with your friends on social media.