å°Šę•¬ēš„ å¾®äæ”걇ēŽ‡ļ¼š1円 ā‰ˆ 0.046166 元 ę”Æä»˜å®ę±‡ēŽ‡ļ¼š1円 ā‰ˆ 0.046257元 [退å‡ŗē™»å½•]
SlideShare a Scribd company logo
Memory Virtualization
Virtual Memory
ļµ Memory virtualization is seen as virtual
memory, or swap, on servers and
workstations.
ļµ It enhances performance by providing greater
memory capacity, without the expense of
adding main memory.
ļµ Instead, a portion of a disk drive serves as an
extension of main memory.
ļµ A physical address is the actual memory
address of physical memory.
ļµ Page faults occur when a logical address
requires that a page be brought in from disk.
Virtual Memory
ļµ Main memory and virtual memory are divided into equal sized pages.
ļµ The entire address space required by a process need not be in memory
at once. Some parts can be on disk, while others are in main memory.
ļµ Further, the pages allocated to a process do not need to be stored
contiguously-- either on disk or in memory.
ļµ In this way, only the needed pages are in memory at any time, the
unnecessary pages are in slower disk storage.
Importance of Virtual Memory
ļµ When the computer runs out of physical
memory it writes what it needs to remember
to the hard disk in a swap file as virtual
memory.
ļµ If a computer running windows requires more
memory or RAM, then it is installed in the
system to run a program , it uses a small
section of hard drive for this purpose.
Example
ļµ A 16 MB program can run in 4 MB space by carefully choosing which 4 MB
to keep in memory at each instance, with pieces of the program being
swapped between disk and memory as needed.
Demand Paged Virtual Memory
ļµ The fundamental approach in implementing virtual memory is paging.
ļµ 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.
ļµ To accomplish this, the virtual address is divided into two fields: A page
field, and an offset field.
ļµ The page field determines the page location of the address, and the offset
indicates the location of the address within the page.
ļµ The logical page number is translated into a physical page frame through a
lookup in the page table
ļµ Information concerning the location of each page, whether on disk or in memory,
is maintained in a data structure called a page table (shown below).
ļµ There is one page table for each active process.
Demand Paged Virtual Memory
Demand Paged Virtual Memory
ļµ When the pages are needed to
execute a particular program,
they are loaded.
ļµ Pages that are never accessed
are thus never loaded into the
memory.
ļµ This technique is known as
Demand paging.
Internal Fragmentation
ļµ Paging is subject to internal fragmentation because a
process may not need the entire range of addresses
contained within the page. Thus, there may be many
pages containing unused fragments of memory.
Demand Segmented Virtual Memory
ļµ Memory is divided into variable length segments.
ļµ Each segment has a base physical address and length.
ļµ Used when insufficient hardware is there to implement demand paging.
ļµ Segment descriptor contains a valid bit to indicate whether the segment
is currently in memory.
ļµ If segment is in main memory, access continues,
ļµ If not in memory, segment fault occurs.
Demand Segmented Virtual Memory
ļµ A segment is located through its entry in a segment table, which contains
the segmentā€™s memory location and a bounds limit that indicates its size.
ļµ After a page fault, the operating system searches for a location in memory
large enough to hold the segment that is retrieved from disk.
ļµ Each segment has a page table. This means that a memory address will
have three fields, one for the segment, another for the page, and a third for
the offset.
External Fragmentation
ļµ Both paging and segmentation can cause
fragmentation.
ļµ Segmentation is subject to external fragmentation,
which occurs when contiguous chunks of memory
become broken up as segments are allocated and
deallocated over time.
Thrashing
ļµ When the hard drive is being overworked by moving information between
the system memory and virtual memory excessively, thrashing is caused.
ļµ When the system doesnā€™t have enough memory, the system swap file is
not properly configured, or too much is running on the computer and it
has low system resources.
ļµ Thrashing is bad on a hard drive because of the amount of work the hard
drive has to do and if is left unfixed will likely cause an early failure of
the hard drive.
Advantages
ļµ More applications can run at once.
ļµ Larger applications can run with less real RAM without need to buy more
memory.
ļµ Allows speed gain when only a particular segment of the program is
required for the execution of the program.
ļµ This frees programmers from concern of memory limitations and helps
implementing multiprogramming environment.
Disadvantages
ļµ Applications may run slower.
ļµ It takes more time to switch between applications.
ļµ Less available hard drive space for the userā€™s use.
ļµ The possibility of Thrashing due to excessive Paging and Page faults
THANK YOU

