7
Most read
9
Most read
10
Most read
Virtual Memory
Muhammad Umer Farooq
12024119-015@uog.edu.pk
0331-0331-666
What is Virtual Memory 1
• The term virtual memory refers to
something which appears to be present
but actually it is not.
• Virtual memory allows users to use
more memory for a program than the
real memory of a computer.
History 2
• Virtual Memory was developed in
approximately 1959 – 1962, at the University
of Manchester for the Atlas Computer,
completed in 1962.
• In 1961, Burroughs released the B5000, the
first commercial computer with virtual
memory.
Uses of Virtual Memory 3
• The virtual addresses are used rather than real
addresses to store instructions and data.
• It is temporary memory which is used along
with ram of the system.
• When the program is actually executed, the
virtual addresses are converted into real
memory addresses again.
Address Space & Memory Space 4
• Virtual memory is the address used by the
programmer and the set of such addresses is
called address space.
• The set of actual main memory locations in
main memory is called the memory space.
Why is it needed…? 5
• Before the development of the virtual memory
technique, programmers have to manage
directly two-level storage such as main
memory or ram and secondary memory .
• Without virtual memory, It is too much
expensive to execute / manage the program as a
whole.
• Enlarge the address space, the set of addresses
a program can utilize.
Objectives… 6
• When a computer is executing many
programs at the same time, Virtual memory
make the computer to share memory
efficiently.
• Eliminate a restriction that a computer works
in memory which is small and be limited.
• When many programs are running at the same
time, by distributing each suitable memory
area to each program, VM protect the
programs to interfere each other in each
memory area.
Paging… 7
• To facilitate copying virtual memory into real
memory, the operating system divides virtual
memory into pages, each of which contains a
fixed number of addresses.
• Each page is stored on a disk until it is needed.
• When the page is needed, the operating system
copies it from disk to main memory, translating
the virtual addresses into real addresses.
Paging……(cont’d) 8
• The operating system copies a certain
number of pages from your storage
device to main memory.
• When a program needs a page that is
not in maim memory, the operating
system copies the required page into
memory and copies another page back
to the disk.
Virtual Memory (Paging) 9
Page table
Address Space
Page table
Address Space
Physical
Memory
Page fault 10
• An interrupt to the software raised by the
hardware when a program accesses a page that
is not mapped in physical memory.
• It occurs when a program accesses a memory
location in its memory and the page
corresponding to that memory is not loaded.
• when a program accesses a memory location in
its memory and the program does not have
rights to access the page corresponding to that
memory.
Paging replacement algorithms 11
• OPT(MIN) : eliminate the page that be not
expected to be used.
• FIFO(first input/first output) : rather than
choosing the victim page at random, the
oldest page is the first to be removed.
• LRU(Least Recently used) : move out the
page that is the least rarely used.
• LFU(Least Frequently used) : move out the
page that is not used often in the past.
Advantages… 12
• It has become so common because it provides a
big benefit for users at a very low cost.
• program is no longer constrained by the amount
of physical memory.
• user would be able to write programs for an
extremely large virtual address space.
• more programs could be run at the same time
• increase CPU utilization and throughput.
• less I/O would be needed to load or swap each
user program
Disadvantages 13
• Applications run slower if the system is
using virtual memory.
• It take more time to switch between
applications.
• Less hard drive space for your use.
• It reduces system stability.

More Related Content

PPT
Virtual memory
PPTX
Virtual Memory
PPTX
Virtual memory presentation
PPTX
Computer architecture virtual memory
PPT
Virtual memory
PPTX
Operating Systems: Virtual Memory
PPTX
Memory management
PPT
Virtual memory
Virtual memory
Virtual Memory
Virtual memory presentation
Computer architecture virtual memory
Virtual memory
Operating Systems: Virtual Memory
Memory management
Virtual memory

What's hot (20)

PPT
Virtual Memory
PPT
Memory management
PPT
Memory hierarchy
PPS
Virtual memory
PPTX
Operating system memory management
PPTX
Operating system paging and segmentation
PPTX
Cache Memory
PPTX
Virtual Memory
PPTX
VIRTUAL MEMORY
PPT
Memory Management in OS
PPT
Virtual Memory ,Direct memory addressing and indirect memory addressing prese...
PPTX
Demand paging
PPTX
Auxiliary memory
PPTX
Memory organization in computer architecture
PDF
Virtual memory
PPTX
Memory organization (Computer architecture)
PDF
Memory management
PPTX
Memory Organization
PPT
Virtual memory
Virtual Memory
Memory management
Memory hierarchy
Virtual memory
Operating system memory management
Operating system paging and segmentation
Cache Memory
Virtual Memory
VIRTUAL MEMORY
Memory Management in OS
Virtual Memory ,Direct memory addressing and indirect memory addressing prese...
Demand paging
Auxiliary memory
Memory organization in computer architecture
Virtual memory
Memory organization (Computer architecture)
Memory management
Memory Organization
Virtual memory
Ad

Similar to Virtual memory (20)

