TECH TIPS
Operating
Systems
what is
Virtual
Memory
DIWAKAR CHAURASIA
💭"Everopened
Tech Tips
20tabswhile
havingonly8GB
RAM?Howdoes
yoursystemnot
crash?"
🧠 What is Virtual
Memory?
Virtual Memory is a memory
management technique where the
operating system:
Pretends you have more
memory (RAM) than you
physically do
Uses part of the hard disk
(swap space) to temporarily
store data
Maps virtual addresses used
by programs to physical
addresses
VIRTUAL MEMORY
⚙️Why It’s Useful:
✅ Run larger programsthan
your RAM allows
✅ Multitask with several
apps
✅ Protect and isolate
memory spaces for
processes
✅ Enables memory paging,
which avoids crashing
🧩 Real-Life Analogy:
Imagine a desk (RAM) and a
filing cabinet (Hard Disk):
Your desk can only hold a
few files at once (limited
space)
When space runs out, you
move files you’re not using
to the filing cabinet
When you need them
again, you swap them back
That’s virtual memory in action!
🔁 Behind the Scenes
(How it works):
Programs request
memory using virtual
addresses
OS uses a page table to
translate those
addresses into physical
memory
If the data isn’t in RAM →
Page Fault → OS
fetches it from disk
🔁 What is a Page Fault?
A Page Fault occurs when a
program tries to access a part
of memory (a page) that is not
currently loaded into physical
RAM.
Since modern operating
systems use Virtual Memory,
programs don't directly access
physical memory. Instead, they
use virtual addresses, which
are mapped to physical
memory only when needed.
🧠 Why Virtual
Memory is Essential?
“What makes it a superhero
feature of operating systems?”)
Modern computing is multitasking-
heavy — you’ve got:
A browser with 10 tabs open,
A video call in progress,
A code editor running,
Maybe even Spotify playing in
the background.
But your system may only have 8
or 16 GB RAM. How does it handle
it?
👇 Because of Virtual Memory.
TECH TIPS
Follow to
get more
Information
and tips like
this.
DIWAKAR CHAURASIA