SlideShare a Scribd company logo
Virtual Memory in Windows
Operating System
Contents
• Virtual Memory
• Basic concepts
• Page Table
• Page replacement algorithms
• Advantages
• Disadvantages
Virtual Memory
• A technique using main memory as a “cache”
for secondary storage (disk).
• He virtual memory technique allows users to
use more memory for a program than the real
memory of a computer.
Virtual Memoryvirtualpages
physicalpages
Basic Concepts
• Address space(Logical & Physical)
• Pages
• Frames
• Mapping
Pages
• Continuous range of addresses
• Logical concept
• Equal size
• Present in any order
Frames
• Counterpart of pages
• Physical concept
• Reality
• Equal size
Mapping
• Mapping between pages and frames(CPU
generates page addresses and page addresses
are converted in frame addresses called
mapping.)
• Heart of Virtual Memory
• MMU performs mapping
Mapping
Example
• Lets suppose
• A program having 8 statements
• Processor divides them in to 8 pages
• 1 statement per page
• These pages can be present any where
• Not necessary in sequence
Example
Address Generation
• After dividing the program into pages
• Processor generates logical address
• Logical address is received by MMU
• Conversion is done to physical address
• Incase if page is not present in the memory
• Page fault occur
Address Generation
Page Table
• The operating system (OS) maps the virtual to any
physical page (associative placement of pages).
• A page table stored in memory, indexed by the
virtual page number, contains the virtual to physical
address translations.
• An entry contains the physical page number for that
virtual page if the page is currently in memory.
Page Table(cont…)
Each process
has such
register.
OS algorithm
determines the
physical page
number.
Page Replacement Algorithms
1) FIFO (first in first out)
2) LRU (Least Recently used)
3) OPT (Optimal)
1) FIFO:-
• The FIFO algorithm select the page for
replacement that has been in memory the
longest time
•
2) LRU:-
• The least recently used page replacement algorithm keeps
track page uses over a short period of time.
• The LRU algorithm can be implemented by associating a
counter with every page that is n main memory.
3) OPT:-
• The optimal policy selects that page for replacement for
which the time to the next reference is longest.
• This algorithm result is fewest number of page faults.
Advantage :-
• Allows processes whose aggregate memory
requirement is greater than the amount of
physical memory, as infrequently used pages
can reside on the disk.
• Virtual memory allows speed gain when only
a particular segment of the program is
required for the execution of the program.
• This concept is very helpful in implementing
multiprogramming environment.
Disadvantage:-
• Applications run slower if the system is using
virtual memory.
• It Takes more time to switch between
applications.
• Less hard drive space for your use.
• It reduces system stability.
Virtual Memory in Windows

More Related Content

PPT
Virtual memory
Mohammad Sadiq
 
PPTX
Page replacement algorithms
sangrampatil81
 
PPTX
Presentation on Virtual Memory concepts in computer
Oshin Kandpal
 
PDF
The life and times
Abeer Naskar
 
PDF
Virtual memory
Muhammad Asad Chattha
 
PPT
Chapter 9 - Virtual Memory
Wayne Jones Jnr
 
PPT
Virtual memory
aaina_katyal
 
PPTX
Virtual Memory
Archith777
 
Virtual memory
Mohammad Sadiq
 
Page replacement algorithms
sangrampatil81
 
Presentation on Virtual Memory concepts in computer
Oshin Kandpal
 
The life and times
Abeer Naskar
 
Virtual memory
Muhammad Asad Chattha
 
Chapter 9 - Virtual Memory
Wayne Jones Jnr
 
Virtual memory
aaina_katyal
 
Virtual Memory
Archith777
 

What's hot (18)

PPT
Virtual memory - Demand Paging
jeyaperumal
 
PPT
41 page replacement fifo
myrajendra
 
PPTX
141060753008 3715302
ITM Universe - Vadodara
 
PPS
Virtual memory
Anuj Modi
 
PPTX
Page replacement alg
V.V.Vanniapermal College for Women
 
