SlideShare a Scribd company logo
1 of 8
SOLAIMAN HOSSAIN TUHIN
ID : 173-15-1639
CSE IN DAFFODIL INTERNATIONAL UNIVERSITY
Topic : Virtual Memory
What is Virtual Memory?
-Virtual memory is a memory management capability of an operating system
Operating System. which uses hardware and software to allow a computer to
compensate for physical memory shortages, by temporarily transferring data
from random access memory (RAM) to disk storage.
2
Virtual Memory
 Background
 Demand Paging
 Page Replacement
 Allocation of Frames
 Trashing
 Demand Segmentation
3
Background
• Virtual Memory- separation of user logical memory from physical memory.
-Only part of the program needs to be in memory for execution.
-Logical address space can therefore be much larger than physical address
space.
-Need to allow pages to be swapped in and out.
• Virtual memory can be implemented via:
-Demand Paging
-Demand segmentation 4
Demand Paging
• Bring a page into memory only when it is needed.
-Less I/O needed
-Less memory needed
-Faster response
-More users
• Page is needed = reference to it
-invalid reference = abort
-not-in-memory= bring to memory 5
Page Replacement
• Prevent over-allocation of memory by modifying page-fault service
routine to include page replacement.
• Use modify bit to reduce overhead of page transfers-only modified pages
are written to disk.
• Page replacement completes separation between logical memory &
physical memory-large virtual memory can be provided on a smaller
physical memory.
6
Thrashing
• If a process does not have “enough” pages, the page-fault rate is very high. This leads to:
- low CPU utilization.
- operating system thinks that it needs to increase the degree of multiprogramming.
- another process added to the system.
• Thrashing = a process is busy swapping pages in and out.
Video Link:
https://drive.google.com/file/d/1VPyZpezqgXHFMGVu0qPpn4JFHlw6uFN7/view?usp=sharing
7
THANK YOU
8

More Related Content

Similar to Operating System

Lecture 8- Virtual Memory Final.pptx
Lecture 8- Virtual Memory Final.pptxLecture 8- Virtual Memory Final.pptx
Lecture 8- Virtual Memory Final.pptx
Amanuelmergia
 

Similar to Operating System (20)

Power Point Presentation on Virtual Memory.ppt
Power Point Presentation on Virtual Memory.pptPower Point Presentation on Virtual Memory.ppt
Power Point Presentation on Virtual Memory.ppt
 
OS Presentation 2023.pptx
OS Presentation 2023.pptxOS Presentation 2023.pptx
OS Presentation 2023.pptx
 
Abhaycavirtual memory and the pagehit.pptx
Abhaycavirtual memory and the pagehit.pptxAbhaycavirtual memory and the pagehit.pptx
Abhaycavirtual memory and the pagehit.pptx
 
Virtual Memory
Virtual MemoryVirtual Memory
Virtual Memory
 
Virtual memory managment
Virtual memory managmentVirtual memory managment
Virtual memory managment
 
The life and times
The life and timesThe life and times
The life and times
 
Virtual Memory
Virtual MemoryVirtual Memory
Virtual Memory
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
Virtual Memory
Virtual MemoryVirtual Memory
Virtual Memory
 
Lecture 8- Virtual Memory Final.pptx
Lecture 8- Virtual Memory Final.pptxLecture 8- Virtual Memory Final.pptx
Lecture 8- Virtual Memory Final.pptx
 
Demand paging
Demand pagingDemand paging
Demand paging
 
Virtual Memory Management Part - I.pdf
Virtual Memory Management Part - I.pdfVirtual Memory Management Part - I.pdf
Virtual Memory Management Part - I.pdf
 
Introduction to memory management
Introduction to memory managementIntroduction to memory management
Introduction to memory management
 
Virtual Memory
Virtual MemoryVirtual Memory
Virtual Memory
 
Computer architecture virtual memory
Computer architecture virtual memoryComputer architecture virtual memory
Computer architecture virtual memory
 
Os unit 3
Os unit 3Os unit 3
Os unit 3
 
Virtual Memory.pdf
Virtual Memory.pdfVirtual Memory.pdf
Virtual Memory.pdf
 
CSI-503 - 9. Virtual Memory
CSI-503 - 9. Virtual MemoryCSI-503 - 9. Virtual Memory
CSI-503 - 9. Virtual Memory
 
Cache memory and virtual memory
Cache memory and virtual memoryCache memory and virtual memory
Cache memory and virtual memory
 
Memory virtualization
Memory virtualizationMemory virtualization
Memory virtualization
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Recently uploaded (20)

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governance
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 

Operating System

  • 1. SOLAIMAN HOSSAIN TUHIN ID : 173-15-1639 CSE IN DAFFODIL INTERNATIONAL UNIVERSITY
  • 2. Topic : Virtual Memory What is Virtual Memory? -Virtual memory is a memory management capability of an operating system Operating System. which uses hardware and software to allow a computer to compensate for physical memory shortages, by temporarily transferring data from random access memory (RAM) to disk storage. 2
  • 3. Virtual Memory  Background  Demand Paging  Page Replacement  Allocation of Frames  Trashing  Demand Segmentation 3
  • 4. Background • Virtual Memory- separation of user logical memory from physical memory. -Only part of the program needs to be in memory for execution. -Logical address space can therefore be much larger than physical address space. -Need to allow pages to be swapped in and out. • Virtual memory can be implemented via: -Demand Paging -Demand segmentation 4
  • 5. Demand Paging • Bring a page into memory only when it is needed. -Less I/O needed -Less memory needed -Faster response -More users • Page is needed = reference to it -invalid reference = abort -not-in-memory= bring to memory 5
  • 6. Page Replacement • Prevent over-allocation of memory by modifying page-fault service routine to include page replacement. • Use modify bit to reduce overhead of page transfers-only modified pages are written to disk. • Page replacement completes separation between logical memory & physical memory-large virtual memory can be provided on a smaller physical memory. 6
  • 7. Thrashing • If a process does not have “enough” pages, the page-fault rate is very high. This leads to: - low CPU utilization. - operating system thinks that it needs to increase the degree of multiprogramming. - another process added to the system. • Thrashing = a process is busy swapping pages in and out. Video Link: https://drive.google.com/file/d/1VPyZpezqgXHFMGVu0qPpn4JFHlw6uFN7/view?usp=sharing 7