Operating System
Topic:- Virtual Memory Management
Objectives:-
•To describe the benefits of a virtual memory system.
•To explain the concept of-
•Demand paging.
•Page replacement.
•Allocation of page frames.
•Thrashing.
www.corecode.in
Virtual Memory involves the separation of logical memory
as perceived by users from physical memory. This separation
allows an extremely large virtual memory to be provided for
programmers when only a smaller physical memory is available.
Virtual memory makes the task of programming much easier,
because programmer no longer needs to worry about the amount
of physical memory available, they can concentrate instead on
the problem to be programmed.
In addition to separating physical memory from logical memory,
virtual memory allows files and memory to be shared by two or
more processes through page sharing.
www.corecode.in
Demand Paging
•To load a program from disk into memory we can either load the entire
program in physical memory at execution time, or load the part of
program which is needed to perform the task.
•However, when a program is entirely loaded into memory and we may
initially not needed the whole code to be executed then it will be waste
of memory use.
•With demand paging the page is loaded into physical memory only
when they are needed.
•A demand-paging system is similar to a paging system with swapping
where processes resides in secondary memory and when we want to
execute a process, we swap in into memory.
www.corecode.in
Page Replacement
Page replacement do following approach to overcome with page fault-
•It no frame is free, find one that is not currently being used and free it.
•Free a frame by writing its contents to swap space and changing the page table
along with other table to indicate that the page is no longer in the memory.
•We can now use the freed frame to hold the page for which the process faulted.
Page replacement
www.corecode.in
Allocation of page frames
The number of frames allocated to each process decreases, the page-
fault rate increases, slowing process execution. Better it is to be
remember, when page fault occurs before an executing instruction is
complete, the instruction must be restarted. Consequently, we must have
enough frames to hold all the different pages that any single instruction
can reference.
www.corecode.in
Thrashing
Thrashing is computer activity that makes little or no progress, usually
because memory or other resources have become exhausted or too
limited to perform needed operations. When this happens, a pattern
typically develops in which a request is made of the operating system by
a process or program, the operating system tries to find resources by
taking them from some other process, which in turn makes new requests
that can't be satisfied. In a virtual storage system (an operating system
that manages its logical storage or memory in units called pages),
thrashing is a condition in which excessive paging operations are taking
place.
A system that is thrashing can be perceived as either a very slow system
or one that has come to a halt.
www.corecode.in

More Related Content

PPTX
Operating system memory management
PPT
17. Recovery System in DBMS
PPT
Paging.ppt
PPT
Contiguous Memory Allocation.ppt
PPTX
Distributed file system
PPTX
Page replacement algorithms
PPTX
Demand paging
Operating system memory management
17. Recovery System in DBMS
Paging.ppt
Contiguous Memory Allocation.ppt
Distributed file system
Page replacement algorithms
Demand paging

What's hot (20)

PPS
Virtual memory
PPTX
database recovery techniques
PPTX
Query processing and optimization (updated)
PPTX
Memory Management in OS
PPTX
Database , 8 Query Optimization
PPTX
Lec 7 query processing
PPTX
Directory structure
PPT
Deadlock management
PDF
Deadlock Avoidance - OS
PPTX
Lecture 14 run time environment
PPT
Protection and Security in Operating Systems
PPTX
Fragmentaton
PPTX
Distributed DBMS - Unit 6 - Query Processing
PDF
Virtual memory
PPTX
Demand paging
PPTX
Concurrency Control in Distributed Database.
PPTX
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
PPTX
File allocation methods (1)
PPT
Chapter 10 - File System Interface
PDF
Target language in compiler design
Virtual memory
database recovery techniques
Query processing and optimization (updated)
Memory Management in OS
Database , 8 Query Optimization
Lec 7 query processing
Directory structure
Deadlock management
Deadlock Avoidance - OS
Lecture 14 run time environment
Protection and Security in Operating Systems
Fragmentaton
Distributed DBMS - Unit 6 - Query Processing
Virtual memory
Demand paging
Concurrency Control in Distributed Database.
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
File allocation methods (1)
Chapter 10 - File System Interface
Target language in compiler design
Ad

Viewers also liked (20)

