CACHE

In computer system the cache memory is used to store temporary files / data, which will be used frequently, the cache memory is expensive as compared to another types of persistence storage. Data that is used frequently is stored in cache memory.

The cache works in 3 levels:

L1 Cache – Fastest Speed
L2 Cache – Medium Speed
L3 Cache – Lowest Speed

The 3 levels of cache are integrated with CPU, they all have different values of CACHE MEMORY SIZE.

L1 cache is faster than secondary L2 CACHE, the third fastest is L3 , L3 has the lowest data access speed among all cache types.

L1 CACHE | L2 CACHE | L3 CACHE |

The data found in cache memory is called CACHE HIT, when the user search website or open app many times, some of the app/ website resources are stored in cache and then retrieved when the user looks for the same resources over app or website.

Caching will reduce data access time, latency and increases I/O throughput. 

Cache policies need to be issued in order to carry out an optimized caching process. The transfer between CPU and CACHE is called WORD TRANSFER.

Cache is expensive hardware hence the size of cache memory is way lower than the HARD DISK.

  • L1 cache is also referred as PRIMARY CACHE.
  • L2 cache is also referred as SECONDARY CACHE.
  • L3 cache is leveraged to optimize the performance of L1 and L2 cache.

Cache Types: CPU Cache | Web Cache | DNS Cache | CDN cache | Disk Cache | Memory Cache | Persistence Cache | Distributed Cache | Flash cache

Caching makes computing faster and efficient, without state of the art caching mechanism it will be challenging to make computer system work faster, as all the data needs to be retrieved from the hard disk which is substantially slower than retrieving the frequently used data & buffer data from the caching memory. Cache data access time is way faster then hardrive data access time.

High performance caching needs to in place in order to make distributed systems more available and consistent, lot of end user resources can be cached and need not to be downloaded from the server, caching reduces both the web server and db server load to a very high extent, without the right set of cache optimization and cache driver integration building a highly scalable and efficient distributed computational and storage network is daunting.

The article above is rendered by integrating outputs of 1 HUMAN AGENT & 3 AI AGENTS, an amalgamation of HGI and AI to serve technology education globally.

(Article By : Himanshu N)