Cache Memory
- Cache memory is a type of volatile memory used to hold frequently used data.
- Cache memory is relatively small but very fast.
- The cache memory is located very close to the CPU.
- on the CPU chip itself
- Some cache memories are on the motherboard in the immediate access area of the CPU and connected through a dedicated data bus.
- So instructions and data can be read from it (and written to it) much more quickly than with normal RAM.
- SRAM is used for main Hardware for Cache memory.
- Most web browsers use a cache to load regularly viewed web pages fast.
- Cache comes as Level 1 (L1), Level 2 (L2) and Level 3 (L3).
- L1 cache memory is in the processor. So it is very speed than L2 and L3
- L2 and L3 may be embedded on the processor or on the motherboard.
- L3 cache is normally found on high end machine such as servers.
How the CPU Cache Works
- To carry out a particular instruction, the CPU needs a specific piece of information.
- The CPU will first check to see if this information is available in the CPU cache.
- If the information is found, it gets that information from the cache.
- If the information is not found, the CPU looks for the information from the main memory, but it will simply take longer.