PDF
Virtual memory
Dr. Shashank Shetty
 
PPTX
Memory management
soumyaharitha
 
PPT
Virtual memory
aaina_katyal
 
PPT
Thrashing allocation frames.43
myrajendra
 
ODP
Transparent Hugepages in RHEL 6
Raghu Udiyar
 
PPTX
FIFO, LRU, OPTIMAL Page Replacement Algorithm
ArijitRoy118
 
PPT
Virtual memory ppts
manpreetgrewal
 
PDF
Virtual Memory - Part1
Amir Payberah
 
PPTX
Operating system 35 paging
Vaibhav Khanna
 
PDF
Hugepage
Buland Singh
 
PPT
Linux Memory
Vitaly Nahshunov
 
PDF
virtual memory management in multi processor mach os
AJAY KHARAT
 
PPTX
Windows memory management
Tech_MX
 
Virtual memory - Demand Paging
jeyaperumal
 
41 page replacement fifo
myrajendra
 
141060753008 3715302
ITM Universe - Vadodara
 
Virtual memory
Anuj Modi
 
Virtual memory
Dr. Shashank Shetty
 
Memory management
soumyaharitha
 
Virtual memory
aaina_katyal
 
Thrashing allocation frames.43
myrajendra
 
Transparent Hugepages in RHEL 6
Raghu Udiyar
 
FIFO, LRU, OPTIMAL Page Replacement Algorithm
ArijitRoy118
 
Virtual memory ppts
manpreetgrewal
 
Virtual Memory - Part1
Amir Payberah
 
Operating system 35 paging
Vaibhav Khanna
 
Hugepage
Buland Singh
 
Linux Memory
Vitaly Nahshunov
 
virtual memory management in multi processor mach os
AJAY KHARAT
 
Windows memory management
Tech_MX
 
Ad

Similar to Virtual Memory in Windows (20)

PPTX
Demand paging
Trinity Dwarka
 
PDF
Virtual Memory.pdf
SujanTimalsina5
 
PPTX
Lecture 8- Virtual Memory Final.pptx
Amanuelmergia
 
PPTX
Computer architecture virtual memory
Mazin Alwaaly
 
PPTX
operating system virtual memory and logical memory
salihan090918
 
PDF
CSI-503 - 9. Virtual Memory
ghayour abbas
 
PPTX
Virtual memory, operating system pptx.pptx
raxtarsahil77575
 
PPT
08 operating system support
Sher Shah Merkhel
 
PPTX
OS Presentation 2023.pptx
ShayanAli68
 
PPTX
Virtual Memory Managementddddddddffffffffffffff.pptx
ananyachouhan70
 
PPT
Power Point Presentation on Virtual Memory.ppt
RahulRaj395610
 
PDF
Virtual Memory Management Part - I.pdf
Harika Pudugosula
 
PPT
Unit 2chapter 2 memory mgmt complete
Kalai Selvi
 
PPT
Memory Management-Muhammad Ahmad.ppt
AliyanAbbas1
 
PPTX
Abhaycavirtual memory and the pagehit.pptx
wemoji5816
 
PPT
Virtual memory
Muhammad Farooq
 
PPT
08 operating system support
Anwal Mirza
 
PPT
memory
Kishore Kumar
 
PPT
Computer memory management
Kumar
 
Demand paging
Trinity Dwarka
 
Virtual Memory.pdf
SujanTimalsina5
 
Lecture 8- Virtual Memory Final.pptx
Amanuelmergia
 
Computer architecture virtual memory
Mazin Alwaaly
 
operating system virtual memory and logical memory
salihan090918
 
CSI-503 - 9. Virtual Memory
ghayour abbas
 
Virtual memory, operating system pptx.pptx
raxtarsahil77575
 
08 operating system support
Sher Shah Merkhel
 
OS Presentation 2023.pptx
ShayanAli68
 
Virtual Memory Managementddddddddffffffffffffff.pptx
ananyachouhan70
 