More Related Content

What's hot

Memory management
Memory managementMemory management
Memory management
Muhammad Fayyaz
Ā 
Virtual memory ppt
Virtual memory pptVirtual memory ppt
Distributed dbms architectures
Distributed dbms architecturesDistributed dbms architectures
Distributed dbms architectures
Pooja Dixit
Ā 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]
Ravindra Raju Kolahalam
Ā 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
aaina_katyal
Ā 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)
Prakhar Maurya
Ā 
Demand paging
Demand pagingDemand paging
Demand paging
Trinity Dwarka
Ā 
Cloud Reference Model
Cloud Reference ModelCloud Reference Model
Cloud Reference Model
Dr. Ramkumar Lakshminarayanan
Ā 
Replication in Distributed Systems
Replication in Distributed SystemsReplication in Distributed Systems
Replication in Distributed Systems
Kavya Barnadhya Hazarika
Ā 
Case study of amazon EC2 by Akash Badone
Case study of amazon EC2 by Akash BadoneCase study of amazon EC2 by Akash Badone
Case study of amazon EC2 by Akash Badone
Akash Badone
Ā 
Register allocation and assignment
Register allocation and assignmentRegister allocation and assignment
Register allocation and assignment
Karthi Keyan
Ā 
Paging and segmentation
Paging and segmentationPaging and segmentation
Paging and segmentation
Piyush Rochwani
Ā 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
Kumar Pritam
Ā 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
Anuj Modi
Ā 
Distributed computing
Distributed computingDistributed computing
Distributed computing
shivli0769
Ā 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating Systems
Ritu Ranjan Shrivastwa
Ā 
Introdution and designing a learning system
Introdution and designing a learning systemIntrodution and designing a learning system
Introdution and designing a learning system
swapnac12
Ā 
Distributed DBMS - Unit 6 - Query Processing
Distributed DBMS - Unit 6 - Query ProcessingDistributed DBMS - Unit 6 - Query Processing
Distributed DBMS - Unit 6 - Query Processing
Gyanmanjari Institute Of Technology
Ā 
Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and Basics
SHIKHA GAUTAM
Ā 
Virtualization in cloud computing
Virtualization in cloud computingVirtualization in cloud computing
Virtualization in cloud computing
Mohammad Ilyas Malik
Ā 

What's hot (20)

Memory management
Memory managementMemory management
Memory management
Ā 
Virtual memory ppt
Virtual memory pptVirtual memory ppt
Virtual memory ppt
Ā 
Distributed dbms architectures
Distributed dbms architecturesDistributed dbms architectures
Distributed dbms architectures
Ā 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]
Ā 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
Ā 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)
Ā 
Demand paging
Demand pagingDemand paging
Demand paging
Ā 
Cloud Reference Model
Cloud Reference ModelCloud Reference Model
Cloud Reference Model
Ā 
Replication in Distributed Systems
Replication in Distributed SystemsReplication in Distributed Systems
Replication in Distributed Systems
Ā 
Case study of amazon EC2 by Akash Badone
Case study of amazon EC2 by Akash BadoneCase study of amazon EC2 by Akash Badone
Case study of amazon EC2 by Akash Badone
Ā 
Register allocation and assignment
Register allocation and assignmentRegister allocation and assignment
Register allocation and assignment
Ā 
Paging and segmentation
Paging and segmentationPaging and segmentation
Paging and segmentation
Ā 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
Ā 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
Ā 
Distributed computing
Distributed computingDistributed computing
Distributed computing
Ā 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating Systems
Ā 
Introdution and designing a learning system
Introdution and designing a learning systemIntrodution and designing a learning system
Introdution and designing a learning system
Ā 
Distributed DBMS - Unit 6 - Query Processing
Distributed DBMS - Unit 6 - Query ProcessingDistributed DBMS - Unit 6 - Query Processing
Distributed DBMS - Unit 6 - Query Processing
Ā 
Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and Basics
Ā 
Virtualization in cloud computing
Virtualization in cloud computingVirtualization in cloud computing
Virtualization in cloud computing
Ā 

