wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Cache Memory

profile
Vrudanshi Bavliya
Jul 04, 2024
0 Likes
0 Discussions
52 Reads

What is Cache Memory?

Cache memory is associated with the term high-speed memory. It is comparatively much smaller RAM could work at a much speed than RAM that is the main memory. The cache is accessible to the CPU comparatively faster than the primarily memory the CPU. Therefore, it is employed to run in parallel with a fast processor and at the same time enhance its efficiency.

For example: If there’s a need of money we always check our purse first and if we need more we open our cupboard, even if that much money is not enough then we go to our respective banks. So lets consider bank is a hard disk, cupboard is a RAM and purse as a cache memory, which means whenever there’s an urgent need of money we open our purse that’s a cache memory. Processor takes 35 nanosecond to read from cache memory and 180 nanosecond to read it from RAM.

There are three types of cache memory

L1 cache:

Proximity: The first level of the cache is closest to the cores because most frequently used instructions are stored there.

Speed: It is the fastest type of cache memory designed to match the speed of the CPU.

Size: It is the smallest in size usually ranging from 16kb to 128 kb per core.

Purpose: Compared to the rest L1 cache is accessed most often as it is faster and closer to the and instructions it contains.

L2 cache:

Proximity: This cache is typically located on the CPU chip but it is further away from the cores than l1 cache .

Speed: L2 cache is slower than L1 cache but faster than L3 cache and main memory.

Size: It is larger than L1 cache with size typically ranging from 256kb to a few mb per core.

Purpose: L2 cache is the second level of cache and stores information and instructions that are not present in L1 but required often by the CPU.

L3 cache:

Proximity: L3 cache is usually located on CPU chip but is shared among all the cores in a multi core purpose .

Speed: It is slower than both L1 and L2 but it is still faster than main memory.

Size: L3 is the largest of the three, with size typically ranging from a few mb to tens of mb.

Purpose: It is the final cache before core logic has to go to main memory to fetch the required data It helps to further reduce the latency and improve the efficiency of memory access, particularly in multi-core processors where it can help coordinate and share data among cores.

 


Comments ()


Sign in

Read Next

Cyber Security in Data Breaching

Blog banner

You Get Everyone, But No One Gets You: The Lonely Side of High Emotional Intelligence

Blog banner

How to Avoid being a Victim of Cybercrime

Blog banner

Mumbai

Blog banner

Building a Simple Doctor Appointment System in Common Lisp

Blog banner

Why Progressive Web Apps (PWAs) Are Replacing Traditional Websites

Blog banner

RAID - LEVELS OF RAID

Blog banner

How Schools Can Reduce Exam Stress in Students?

Blog banner

BEAUTY IS IN THE EYE OF THE BEHOLDER

Blog banner

MEMORY MANAGEMENT FILE

Blog banner

Different types of scam frauds

Blog banner

Search Marketing In 2026: From Keywords To Credibility And User Intent

Blog banner

How Puppet Shows and Role Play Teach Empathy to Preschoolers

Blog banner

Password Generator - Lisp

Blog banner

Deming’s Process

Blog banner

Rapido

Blog banner

Why is it hard to design an Operating Systems ?

Blog banner

A Weekend at Oak Tree Hotel: The Best Hotel Experience in Arcadia, Florida

Blog banner

Sweet Mango Murabba

Blog banner

INTRODUCTION TO C#

Blog banner

Cloud Computing: Threats and Vulnerabilities

Blog banner

Explain DBMS in Brief

Blog banner

The Psychology of Diversity, Equity & Inclusion: How Inclusive Workplaces Boost Productivity

Blog banner

Memory Management

Blog banner

Never give up

Blog banner

Pilgrimage at LOC: A privilege and a paradox

Blog banner

Importance Of Education.

Blog banner

BIRYANI ! The history you never knew about

Blog banner

security controls

Blog banner

Simple STEM Activities for Toddlers That Spark Curiosity

Blog banner

ahh wait a min

Blog banner

ITIL Version 3 and 4 differenciation?

Blog banner

OS Assignment-3

Blog banner

Brain wash of social media

Blog banner

MQTT (MQ Telemetry Transport) in Data Science

Blog banner

Health and fitness

Blog banner

Kernel Modes: User Mode vs. Kernel Mode - 80

Blog banner

SQL Injection

Blog banner

Blockchain Transactions

Blog banner

Note Taker App

Blog banner

Memory Management

Blog banner

"Audit" In Data Science

Blog banner