PPT
Power Point Presentation on Virtual Memory.ppt
PPT
NOV11 virtual memory.ppt
PPT
NOV11 virtual memory.ppt
PPT
virtual memory.ppt
PPT
Chapter 09 - Virtual Memory.ppt
PPT
Virtual memory
PDF
CSI-503 - 9. Virtual Memory
PDF
virtualmemory-111228090333-phpapp02 (1).pdf
PPT
Virtual memory ppts
PDF
An Efficient Virtual Memory using Graceful Code
PPTX
coafinal1-copy-150430204758-conversion-gate01.pptx
PDF
Virtual memory
PPTX
VIRTUAL 2.pptx
DOCX
virtual memory
PDF
The life and times
DOCX
virtual memory - Computer operating system
PPTX
Virtual memory
PPTX
Virtual Memory in Windows
PPT
memory management and Virtual Memory.ppt
PPT
Cache replacement policies,cache miss,writingtechniques
Power Point Presentation on Virtual Memory.ppt
NOV11 virtual memory.ppt
NOV11 virtual memory.ppt
virtual memory.ppt
Chapter 09 - Virtual Memory.ppt
Virtual memory
CSI-503 - 9. Virtual Memory
virtualmemory-111228090333-phpapp02 (1).pdf
Virtual memory ppts
An Efficient Virtual Memory using Graceful Code
coafinal1-copy-150430204758-conversion-gate01.pptx
Virtual memory
VIRTUAL 2.pptx
virtual memory
The life and times
virtual memory - Computer operating system
Virtual memory
Virtual Memory in Windows
memory management and Virtual Memory.ppt
Cache replacement policies,cache miss,writingtechniques
Ad

Recently uploaded (20)

DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
HVAC Specification 2024 according to central public works department
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
PDF
My India Quiz Book_20210205121199924.pdf
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PPTX
Module on health assessment of CHN. pptx
PDF
Hazard Identification & Risk Assessment .pdf
PDF
Complications of Minimal Access-Surgery.pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
advance database management system book.pdf
PDF
Empowerment Technology for Senior High School Guide
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
PDF
English Textual Question & Ans (12th Class).pdf
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Cambridge-Practice-Tests-for-IELTS-12.docx
HVAC Specification 2024 according to central public works department
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
What if we spent less time fighting change, and more time building what’s rig...
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
My India Quiz Book_20210205121199924.pdf
Uderstanding digital marketing and marketing stratergie for engaging the digi...
Module on health assessment of CHN. pptx
Hazard Identification & Risk Assessment .pdf
Complications of Minimal Access-Surgery.pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
advance database management system book.pdf
Empowerment Technology for Senior High School Guide
A powerpoint presentation on the Revised K-10 Science Shaping Paper
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Introduction to pro and eukaryotes and differences.pptx
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
English Textual Question & Ans (12th Class).pdf
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...

Virtual memory

  • 1. Virtual Memory Muhammad Umer Farooq 12024119-015@uog.edu.pk 0331-0331-666
  • 2. What is Virtual Memory 1 • The term virtual memory refers to something which appears to be present but actually it is not. • Virtual memory allows users to use more memory for a program than the real memory of a computer.
  • 3. History 2 • Virtual Memory was developed in approximately 1959 – 1962, at the University of Manchester for the Atlas Computer, completed in 1962. • In 1961, Burroughs released the B5000, the first commercial computer with virtual memory.
  • 4. Uses of Virtual Memory 3 • The virtual addresses are used rather than real addresses to store instructions and data. • It is temporary memory which is used along with ram of the system. • When the program is actually executed, the virtual addresses are converted into real memory addresses again.
  • 5. Address Space & Memory Space 4 • Virtual memory is the address used by the programmer and the set of such addresses is called address space. • The set of actual main memory locations in main memory is called the memory space.
  • 6. Why is it needed…? 5 • Before the development of the virtual memory technique, programmers have to manage directly two-level storage such as main memory or ram and secondary memory . • Without virtual memory, It is too much expensive to execute / manage the program as a whole. • Enlarge the address space, the set of addresses a program can utilize.
  • 7. Objectives… 6 • When a computer is executing many programs at the same time, Virtual memory make the computer to share memory efficiently. • Eliminate a restriction that a computer works in memory which is small and be limited. • When many programs are running at the same time, by distributing each suitable memory area to each program, VM protect the programs to interfere each other in each memory area.
  • 8. Paging… 7 • To facilitate copying virtual memory into real memory, the operating system divides virtual memory into pages, each of which contains a fixed number of addresses. • Each page is stored on a disk until it is needed. • When the page is needed, the operating system copies it from disk to main memory, translating the virtual addresses into real addresses.
  • 9. Paging……(cont’d) 8 • The operating system copies a certain number of pages from your storage device to main memory. • When a program needs a page that is not in maim memory, the operating system copies the required page into memory and copies another page back to the disk.
  • 10. Virtual Memory (Paging) 9 Page table Address Space Page table Address Space Physical Memory
  • 11. Page fault 10 • An interrupt to the software raised by the hardware when a program accesses a page that is not mapped in physical memory. • It occurs when a program accesses a memory location in its memory and the page corresponding to that memory is not loaded. • when a program accesses a memory location in its memory and the program does not have rights to access the page corresponding to that memory.
  • 12. Paging replacement algorithms 11 • OPT(MIN) : eliminate the page that be not expected to be used. • FIFO(first input/first output) : rather than choosing the victim page at random, the oldest page is the first to be removed. • LRU(Least Recently used) : move out the page that is the least rarely used. • LFU(Least Frequently used) : move out the page that is not used often in the past.
  • 13. Advantages… 12 • It has become so common because it provides a big benefit for users at a very low cost. • program is no longer constrained by the amount of physical memory. • user would be able to write programs for an extremely large virtual address space. • more programs could be run at the same time • increase CPU utilization and throughput. • less I/O would be needed to load or swap each user program
  • 14. Disadvantages 13 • Applications run slower if the system is using virtual memory. • It take more time to switch between applications. • Less hard drive space for your use. • It reduces system stability.