Viewers also liked

4. Memory virtualization and management
4. Memory virtualization and management4. Memory virtualization and management
4. Memory virtualization and management
Hwanju Kim
Ā 
Memory Virtualization
Memory VirtualizationMemory Virtualization
Memory Virtualization
Tsuyoshi OZAWA
Ā 
Introduction to virtualization
Introduction to virtualizationIntroduction to virtualization
Introduction to virtualization
Sasikumar Thirumoorthy
Ā 
Storage Virtualization
Storage VirtualizationStorage Virtualization
Storage Virtualization
rjain51
Ā 
5. IO virtualization
5. IO virtualization5. IO virtualization
5. IO virtualization
Hwanju Kim
Ā 
Virtualization basics
Virtualization basics Virtualization basics
Virtualization basics
Chandrani Ray Chowdhury
Ā 
Virtualization
VirtualizationVirtualization
Virtualization
Srisailam Reddy Kanapuram
Ā 
Server Consolidation
Server ConsolidationServer Consolidation
Server Consolidation
Manuel Padilha
Ā 
Linux mouse
Linux mouseLinux mouse
Linux mouse
sean chen
Ā 
Swap Administration in linux platform
Swap Administration in linux platformSwap Administration in linux platform
Swap Administration in linux platform
ashutosh123gupta
Ā 
Memory ballooning
Memory ballooningMemory ballooning
Memory ballooning
opvizorvmwarehealthanalyzer
Ā 
tutorial presentation
tutorial presentationtutorial presentation
tutorial presentation
Ranvijay Singh
Ā 
Virtual Machine Migration & Hypervisors
Virtual Machine Migration & HypervisorsVirtual Machine Migration & Hypervisors
Virtual Machine Migration & Hypervisors
Arun Shukla
Ā 
No sql databases
No sql databasesNo sql databases
No sql databases
Vamshi Vangapally
Ā 
Windows 2000
Windows 2000Windows 2000
Windows 2000
Agnas Jasmine
Ā 
An Introduction to Soft Computing
An Introduction to Soft ComputingAn Introduction to Soft Computing
An Introduction to Soft Computing
Tameem Ahmad
Ā 
VMware Esx Short Presentation
VMware Esx Short PresentationVMware Esx Short Presentation
VMware Esx Short Presentation
Barcamp Cork
Ā 
Swap-space Management
Swap-space ManagementSwap-space Management
Swap-space Management
Agnas Jasmine
Ā 
Introduction to Virtualization
Introduction to VirtualizationIntroduction to Virtualization
Introduction to Virtualization
Rahul Hada
Ā 
virtualization and hypervisors
virtualization and hypervisorsvirtualization and hypervisors
virtualization and hypervisors
Gaurav Suri
Ā 

Viewers also liked (20)

4. Memory virtualization and management
4. Memory virtualization and management4. Memory virtualization and management
4. Memory virtualization and management
Ā 
Memory Virtualization
Memory VirtualizationMemory Virtualization
Memory Virtualization
Ā 
Introduction to virtualization
Introduction to virtualizationIntroduction to virtualization
Introduction to virtualization
Ā 
Storage Virtualization
Storage VirtualizationStorage Virtualization
Storage Virtualization
Ā 
5. IO virtualization
5. IO virtualization5. IO virtualization
5. IO virtualization
Ā 
Virtualization basics
Virtualization basics Virtualization basics
Virtualization basics
Ā 
Virtualization
VirtualizationVirtualization
Virtualization
Ā 
Server Consolidation
Server ConsolidationServer Consolidation
Server Consolidation
Ā 
Linux mouse
Linux mouseLinux mouse
Linux mouse
Ā 
Swap Administration in linux platform
Swap Administration in linux platformSwap Administration in linux platform
Swap Administration in linux platform
Ā 
Memory ballooning
Memory ballooningMemory ballooning
Memory ballooning
Ā 
tutorial presentation
tutorial presentationtutorial presentation
tutorial presentation
Ā 
Virtual Machine Migration & Hypervisors
Virtual Machine Migration & HypervisorsVirtual Machine Migration & Hypervisors
Virtual Machine Migration & Hypervisors
Ā 
No sql databases
No sql databasesNo sql databases
No sql databases
Ā 
Windows 2000
Windows 2000Windows 2000
Windows 2000
Ā 
An Introduction to Soft Computing
An Introduction to Soft ComputingAn Introduction to Soft Computing
An Introduction to Soft Computing
Ā 
VMware Esx Short Presentation
VMware Esx Short PresentationVMware Esx Short Presentation
VMware Esx Short Presentation
Ā 
Swap-space Management
Swap-space ManagementSwap-space Management
Swap-space Management
Ā 
Introduction to Virtualization
Introduction to VirtualizationIntroduction to Virtualization
Introduction to Virtualization
Ā 
virtualization and hypervisors
virtualization and hypervisorsvirtualization and hypervisors
virtualization and hypervisors
Ā 

