SlideShare a Scribd company logo
1 of 17
DSD PRESENTATION
ON
VIRTUAL AND CACHE
MEMORY
Submitted By – Animesh Jain
What is Cache Memory?
Cache memory is a type of
memory that lies between the CPU
(Central Processing Unit) and the RAM
(Random Access memory).
The purpose of cache memory is to reduce the
memory access time of the CPU from the RAM.
The cache memory is much faster than RAM. So
access time on cache is much lesser than the
access time on RAM. But the cost of memory
used for cache memory is much higher than the
cost of memory used for RAM, and hence, the
capacity of cache memory is very small.
The type of memory used for cache memory is
called SRAM ( Static Random Access Memory).
Whenever the CPU wants to access memory, it first
checks whether what it needs resides in the cache
memory. If yes, it would be able to access it with the
least latency. If it does not reside in cache, then the
requested content would be copied from RAM to the
cache and then only the CPU will access it from the
cache. Here, when copying content from the cache, not
only the content in the requested memory address but
also the nearby content is copied to cache. So, the next
time there is a high probability for a cache hit to occur as
most computer programs access nearby data or last
accessed data most of the times. So due to the cache,
the average memory latency is reduced.
In CPU, there are three types of
caches: Instruction cache to store program
instructions, Data cache to store data items,
and the Translation Look-aside Buffer to store
memory mappings. For data cache, generally,
there are multi-level caches. That is, there are
several caches as L1, L2 and L3. L1 cache is
the fastest but smallest cache memory that is
closest to the CPU. L2 cache is slower than L1,
but larger than L1 and resides after the L1
cache. Because of this hierarchy a better
average memory access time can be achieved
at a less cost.
What is Virtual Memory?
Virtual memory is a memory management
technique used in computers systems. There is
no hardware called virtual memory, but it is a
concept that uses RAM and the hard disk to
provide a virtual address space for programs.
First RAM is divided into chunks
called pages and they are identified by physical
memory addresses. In the hard disk, a special
portion is reserved where, in Linux, it is called
the swap and, in Windows, it is called a page
file. When a program is started, it is given a
virtual address space that can be even larger
than the actual physical memory.
Virtual memory space is also divided into
chunks called pages and each of this virtual
memory page can be mapped to a physical
page. The table called page table keep track of
this mapping. When the physical memory runs
out of space, what is done is, certain physical
pages are pushed to that special portion in the
hard disk. When any page pushed to the hard
disk is needed again, it is brought to the
physical memory by putting another selected
page from the physical memory to the hard
disk.
What is the difference between
Cache Memory and Virtual Memory?
• Cache memory is a type of memory used
for improving the main memory access time.
It is a faster type of memory that resides
between CPU and RAM to reduce the
average memory access latency. Virtual
memory is a memory management method
where it is a concept that lets programs get
its own virtual memory space, which is even
larger than the real physical RAM available.
• Cache memory is a type of hardware
memory that actually exists physically. On
the other hand, there is no hardware called
virtual memory as it is a concept that uses
RAM, hard disk, Memory management unit,
and software to provide a virtual type of
memory.
• Cache memory management is done fully
by hardware. Virtual memory is managed by
the operating system (software).
• Cache memory lies between RAM and the
processor. Data transfers involve RAM, cache
memory, and the processor. Virtual memory, on
the other hand, involves transfer of data
between RAM and hard disk.
• Cache memories take small sizes such
as Kilobytes and Megabytes. Virtual memory,
on the other hand, involves huge sizes that
take gigabytes.
• Virtual memory involves data structures such
as page tables that store mapping between
physical memory and virtual memory. But this
type of data structures is not necessary for
cache memory.
Summary:
Cache Memory vs Virtual Memory
Cache memory is used for improving the main memory
access time while virtual memory is a memory
management method. Cache memory is an actual
hardware, but there is no hardware called virtual
memory. RAM, hard disk, and various other hardware
together with the operating system produces the concept
called virtual memory to provide large and isolated
virtual memory spaces to each program. The content in
the cache memory is managed by hardware while the
content in the virtual memory is managed by the
operating system.
•http://www.differencebetween.info
•http://www.differencebetween.com
•https://www.google.co.in
•https://www.youtube.com
REFERENCE
THANK YOU

More Related Content

What's hot

Cache memory principles
Cache memory principlesCache memory principles
Cache memory principlesbit allahabad
 
Hardware Multi-Threading
Hardware Multi-ThreadingHardware Multi-Threading
Hardware Multi-Threadingbabuece
 
Multiprocessor architecture
Multiprocessor architectureMultiprocessor architecture
Multiprocessor architectureArpan Baishya
 
Virtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryVirtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryAshik Iqbal
 
Rtos concepts
Rtos conceptsRtos concepts
Rtos conceptsanishgoel
 
