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).
Ppt cache vs virtual memory without animation
Ppt cache vs virtual memory without animation
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.
Ppt cache vs virtual memory without animation
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.
Ppt cache vs virtual memory without animation
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

PPT
Virtual memory
PPTX
Processors
PDF
Leksioni 3 procesori
PDF
Leksioni 5 kujtesa paresore
PPT
Virtual Memory
PPT
Virtual memory
PDF
RTOS - Real Time Operating Systems
PPT
Chapter 5
Virtual memory
Processors
Leksioni 3 procesori
Leksioni 5 kujtesa paresore
Virtual Memory
Virtual memory
RTOS - Real Time Operating Systems
Chapter 5

What's hot (20)

PPTX
Multicore Processor Technology
PPTX
Virtual Memory
PPT
Tecnologia SCSI
PPTX
Memory types
DOC
Virtual Memory vs Cache Memory
PDF
Introduction to High Performance Computing
PPT
Disk structure.45
PPTX
Secondary memory
PPTX
Cache Memory.pptx
PDF
Tipos de memoria
PPT
Virtual memory
PDF
Virtual memory
PPT
Virtual memory
PPTX
Micro programmed control
PPTX
Cpu presentation
PPTX
Informatica corso base hw e sw
PPT
Computer Measures of Performance
PDF
Deep Learning (DL) from Scratch
PPT
Cache memory
PPTX
RAM :A primary Memory
Multicore Processor Technology
Virtual Memory
Tecnologia SCSI
Memory types
Virtual Memory vs Cache Memory
Introduction to High Performance Computing
Disk structure.45
Secondary memory
Cache Memory.pptx
Tipos de memoria
Virtual memory
Virtual memory
Virtual memory
Micro programmed control
Cpu presentation
Informatica corso base hw e sw
Computer Measures of Performance
Deep Learning (DL) from Scratch
Cache memory
RAM :A primary Memory
Ad

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

PPTX
Cache memory and virtual memory
PPTX
Computer memory and types of memory.pptx
PPTX
Topic 10- Random Access Memory (RAM).pptx
PPTX
Computer organizatin.Chapter Seven.pptxs
PPTX
CACHE MEMORY
PPTX
PDF
Cache memory
PPTX
Ram and types of ram.Cache
PPT
Cache memory and cache
DOCX
Cache memory
PPTX
Storage devices
PPT
Cache memory ...
PPTX
Unit 5-lecture-2
PPTX
Memory Hierarchy
DOCX
COMPUTER MEMORY
PDF
Virtual+Cache_Memory Operation System...
PDF
Linux%20 memory%20management
PPTX
COMPUTER MEMORY
PPT
Cache memory presentation
PPTX
Cache memory and virtual memory
Computer memory and types of memory.pptx
Topic 10- Random Access Memory (RAM).pptx
Computer organizatin.Chapter Seven.pptxs
CACHE MEMORY
Cache memory
Ram and types of ram.Cache
Cache memory and cache
Cache memory
Storage devices
Cache memory ...
Unit 5-lecture-2
Memory Hierarchy
COMPUTER MEMORY
Virtual+Cache_Memory Operation System...
Linux%20 memory%20management
COMPUTER MEMORY
Cache memory presentation
Ad

Recently uploaded (20)

PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PDF
Five Habits of High-Impact Board Members
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PPTX
The various Industrial Revolutions .pptx
PDF
UiPath Agentic Automation session 1: RPA to Agents
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
Two-dimensional Klein-Gordon and Sine-Gordon numerical solutions based on dee...
PDF
CloudStack 4.21: First Look Webinar slides
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PPTX
Chapter 5: Probability Theory and Statistics
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PPTX
2018-HIPAA-Renewal-Training for executives
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
STKI Israel Market Study 2025 version august
PPTX
Benefits of Physical activity for teenagers.pptx
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PPTX
Microsoft Excel 365/2024 Beginner's training
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PDF
Zenith AI: Advanced Artificial Intelligence
Custom Battery Pack Design Considerations for Performance and Safety
Five Habits of High-Impact Board Members
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
The various Industrial Revolutions .pptx
UiPath Agentic Automation session 1: RPA to Agents
Developing a website for English-speaking practice to English as a foreign la...
Two-dimensional Klein-Gordon and Sine-Gordon numerical solutions based on dee...
CloudStack 4.21: First Look Webinar slides
A contest of sentiment analysis: k-nearest neighbor versus neural network
Chapter 5: Probability Theory and Statistics
The influence of sentiment analysis in enhancing early warning system model f...
2018-HIPAA-Renewal-Training for executives
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
STKI Israel Market Study 2025 version august
Benefits of Physical activity for teenagers.pptx
Final SEM Unit 1 for mit wpu at pune .pptx
Microsoft Excel 365/2024 Beginner's training
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
Consumable AI The What, Why & How for Small Teams.pdf
Zenith AI: Advanced Artificial Intelligence

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).
  • 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.
  • 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.
  • 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.