Similar to Memory virtualization

Virtual Memory
Virtual MemoryVirtual Memory
Virtual Memory
Archith777
Ā 
virtual memory
virtual memoryvirtual memory
virtual memory
Abeer Naskar
Ā 
Operating System-Memory Management
Operating System-Memory ManagementOperating System-Memory Management
Operating System-Memory Management
Akmal Cikmat
Ā 
Abhaycavirtual memory and the pagehit.pptx
Abhaycavirtual memory and the pagehit.pptxAbhaycavirtual memory and the pagehit.pptx
Abhaycavirtual memory and the pagehit.pptx
wemoji5816
Ā 
Virtual Memory
Virtual MemoryVirtual Memory
Virtual Memory
ayrus ranos
Ā 
Paging +Algorithem+Segmentation+memory management
Paging +Algorithem+Segmentation+memory managementPaging +Algorithem+Segmentation+memory management
Paging +Algorithem+Segmentation+memory management
kazim Hussain
Ā 
Computer architecture virtual memory
Computer architecture virtual memoryComputer architecture virtual memory
Computer architecture virtual memory
Mazin Alwaaly
Ā 
Chapter 09 - Virtual Memory.ppt
Chapter 09 - Virtual Memory.pptChapter 09 - Virtual Memory.ppt
Chapter 09 - Virtual Memory.ppt
MonirJihad1
Ā 
NOV11 virtual memory.ppt
NOV11 virtual memory.pptNOV11 virtual memory.ppt
NOV11 virtual memory.ppt
AshokRachapalli1
Ā 
NOV11 virtual memory.ppt
NOV11 virtual memory.pptNOV11 virtual memory.ppt
NOV11 virtual memory.ppt
PratikBose10
Ā 
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
RahulRaj395610
Ā 
virtual memory.ppt
virtual memory.pptvirtual memory.ppt
virtual memory.ppt
suryansh85
Ā 
Os unit 2
Os unit 2Os unit 2
Os unit 2
Arnav Chowdhury
Ā 
CH09.pdf
CH09.pdfCH09.pdf
CH09.pdf
ImranKhan880955
Ā 
Mca ii os u-4 memory management
Mca  ii  os u-4 memory managementMca  ii  os u-4 memory management
Mca ii os u-4 memory management
Rai University
Ā 
virtual memory - Computer operating system
virtual memory - Computer operating systemvirtual memory - Computer operating system
virtual memory - Computer operating system
Electronics - Embedded System
Ā 
Virtual memory managment
Virtual memory managmentVirtual memory managment
Virtual memory managment
Santu Kumar
Ā 
CSI-503 - 9. Virtual Memory
CSI-503 - 9. Virtual MemoryCSI-503 - 9. Virtual Memory
CSI-503 - 9. Virtual Memory
ghayour abbas
Ā 
Chap8 Virtual Memory. 1997-2003.ppt
Chap8 Virtual Memory. 1997-2003.pptChap8 Virtual Memory. 1997-2003.ppt
Chap8 Virtual Memory. 1997-2003.ppt
Muteebulhassan
Ā 
Inverted page tables basic
Inverted page tables basicInverted page tables basic
Inverted page tables basic
Sanoj Kumar
Ā 