PDF
9 virtual memory management
PPT
Virtual memory
PDF
Virtual Memory and Paging
PPTX
Operating Systems: Virtual Memory
PPTX
VIRTUAL MEMORY
PPTX
Operating System-Memory Management
PDF
Virtual Memory
PPTX
Software quality
PPTX
Virtual Memory Management
PDF
Operating Systems - Virtual Memory
PPT
Chapter 9 - Virtual Memory
PPT
Linux Memory Management
PPTX
Memory Management | Computer Science
PPT
Memory Management
DOC
Virtual Memory vs Cache Memory
PPTX
Operating System (Scheduling, Input and Output Management, Memory Management,...
PDF
Virtual Memory - Part1
PPTX
Memory management
PDF
8 memory management strategies
9 virtual memory management
Virtual memory
Virtual Memory and Paging
Operating Systems: Virtual Memory
VIRTUAL MEMORY
Operating System-Memory Management
Virtual Memory
Software quality
Virtual Memory Management
Operating Systems - Virtual Memory
Chapter 9 - Virtual Memory
Linux Memory Management
Memory Management | Computer Science
Memory Management
Virtual Memory vs Cache Memory
Operating System (Scheduling, Input and Output Management, Memory Management,...
Virtual Memory - Part1
Memory management
8 memory management strategies
Ad

Similar to Virtual memory managment (20)

PPTX
operating system virtual memory and logical memory
PPT
Chapter 8 - Virtual memory - William stallings.ppt
PPT
Virtual memory Chapter 9 simple and easy
PPT
08 virtual memory
PPTX
Virtual Memory Management
PPTX
os memory management unit iii memory.pptx
PPT
virtual memory
PPT
Virtual Memory sjkdhikejv vsdkjnksnv vkjhfvk
PDF
Virtual Memory.pdf
PPTX
Computer architecture virtual memory
PPT
Unit 2chapter 2 memory mgmt complete
PPTX
coafinal1-copy-150430204758-conversion-gate01.pptx
PPT
Mca ii os u-4 memory management
PPT
PPT
Ch10 OS
 
PPTX
Lecture 8- Virtual Memory Final.pptx
PPTX
Memory virtualization
PPT
memory management and Virtual Memory.ppt
PPT
Cache replacement policies,cache miss,writingtechniques
operating system virtual memory and logical memory
Chapter 8 - Virtual memory - William stallings.ppt
Virtual memory Chapter 9 simple and easy
08 virtual memory
Virtual Memory Management
os memory management unit iii memory.pptx
virtual memory
Virtual Memory sjkdhikejv vsdkjnksnv vkjhfvk
Virtual Memory.pdf
Computer architecture virtual memory
Unit 2chapter 2 memory mgmt complete
coafinal1-copy-150430204758-conversion-gate01.pptx
Mca ii os u-4 memory management
Ch10 OS
 
Lecture 8- Virtual Memory Final.pptx
Memory virtualization
memory management and Virtual Memory.ppt
Cache replacement policies,cache miss,writingtechniques

Recently uploaded (20)

PPT
Overviiew on Intellectual property right
PDF
Introduction to c language from lecture slides
PDF
Slides World Game (s) Great Redesign Eco Economic Epochs.pdf
PDF
Altius execution marketplace concept.pdf
PPTX
Slides World Game (s) Great Redesign Eco Economic Epochs.pptx
PPTX
Report in SIP_Distance_Learning_Technology_Impact.pptx
PDF
Revolutionizing recommendations a survey: a comprehensive exploration of mode...
PPTX
AQUEEL MUSHTAQUE FAKIH COMPUTER CENTER .
PPTX
From Curiosity to ROI — Cost-Benefit Analysis of Agentic Automation [3/6]
PDF
1_Keynote_Breaking Barriers_한계를 넘어서_Charith Mendis.pdf
PDF
FASHION-DRIVEN TEXTILES AS A CRYSTAL OF A NEW STREAM FOR STAKEHOLDER CAPITALI...
PDF
Intravenous drug administration application for pediatric patients via augmen...
PDF
TrustArc Webinar - Data Minimization in Practice_ Reducing Risk, Enhancing Co...
PDF
The Basics of Artificial Intelligence - Understanding the Key Concepts and Te...
PPTX
Rise of the Digital Control Grid Zeee Media and Hope and Tivon FTWProject.com
PDF
ment.tech-How to Develop an AI Agent Healthcare App like Sully AI (1).pdf
PPTX
Blending method and technology for hydrogen.pptx
PDF
【AI論文解説】高速・高品質な生成を実現するFlow Map Models(Part 1~3)
PPTX
Presentation - Principles of Instructional Design.pptx
PPTX
Introduction-to-Artificial-Intelligence (1).pptx
Overviiew on Intellectual property right
Introduction to c language from lecture slides
Slides World Game (s) Great Redesign Eco Economic Epochs.pdf
Altius execution marketplace concept.pdf
Slides World Game (s) Great Redesign Eco Economic Epochs.pptx
Report in SIP_Distance_Learning_Technology_Impact.pptx
Revolutionizing recommendations a survey: a comprehensive exploration of mode...
AQUEEL MUSHTAQUE FAKIH COMPUTER CENTER .
From Curiosity to ROI — Cost-Benefit Analysis of Agentic Automation [3/6]
1_Keynote_Breaking Barriers_한계를 넘어서_Charith Mendis.pdf
FASHION-DRIVEN TEXTILES AS A CRYSTAL OF A NEW STREAM FOR STAKEHOLDER CAPITALI...
Intravenous drug administration application for pediatric patients via augmen...
TrustArc Webinar - Data Minimization in Practice_ Reducing Risk, Enhancing Co...
The Basics of Artificial Intelligence - Understanding the Key Concepts and Te...
Rise of the Digital Control Grid Zeee Media and Hope and Tivon FTWProject.com
ment.tech-How to Develop an AI Agent Healthcare App like Sully AI (1).pdf
Blending method and technology for hydrogen.pptx
【AI論文解説】高速・高品質な生成を実現するFlow Map Models(Part 1~3)
Presentation - Principles of Instructional Design.pptx
Introduction-to-Artificial-Intelligence (1).pptx

Virtual memory managment

  • 2. Objectives:- •To describe the benefits of a virtual memory system. •To explain the concept of- •Demand paging. •Page replacement. •Allocation of page frames. •Thrashing. www.corecode.in
  • 3. Virtual Memory involves the separation of logical memory as perceived by users from physical memory. This separation allows an extremely large virtual memory to be provided for programmers when only a smaller physical memory is available. Virtual memory makes the task of programming much easier, because programmer no longer needs to worry about the amount of physical memory available, they can concentrate instead on the problem to be programmed. In addition to separating physical memory from logical memory, virtual memory allows files and memory to be shared by two or more processes through page sharing. www.corecode.in
  • 4. Demand Paging •To load a program from disk into memory we can either load the entire program in physical memory at execution time, or load the part of program which is needed to perform the task. •However, when a program is entirely loaded into memory and we may initially not needed the whole code to be executed then it will be waste of memory use. •With demand paging the page is loaded into physical memory only when they are needed. •A demand-paging system is similar to a paging system with swapping where processes resides in secondary memory and when we want to execute a process, we swap in into memory. www.corecode.in
  • 5. Page Replacement Page replacement do following approach to overcome with page fault- •It no frame is free, find one that is not currently being used and free it. •Free a frame by writing its contents to swap space and changing the page table along with other table to indicate that the page is no longer in the memory. •We can now use the freed frame to hold the page for which the process faulted. Page replacement www.corecode.in
  • 6. Allocation of page frames The number of frames allocated to each process decreases, the page- fault rate increases, slowing process execution. Better it is to be remember, when page fault occurs before an executing instruction is complete, the instruction must be restarted. Consequently, we must have enough frames to hold all the different pages that any single instruction can reference. www.corecode.in
  • 7. Thrashing Thrashing is computer activity that makes little or no progress, usually because memory or other resources have become exhausted or too limited to perform needed operations. When this happens, a pattern typically develops in which a request is made of the operating system by a process or program, the operating system tries to find resources by taking them from some other process, which in turn makes new requests that can't be satisfied. In a virtual storage system (an operating system that manages its logical storage or memory in units called pages), thrashing is a condition in which excessive paging operations are taking place. A system that is thrashing can be perceived as either a very slow system or one that has come to a halt. www.corecode.in