I/O buffering & disk scheduling
I/O buffering & disk schedulingI/O buffering & disk scheduling
I/O buffering & disk schedulingRushabh Shah
 
Real time operating systems (rtos) concepts 1
Real time operating systems (rtos) concepts 1Real time operating systems (rtos) concepts 1
Real time operating systems (rtos) concepts 1Abu Bakr Ramadan
 
Unit 4 Real Time Operating System
Unit 4 Real Time Operating SystemUnit 4 Real Time Operating System
Unit 4 Real Time Operating SystemDr. Pankaj Zope
 
Transparent Hugepages in RHEL 6
Transparent Hugepages in RHEL 6 Transparent Hugepages in RHEL 6
Transparent Hugepages in RHEL 6 Raghu Udiyar
 
Cache optimization
Cache optimizationCache optimization
Cache optimizationKavi Kathir
 
Limitations of memory system performance
Limitations of memory system performanceLimitations of memory system performance
Limitations of memory system performanceSyed Zaid Irshad
 

What's hot (20)

Cache memory
Cache memoryCache memory
Cache memory
 
Cache memory principles
Cache memory principlesCache memory principles
Cache memory principles
 
Hardware Multi-Threading
Hardware Multi-ThreadingHardware Multi-Threading
Hardware Multi-Threading
 
RTOS - Real Time Operating Systems
RTOS - Real Time Operating SystemsRTOS - Real Time Operating Systems
RTOS - Real Time Operating Systems
 
Multiprocessor architecture
Multiprocessor architectureMultiprocessor architecture
Multiprocessor architecture
 
Virtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryVirtual Memory vs Cache Memory
Virtual Memory vs Cache Memory
 
Rtos concepts
Rtos conceptsRtos concepts
Rtos concepts
 
04 Cache Memory
04  Cache  Memory04  Cache  Memory
04 Cache Memory
 
Windows io manager
Windows io managerWindows io manager
Windows io manager
 
Symmetric multiprocessing
Symmetric multiprocessingSymmetric multiprocessing
Symmetric multiprocessing
 
I/O buffering & disk scheduling
I/O buffering & disk schedulingI/O buffering & disk scheduling
I/O buffering & disk scheduling
 
Intel Core i7 Processors
Intel Core i7 ProcessorsIntel Core i7 Processors
Intel Core i7 Processors
 
virtual memory
virtual memoryvirtual memory
virtual memory
 
Real time operating systems (rtos) concepts 1
Real time operating systems (rtos) concepts 1Real time operating systems (rtos) concepts 1
Real time operating systems (rtos) concepts 1
 
Unit 4 Real Time Operating System
Unit 4 Real Time Operating SystemUnit 4 Real Time Operating System
Unit 4 Real Time Operating System
 
Transparent Hugepages in RHEL 6
Transparent Hugepages in RHEL 6 Transparent Hugepages in RHEL 6
Transparent Hugepages in RHEL 6
 
Multicore computers
Multicore computersMulticore computers
Multicore computers
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
Cache optimization
Cache optimizationCache optimization
Cache optimization
 
Limitations of memory system performance
Limitations of memory system performanceLimitations of memory system performance
Limitations of memory system performance
 

Similar to Ppt cache vs virtual memory without animation

Similar to Ppt cache vs virtual memory without animation (20)

Cache memory and virtual memory
Cache memory and virtual memoryCache memory and virtual memory
Cache memory and virtual memory
 
Topic 10- Random Access Memory (RAM).pptx
Topic 10- Random Access Memory (RAM).pptxTopic 10- Random Access Memory (RAM).pptx
Topic 10- Random Access Memory (RAM).pptx
 
CACHE MEMORY
CACHE MEMORYCACHE MEMORY
CACHE MEMORY
 
Random Access Memory ppt
Random Access Memory pptRandom Access Memory ppt
Random Access Memory ppt
 
Cache memory
Cache memoryCache memory
Cache memory
 
Ram and types of ram.Cache
Ram and types of ram.CacheRam and types of ram.Cache
Ram and types of ram.Cache
 
Cache memory and cache
Cache memory and cacheCache memory and cache
Cache memory and cache
 
Cache memory
Cache memoryCache memory
Cache memory
 
Storage devices
Storage devicesStorage devices
Storage devices
 
Cache memory ...
Cache memory ...Cache memory ...
Cache memory ...
 
Unit 5-lecture-2
Unit 5-lecture-2Unit 5-lecture-2
Unit 5-lecture-2
 
Memory Hierarchy
Memory HierarchyMemory Hierarchy
Memory Hierarchy
 
COMPUTER MEMORY
COMPUTER MEMORYCOMPUTER MEMORY
COMPUTER MEMORY
 
Linux%20 memory%20management
Linux%20 memory%20managementLinux%20 memory%20management
Linux%20 memory%20management
 