Similar to Memory virtualization (20)

Virtual Memory
Virtual MemoryVirtual Memory
Virtual Memory
Ā 
virtual memory
virtual memoryvirtual memory
virtual memory
Ā 
Operating System-Memory Management
Operating System-Memory ManagementOperating System-Memory Management
Operating System-Memory Management
Ā 
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
Ā 
Paging +Algorithem+Segmentation+memory management
Paging +Algorithem+Segmentation+memory managementPaging +Algorithem+Segmentation+memory management
Paging +Algorithem+Segmentation+memory management
Ā 
Computer architecture virtual memory
Computer architecture virtual memoryComputer architecture virtual memory
Computer architecture virtual memory
Ā 
Chapter 09 - Virtual Memory.ppt
Chapter 09 - Virtual Memory.pptChapter 09 - Virtual Memory.ppt
Chapter 09 - Virtual Memory.ppt
Ā 
NOV11 virtual memory.ppt
NOV11 virtual memory.pptNOV11 virtual memory.ppt
NOV11 virtual memory.ppt
Ā 
NOV11 virtual memory.ppt
NOV11 virtual memory.pptNOV11 virtual memory.ppt
NOV11 virtual memory.ppt
Ā 
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
Ā 
virtual memory.ppt
virtual memory.pptvirtual memory.ppt
virtual memory.ppt
Ā 
Os unit 2
Os unit 2Os unit 2
Os unit 2
Ā 
CH09.pdf
CH09.pdfCH09.pdf
CH09.pdf
Ā 
Mca ii os u-4 memory management
Mca  ii  os u-4 memory managementMca  ii  os u-4 memory management
Mca ii os u-4 memory management
Ā 
virtual memory - Computer operating system
virtual memory - Computer operating systemvirtual memory - Computer operating system
virtual memory - Computer operating system
Ā 
Virtual memory managment
Virtual memory managmentVirtual memory managment
Virtual memory managment
Ā 
CSI-503 - 9. Virtual Memory
CSI-503 - 9. Virtual MemoryCSI-503 - 9. Virtual Memory
CSI-503 - 9. Virtual Memory
Ā 
Chap8 Virtual Memory. 1997-2003.ppt
Chap8 Virtual Memory. 1997-2003.pptChap8 Virtual Memory. 1997-2003.ppt
Chap8 Virtual Memory. 1997-2003.ppt
Ā 
Inverted page tables basic
Inverted page tables basicInverted page tables basic
Inverted page tables basic
Ā 

More from Piyush Rochwani

Unit 2
Unit 2Unit 2
Unit 2
Piyush Rochwani
Ā 
Unit 3
Unit 3Unit 3
Unit 3
Piyush Rochwani
Ā 
Biometrics based key generation
Biometrics based key generationBiometrics based key generation
Biometrics based key generation
Piyush Rochwani
Ā 
Serial transmission
Serial transmissionSerial transmission
Serial transmission
Piyush Rochwani
Ā 
Sequential and combinational alu
Sequential and combinational alu Sequential and combinational alu
Sequential and combinational alu
Piyush Rochwani
Ā 
Risc
RiscRisc
Raid
Raid Raid
Pipelining and co processor.
Pipelining and co processor.Pipelining and co processor.
Pipelining and co processor.
Piyush Rochwani
Ā 
8086 Microprocessor
8086 Microprocessor8086 Microprocessor
8086 Microprocessor
Piyush Rochwani
Ā 
Dma
DmaDma
Control unit
Control unitControl unit
Control unit
Piyush Rochwani
Ā 
Memory types
Memory typesMemory types
Memory types
Piyush Rochwani
Ā 
Solid state solid state drives
Solid state solid state drivesSolid state solid state drives
Solid state solid state drives
Piyush Rochwani
Ā 
Coa INTERUPT
Coa INTERUPTCoa INTERUPT
Coa INTERUPT
Piyush Rochwani
Ā 
Cisc(a022& a023)
Cisc(a022& a023)Cisc(a022& a023)
Cisc(a022& a023)
Piyush Rochwani
Ā 
Boothā€™s algorithm.(a014& a015)
Boothā€™s algorithm.(a014& a015)Boothā€™s algorithm.(a014& a015)
Boothā€™s algorithm.(a014& a015)
Piyush Rochwani
Ā 
06 floating point
06 floating point06 floating point
06 floating point
Piyush Rochwani
Ā 
05 multiply divide
05 multiply divide05 multiply divide
05 multiply divide
Piyush Rochwani
Ā 
Air pollution in mumbai
Air pollution in mumbaiAir pollution in mumbai
Air pollution in mumbai
Piyush Rochwani
Ā 
Android os
Android osAndroid os
Android os
Piyush Rochwani
Ā 

