wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

An Overivew Of Cache Memory

profile
Monil Parikh
Aug 14, 2024
0 Likes
0 Discussions
56 Reads

Data in primary memory can be accessed faster than secondary memory but still, access times of primary memory are generally in a few microseconds, whereas the CPU is capable of performing operations in nanoseconds. Due to the time lag between accessing data and acting on data performance of the system decreases as the CPU is not utilized properly, it may remain idle for some time. In order to minimize this time gap new segment of memory is Introduced known as Cache Memory.

It is based on principle of locality of reference, which refers to the observation that program tries to access a relatively small portion of their address space at any given time, and repeatedly tries to access some portion of the memory. For ex: In fees department of your college, transactions are accessed frequently to check on the dues.


Key Features of Cache Memory

  1. Speed: Faster than the main memory (RAM), which helps the CPU retrieve data more quickly.
  2. Proximity: Located very close to the CPU, often on the CPU chip itself, reducing data access time.
  3. Function: Temporarily holds data and instructions that the CPU is likely to use again soon, minimizing the need to access the slower main memory.

Role of Cache Memory

The role of cache memory is explained below,

  • Cache memory plays a crucial role in computer systems.
  • It provide faster access.
  • It acts buffer between CPU and main memory(RAM).
  • Primary role of it is to reduce average time taken to access data, thereby improving overall system performance.

Benefits of Cache Memory

Various benefits of the cache memory are,

  1. Faster access: Faster than main memory. It resides closer to CPU , typically on same chip or in close proximity. Cache stores subset of data and instruction.
  2. Reducing memory latency: Memory access latency refers to time taken for processes to retrieve data from memory. Caches are designed to exploit principle of locality.
  3. Lowering bus traffic: Accessing data from main memory involves transferring it over system bus. Bus is shared resource and excessive traffic can lead to congestion and slower data transfers. By utilizing cache memory , processor can reduce frequency of accessing main memory resulting in less bus traffic and improves system efficiency.
  4. Increasing effective CPU utilization: Cache memory allows CPU to operate at a higher effective speed. CPU can spend more time executing instruction rather than waiting for memory access. This leads to better utilization of CPU’s processing capabilities and higher overall system performance.
  5. Enhancing system scalability: Cache memory helps improve system scalability by reducing impact of memory latency on overall system performance.

Working of Cache Memory

In order to understand the working of cache we must understand few points:

  • Cache memory is faster, they can be accessed very fast
  • Cache memory is smaller, a large amount of data cannot be stored

Whenever CPU needs any data it searches for corresponding data in the cache (fast process) if data is found, it processes the data according to instructions, however, if data is not found in the cache CPU search for that data in primary memory(slower process) and loads it into the cache. This ensures frequently accessed data are always found in the cache and hence minimizes the time required to access the data.


Comments ()


Sign in

Read Next

"Can Lisp do Machine Learning?"

Blog banner

Memory heirchy

Blog banner

Risk factors in service transistion

Blog banner

CONCURRENCY: MUTUAL EXCLUSION AND SYNCHRONIZATION-het karia

Blog banner

What is Brute Force Attack? How to defend against it?

Blog banner

The House ??of Patola Designs: Traditional Weaves with a Modern Twist

Blog banner

How to make Pancakes

Blog banner

Deadlock and Starvation

Blog banner

Evolution of the Microprocessor ~ Aditya Pai

Blog banner

Building a Better You: Fitness Tips and Inspiration.

Blog banner

Rain bow

Blog banner

Instagram

Blog banner

Natural Language Processing(NLP)

Blog banner

Service transistion under difficult conditions

Blog banner

Uniprocessor scheduling

Blog banner

Honeypot in cyber security

Blog banner

DMZ: Your Secret Weapon for Data Security

Blog banner

?What Your Dentist Notices The Moment You Sit In The Chair

Blog banner

Install Ubuntu Easily

Blog banner

Data Visualization- Importance and tools (Tableau,Power BI, Matplotlib)

Blog banner

Getting into anime My anime suggestions

Blog banner

Deadlock and starvation

Blog banner

What Function Does SEO Serve in Digital Marketing?

Blog banner

Image Steganalysis in Digital Forensics

Blog banner

Virtual Memory

Blog banner

Brilliant WhatsApp Features Upcoming in 2023

Blog banner

Importance of education

Blog banner

1.1 basic elements

Blog banner

SNAPCHAT

Blog banner

A-B-C of Networking: Part-2 (Components)

Blog banner

OS assignment 3

Blog banner

ONLINE NEWSROOMS

Blog banner

Things You Should Leave Behind In 2025, Whilst In 2026

Blog banner

LEMON PICKLE SWEET AND MILD HOT

Blog banner

Introduction to Virtual Memory - 080

Blog banner

Data Mining

Blog banner

Short-Form Video Marketing: Why It's Dominating the Internet

Blog banner

Google

Blog banner

IT Service Continuity Management

Blog banner

Dove’s Real Beauty Campaign- Case Study

Blog banner

Device driver

Blog banner

Explain Kernel in OS

Blog banner