Power Point Presentation on Virtual Memory.ppt
RahulRaj395610
 
Virtual Memory Management Part - I.pdf
Harika Pudugosula
 
Unit 2chapter 2 memory mgmt complete
Kalai Selvi
 
Memory Management-Muhammad Ahmad.ppt
AliyanAbbas1
 
Abhaycavirtual memory and the pagehit.pptx
wemoji5816
 
Virtual memory
Muhammad Farooq
 
08 operating system support
Anwal Mirza
 
Computer memory management
Kumar
 
Ad

Recently uploaded (20)

PDF
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
PDF
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
PDF
Sunset Boulevard Student Revision Booklet
jpinnuck
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PPTX
Autodock-for-Beginners by Rahul D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PPTX
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
DOCX
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
PPTX
PREVENTIVE PEDIATRIC. pptx
AneetaSharma15
 
PDF
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
PPTX
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTX
PPTs-The Rise of Empiresghhhhhhhh (1).pptx
academysrusti114
 
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
Sunset Boulevard Student Revision Booklet
jpinnuck
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
Autodock-for-Beginners by Rahul D Jawarkar.pptx
Rahul Jawarkar
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
PREVENTIVE PEDIATRIC. pptx
AneetaSharma15
 
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTs-The Rise of Empiresghhhhhhhh (1).pptx
academysrusti114
 

Virtual Memory in Windows

  • 1. Virtual Memory in Windows Operating System
  • 2. Contents • Virtual Memory • Basic concepts • Page Table • Page replacement algorithms • Advantages • Disadvantages
  • 3. Virtual Memory • A technique using main memory as a “cache” for secondary storage (disk). • He virtual memory technique allows users to use more memory for a program than the real memory of a computer.
  • 5. Basic Concepts • Address space(Logical & Physical) • Pages • Frames • Mapping
  • 6. Pages • Continuous range of addresses • Logical concept • Equal size • Present in any order
  • 7. Frames • Counterpart of pages • Physical concept • Reality • Equal size
  • 8. Mapping • Mapping between pages and frames(CPU generates page addresses and page addresses are converted in frame addresses called mapping.) • Heart of Virtual Memory • MMU performs mapping
  • 10. Example • Lets suppose • A program having 8 statements • Processor divides them in to 8 pages • 1 statement per page • These pages can be present any where • Not necessary in sequence
  • 12. Address Generation • After dividing the program into pages • Processor generates logical address • Logical address is received by MMU • Conversion is done to physical address • Incase if page is not present in the memory • Page fault occur
  • 14. Page Table • The operating system (OS) maps the virtual to any physical page (associative placement of pages). • A page table stored in memory, indexed by the virtual page number, contains the virtual to physical address translations. • An entry contains the physical page number for that virtual page if the page is currently in memory.
  • 15. Page Table(cont…) Each process has such register. OS algorithm determines the physical page number.
  • 16. Page Replacement Algorithms 1) FIFO (first in first out) 2) LRU (Least Recently used) 3) OPT (Optimal)
  • 17. 1) FIFO:- • The FIFO algorithm select the page for replacement that has been in memory the longest time •
  • 18. 2) LRU:- • The least recently used page replacement algorithm keeps track page uses over a short period of time. • The LRU algorithm can be implemented by associating a counter with every page that is n main memory.
  • 19. 3) OPT:- • The optimal policy selects that page for replacement for which the time to the next reference is longest. • This algorithm result is fewest number of page faults.
  • 20. Advantage :- • Allows processes whose aggregate memory requirement is greater than the amount of physical memory, as infrequently used pages can reside on the disk. • Virtual memory allows speed gain when only a particular segment of the program is required for the execution of the program. • This concept is very helpful in implementing multiprogramming environment.
  • 21. Disadvantage:- • Applications run slower if the system is using virtual memory. • It Takes more time to switch between applications. • Less hard drive space for your use. • It reduces system stability.