More from Piyush Rochwani (20)

Unit 2
Unit 2Unit 2
Unit 2
Ā 
Unit 3
Unit 3Unit 3
Unit 3
Ā 
Biometrics based key generation
Biometrics based key generationBiometrics based key generation
Biometrics based key generation
Ā 
Serial transmission
Serial transmissionSerial transmission
Serial transmission
Ā 
Sequential and combinational alu
Sequential and combinational alu Sequential and combinational alu
Sequential and combinational alu
Ā 
Risc
RiscRisc
Risc
Ā 
Raid
Raid Raid
Raid
Ā 
Pipelining and co processor.
Pipelining and co processor.Pipelining and co processor.
Pipelining and co processor.
Ā 
8086 Microprocessor
8086 Microprocessor8086 Microprocessor
8086 Microprocessor
Ā 
Dma
DmaDma
Dma
Ā 
Control unit
Control unitControl unit
Control unit
Ā 
Memory types
Memory typesMemory types
Memory types
Ā 
Solid state solid state drives
Solid state solid state drivesSolid state solid state drives
Solid state solid state drives
Ā 
Coa INTERUPT
Coa INTERUPTCoa INTERUPT
Coa INTERUPT
Ā 
Cisc(a022& a023)
Cisc(a022& a023)Cisc(a022& a023)
Cisc(a022& a023)
Ā 
Boothā€™s algorithm.(a014& a015)
Boothā€™s algorithm.(a014& a015)Boothā€™s algorithm.(a014& a015)
Boothā€™s algorithm.(a014& a015)
Ā 
06 floating point
06 floating point06 floating point
06 floating point
Ā 
05 multiply divide
05 multiply divide05 multiply divide
05 multiply divide
Ā 
Air pollution in mumbai
Air pollution in mumbaiAir pollution in mumbai
Air pollution in mumbai
Ā 
Android os
Android osAndroid os
Android os
Ā 

Recently uploaded

Opportunity scholarships and the schools that receive them
Opportunity scholarships and the schools that receive themOpportunity scholarships and the schools that receive them
Opportunity scholarships and the schools that receive them
EducationNC
Ā 
How to Create User Notification in Odoo 17
How to Create User Notification in Odoo 17How to Create User Notification in Odoo 17
How to Create User Notification in Odoo 17
Celine George
Ā 
Cross-Cultural Leadership and Communication
Cross-Cultural Leadership and CommunicationCross-Cultural Leadership and Communication
Cross-Cultural Leadership and Communication
MattVassar1
Ā 
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
Kalna College
Ā 
Brand Guideline of Bashundhara A4 Paper - 2024
Brand Guideline of Bashundhara A4 Paper - 2024Brand Guideline of Bashundhara A4 Paper - 2024
Brand Guideline of Bashundhara A4 Paper - 2024
khabri85
Ā 
How to Create a Stage or a Pipeline in Odoo 17 CRM
How to Create a Stage or a Pipeline in Odoo 17 CRMHow to Create a Stage or a Pipeline in Odoo 17 CRM
How to Create a Stage or a Pipeline in Odoo 17 CRM
Celine George
Ā 
Observational Learning
Observational Learning Observational Learning
Observational Learning
sanamushtaq922
Ā 
Diversity Quiz Finals by Quiz Club, IIT Kanpur
Diversity Quiz Finals by Quiz Club, IIT KanpurDiversity Quiz Finals by Quiz Club, IIT Kanpur
Diversity Quiz Finals by Quiz Club, IIT Kanpur
Quiz Club IIT Kanpur
Ā 
The basics of sentences session 8pptx.pptx
The basics of sentences session 8pptx.pptxThe basics of sentences session 8pptx.pptx
The basics of sentences session 8pptx.pptx
heathfieldcps1
Ā 
220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology
Kalna College
Ā 
Erasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES CroatiaErasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES Croatia
whatchangedhowreflec
Ā 
pol sci Election and Representation Class 11 Notes.pdf
pol sci Election and Representation Class 11 Notes.pdfpol sci Election and Representation Class 11 Notes.pdf
pol sci Election and Representation Class 11 Notes.pdf
BiplabHalder13
Ā 
Keynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse CityKeynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse City
PJ Caposey
Ā 
The Rise of the Digital Telecommunication Marketplace.pptx
The Rise of the Digital Telecommunication Marketplace.pptxThe Rise of the Digital Telecommunication Marketplace.pptx
The Rise of the Digital Telecommunication Marketplace.pptx
PriyaKumari928991
Ā 
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT KanpurDiversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Quiz Club IIT Kanpur
Ā 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
TechSoup
Ā 
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
biruktesfaye27
Ā 
Creating Images and Videos through AI.pptx
Creating Images and Videos through AI.pptxCreating Images and Videos through AI.pptx
Creating Images and Videos through AI.pptx
Forum of Blended Learning
Ā 
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptxContiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Kalna College
Ā 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
MJDuyan
Ā 