COMPUTER MEMORY
COMPUTER MEMORYCOMPUTER MEMORY
COMPUTER MEMORY
 
Cache memory presentation
Cache memory presentationCache memory presentation
Cache memory presentation
 
Ram ppt
Ram pptRam ppt
Ram ppt
 
CA UNIT V..pptx
CA UNIT V..pptxCA UNIT V..pptx
CA UNIT V..pptx
 
Understanding And Managing Memory
Understanding And Managing MemoryUnderstanding And Managing Memory
Understanding And Managing Memory
 
06 - Memory.ppt
06 - Memory.ppt06 - Memory.ppt
06 - Memory.ppt
 

Recently uploaded

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 

Recently uploaded (20)

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 

Ppt cache vs virtual memory without animation

  • 1. DSD PRESENTATION ON VIRTUAL AND CACHE MEMORY Submitted By – Animesh Jain
  • 2. What is Cache Memory? Cache memory is a type of memory that lies between the CPU (Central Processing Unit) and the RAM (Random Access memory).
  • 3. The purpose of cache memory is to reduce the memory access time of the CPU from the RAM. The cache memory is much faster than RAM. So access time on cache is much lesser than the access time on RAM. But the cost of memory used for cache memory is much higher than the cost of memory used for RAM, and hence, the capacity of cache memory is very small. The type of memory used for cache memory is called SRAM ( Static Random Access Memory).
  • 4.
  • 5.
  • 6. Whenever the CPU wants to access memory, it first checks whether what it needs resides in the cache memory. If yes, it would be able to access it with the least latency. If it does not reside in cache, then the requested content would be copied from RAM to the cache and then only the CPU will access it from the cache. Here, when copying content from the cache, not only the content in the requested memory address but also the nearby content is copied to cache. So, the next time there is a high probability for a cache hit to occur as most computer programs access nearby data or last accessed data most of the times. So due to the cache, the average memory latency is reduced.
  • 7.
  • 8. In CPU, there are three types of caches: Instruction cache to store program instructions, Data cache to store data items, and the Translation Look-aside Buffer to store memory mappings. For data cache, generally, there are multi-level caches. That is, there are several caches as L1, L2 and L3. L1 cache is the fastest but smallest cache memory that is closest to the CPU. L2 cache is slower than L1, but larger than L1 and resides after the L1 cache. Because of this hierarchy a better average memory access time can be achieved at a less cost.
  • 9. What is Virtual Memory? Virtual memory is a memory management technique used in computers systems. There is no hardware called virtual memory, but it is a concept that uses RAM and the hard disk to provide a virtual address space for programs. First RAM is divided into chunks called pages and they are identified by physical memory addresses. In the hard disk, a special portion is reserved where, in Linux, it is called the swap and, in Windows, it is called a page file. When a program is started, it is given a virtual address space that can be even larger than the actual physical memory.
  • 10. Virtual memory space is also divided into chunks called pages and each of this virtual memory page can be mapped to a physical page. The table called page table keep track of this mapping. When the physical memory runs out of space, what is done is, certain physical pages are pushed to that special portion in the hard disk. When any page pushed to the hard disk is needed again, it is brought to the physical memory by putting another selected page from the physical memory to the hard disk.
  • 11.
  • 12. What is the difference between Cache Memory and Virtual Memory? • Cache memory is a type of memory used for improving the main memory access time. It is a faster type of memory that resides between CPU and RAM to reduce the average memory access latency. Virtual memory is a memory management method where it is a concept that lets programs get its own virtual memory space, which is even larger than the real physical RAM available.
  • 13. • Cache memory is a type of hardware memory that actually exists physically. On the other hand, there is no hardware called virtual memory as it is a concept that uses RAM, hard disk, Memory management unit, and software to provide a virtual type of memory. • Cache memory management is done fully by hardware. Virtual memory is managed by the operating system (software).
  • 14. • Cache memory lies between RAM and the processor. Data transfers involve RAM, cache memory, and the processor. Virtual memory, on the other hand, involves transfer of data between RAM and hard disk. • Cache memories take small sizes such as Kilobytes and Megabytes. Virtual memory, on the other hand, involves huge sizes that take gigabytes. • Virtual memory involves data structures such as page tables that store mapping between physical memory and virtual memory. But this type of data structures is not necessary for cache memory.
  • 15. Summary: Cache Memory vs Virtual Memory Cache memory is used for improving the main memory access time while virtual memory is a memory management method. Cache memory is an actual hardware, but there is no hardware called virtual memory. RAM, hard disk, and various other hardware together with the operating system produces the concept called virtual memory to provide large and isolated virtual memory spaces to each program. The content in the cache memory is managed by hardware while the content in the virtual memory is managed by the operating system.