Recently uploaded (20)

Opportunity scholarships and the schools that receive them
Opportunity scholarships and the schools that receive themOpportunity scholarships and the schools that receive them
Opportunity scholarships and the schools that receive them
Ā 
How to Create User Notification in Odoo 17
How to Create User Notification in Odoo 17How to Create User Notification in Odoo 17
How to Create User Notification in Odoo 17
Ā 
Cross-Cultural Leadership and Communication
Cross-Cultural Leadership and CommunicationCross-Cultural Leadership and Communication
Cross-Cultural Leadership and Communication
Ā 
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
Ā 
Brand Guideline of Bashundhara A4 Paper - 2024
Brand Guideline of Bashundhara A4 Paper - 2024Brand Guideline of Bashundhara A4 Paper - 2024
Brand Guideline of Bashundhara A4 Paper - 2024
Ā 
How to Create a Stage or a Pipeline in Odoo 17 CRM
How to Create a Stage or a Pipeline in Odoo 17 CRMHow to Create a Stage or a Pipeline in Odoo 17 CRM
How to Create a Stage or a Pipeline in Odoo 17 CRM
Ā 
Observational Learning
Observational Learning Observational Learning
Observational Learning
Ā 
Diversity Quiz Finals by Quiz Club, IIT Kanpur
Diversity Quiz Finals by Quiz Club, IIT KanpurDiversity Quiz Finals by Quiz Club, IIT Kanpur
Diversity Quiz Finals by Quiz Club, IIT Kanpur
Ā 
The basics of sentences session 8pptx.pptx
The basics of sentences session 8pptx.pptxThe basics of sentences session 8pptx.pptx
The basics of sentences session 8pptx.pptx
Ā 
220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology
Ā 
Erasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES CroatiaErasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES Croatia
Ā 
pol sci Election and Representation Class 11 Notes.pdf
pol sci Election and Representation Class 11 Notes.pdfpol sci Election and Representation Class 11 Notes.pdf
pol sci Election and Representation Class 11 Notes.pdf
Ā 
Keynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse CityKeynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse City
Ā 
The Rise of the Digital Telecommunication Marketplace.pptx
The Rise of the Digital Telecommunication Marketplace.pptxThe Rise of the Digital Telecommunication Marketplace.pptx
The Rise of the Digital Telecommunication Marketplace.pptx
Ā 
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT KanpurDiversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Ā 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
Ā 
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ā 
Creating Images and Videos through AI.pptx
Creating Images and Videos through AI.pptxCreating Images and Videos through AI.pptx
Creating Images and Videos through AI.pptx
Ā 
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptxContiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Ā 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
Ā 

Memory virtualization

  • 2. Virtual Memory ļµ Memory virtualization is seen as virtual memory, or swap, on servers and workstations. ļµ It enhances performance by providing greater memory capacity, without the expense of adding main memory. ļµ Instead, a portion of a disk drive serves as an extension of main memory. ļµ A physical address is the actual memory address of physical memory. ļµ Page faults occur when a logical address requires that a page be brought in from disk.
  • 3. Virtual Memory ļµ Main memory and virtual memory are divided into equal sized pages. ļµ The entire address space required by a process need not be in memory at once. Some parts can be on disk, while others are in main memory. ļµ Further, the pages allocated to a process do not need to be stored contiguously-- either on disk or in memory. ļµ In this way, only the needed pages are in memory at any time, the unnecessary pages are in slower disk storage.
  • 4. Importance of Virtual Memory ļµ When the computer runs out of physical memory it writes what it needs to remember to the hard disk in a swap file as virtual memory. ļµ If a computer running windows requires more memory or RAM, then it is installed in the system to run a program , it uses a small section of hard drive for this purpose.
  • 5. Example ļµ A 16 MB program can run in 4 MB space by carefully choosing which 4 MB to keep in memory at each instance, with pieces of the program being swapped between disk and memory as needed.
  • 6.
  • 7. Demand Paged Virtual Memory ļµ The fundamental approach in implementing virtual memory is paging. ļµ 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. ļµ To accomplish this, the virtual address is divided into two fields: A page field, and an offset field. ļµ The page field determines the page location of the address, and the offset indicates the location of the address within the page.
  • 8. ļµ The logical page number is translated into a physical page frame through a lookup in the page table ļµ Information concerning the location of each page, whether on disk or in memory, is maintained in a data structure called a page table (shown below). ļµ There is one page table for each active process. Demand Paged Virtual Memory
  • 9. Demand Paged Virtual Memory ļµ When the pages are needed to execute a particular program, they are loaded. ļµ Pages that are never accessed are thus never loaded into the memory. ļµ This technique is known as Demand paging.
  • 10.
  • 11. Internal Fragmentation ļµ Paging is subject to internal fragmentation because a process may not need the entire range of addresses contained within the page. Thus, there may be many pages containing unused fragments of memory.
  • 12. Demand Segmented Virtual Memory ļµ Memory is divided into variable length segments. ļµ Each segment has a base physical address and length. ļµ Used when insufficient hardware is there to implement demand paging. ļµ Segment descriptor contains a valid bit to indicate whether the segment is currently in memory. ļµ If segment is in main memory, access continues, ļµ If not in memory, segment fault occurs.
  • 13. Demand Segmented Virtual Memory ļµ A segment is located through its entry in a segment table, which contains the segmentā€™s memory location and a bounds limit that indicates its size. ļµ After a page fault, the operating system searches for a location in memory large enough to hold the segment that is retrieved from disk. ļµ Each segment has a page table. This means that a memory address will have three fields, one for the segment, another for the page, and a third for the offset.
  • 14. External Fragmentation ļµ Both paging and segmentation can cause fragmentation. ļµ Segmentation is subject to external fragmentation, which occurs when contiguous chunks of memory become broken up as segments are allocated and deallocated over time.
  • 15. Thrashing ļµ When the hard drive is being overworked by moving information between the system memory and virtual memory excessively, thrashing is caused. ļµ When the system doesnā€™t have enough memory, the system swap file is not properly configured, or too much is running on the computer and it has low system resources. ļµ Thrashing is bad on a hard drive because of the amount of work the hard drive has to do and if is left unfixed will likely cause an early failure of the hard drive.
  • 16. Advantages ļµ More applications can run at once. ļµ Larger applications can run with less real RAM without need to buy more memory. ļµ Allows speed gain when only a particular segment of the program is required for the execution of the program. ļµ This frees programmers from concern of memory limitations and helps implementing multiprogramming environment.
  • 17. Disadvantages ļµ Applications may run slower. ļµ It takes more time to switch between applications. ļµ Less available hard drive space for the userā€™s use. ļµ The possibility of Thrashing due to excessive Paging and Page faults
  ēæ»čƑļ¼š