SlideShare a Scribd company logo
Storage Management

• Virtual Memory




                                    1
HOME     PREVIOUS TOPIC NEXT
PREVIOUS QUESTION PAPERS FOR OS
CPP TUTORIALS




            9CM402.39             2
Recap


In the last class, you have learnt:

• Paged Segmentation

• MULTICS Address Translation Scheme




                                       3
Objective


 On completion of this class, you will be able to
 know
• Virtual Memory Techniques




                                                    4
Virtual Memory Techniques

• RAM is expensive ( but fast ), disk is cheap (but
  slow)
• Need to find a way to use the cheaper memory
  – Store memory that isn’t frequently used on disk

  – Swap pages between disk and memory as needed

• Treat main memory as a cache for pages on
  disk

                                                      5
Virtual Memory

• It is 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
  – Allows address spaces to be shared by several
    processes
  – Allows for more efficient process creation
                                                         6
Virtual Memory


• Virtual memory can be implemented via:

  – Demand paging

  – Demand segmentation




                                           7
Virtual Memory
• It is a conceptual separation of user logical memory from
  physical memory
• Thus we can have large virtual memory on a small physical
  memory
Individual Pages




                             Physical             Disk
       Virtual     Memory
       Memory       Map      Memory
                                                         8
Virtual Memory

• Programs can be larger than memory

  – Program loaded into memory as needed

  – Active program and data “swapped” to a disk until

    needed

• Memory space treated uniformly



                                                        9
WHY VIRTUAL MEMORY?

  • Previously entire logical space was required for the

    process to be in memory
  • Before the process could run

  • The alternatives to this

  • Most code / data isn't needed at any instant, or even

    within a finite time
  • We can bring it in only as needed



                                                      10
Virtual Memory
Advantages

• Gives a higher level of multiprogramming


• The program size isn't constrained (thus the

 term 'virtual memory'). Virtual memory allows

 very large logical address spaces

• Swap sizes smaller
                                             11
Summary


 In this class, you have learnt

• Virtual Memory




                                  12
Frequently Asked Questions

• Explain Virtual Memory concepts with a neat

  sketch




                                                13
Quiz
1. __________separation of user logical memory
 from physical memory
 a) Segmentation
 b) Virtual memory
 c) None

2. ____________gives a higher level of
 multiprogramming
  a) Page offset
  b) Hole
   c) Virtual memory
   d) None                                       14
Quiz
3. Logical address space can be much larger than
   a) Page number
   b) MULTICS
   c) Physical address space
   d) None

4. __________allows very large logical address
   spaces
    a) External fragmentation
    b) Virtual memory
    c) Compaction
    d) None                                        15
Other subject materials

•   Web designing
•   Micro processors
•   C++ tutorials
•   java

home

More Related Content

What's hot

Windows memory management
Windows memory managementWindows memory management
Windows memory management
Tech_MX
 
Memory management
Memory managementMemory management
Memory management
Vishal Singh
 
Parallel databases
Parallel databasesParallel databases
Parallel databases
Aniruddha Patil
 
VM and IO Topics in Linux
VM and IO Topics in LinuxVM and IO Topics in Linux
VM and IO Topics in Linux
cucufrog
 
Memory Management in Windows 7
Memory Management in Windows 7Memory Management in Windows 7
Memory Management in Windows 7
Naveed Qadri
 
memory management of windows vs linux
memory management of windows vs linuxmemory management of windows vs linux
memory management of windows vs linux
Sumit Khanka
 
Segmentation geekssay.com
Segmentation  geekssay.comSegmentation  geekssay.com
Segmentation geekssay.com
Hemant Gautam
 
31 address binding, dynamic loading
31 address binding, dynamic loading31 address binding, dynamic loading
31 address binding, dynamic loading
myrajendra
 
Opetating System Memory management
Opetating System Memory managementOpetating System Memory management
Opetating System Memory management
Johan Granados Montero
 
Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...
Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...
Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...
peknap
 
Memory management
Memory managementMemory management
Memory management
Mohammad Sadiq
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
Kumar Pritam
 
Memory Management
Memory ManagementMemory Management
Memory Management
Visakh V
 
Paging and Segmentation in Operating System
Paging and Segmentation in Operating SystemPaging and Segmentation in Operating System
Paging and Segmentation in Operating System
Raj Mohan
 
Main Memory
Main MemoryMain Memory
Main Memory
Mustafa Ugur Oduncu
 
Memory management
Memory managementMemory management
Memory management
Muhammad Fayyaz
 
Unix Memory Management - Operating Systems
Unix Memory Management - Operating SystemsUnix Memory Management - Operating Systems
Unix Memory Management - Operating Systems
Drishti Bhalla
 
Introduction of Memory Management
Introduction of Memory Management Introduction of Memory Management
Introduction of Memory Management
Maitree Patel
 
Ch9 OS
Ch9 OSCh9 OS
Ch9 OS
C.U
 
Operating Systems 1 (9/12) - Memory Management Concepts
Operating Systems 1 (9/12) - Memory Management ConceptsOperating Systems 1 (9/12) - Memory Management Concepts
Operating Systems 1 (9/12) - Memory Management Concepts
Peter Tröger
 

What's hot (20)

Windows memory management
Windows memory managementWindows memory management
Windows memory management
 
Memory management
Memory managementMemory management
Memory management
 
Parallel databases
Parallel databasesParallel databases
Parallel databases
 
VM and IO Topics in Linux
VM and IO Topics in LinuxVM and IO Topics in Linux
VM and IO Topics in Linux
 
Memory Management in Windows 7
Memory Management in Windows 7Memory Management in Windows 7
Memory Management in Windows 7
 
memory management of windows vs linux
memory management of windows vs linuxmemory management of windows vs linux
memory management of windows vs linux
 
Segmentation geekssay.com
Segmentation  geekssay.comSegmentation  geekssay.com
Segmentation geekssay.com
 
31 address binding, dynamic loading
31 address binding, dynamic loading31 address binding, dynamic loading
31 address binding, dynamic loading
 
Opetating System Memory management
Opetating System Memory managementOpetating System Memory management
Opetating System Memory management
 
Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...
Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...
Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...
 
Memory management
Memory managementMemory management
Memory management
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
Paging and Segmentation in Operating System
Paging and Segmentation in Operating SystemPaging and Segmentation in Operating System
Paging and Segmentation in Operating System
 
Main Memory
Main MemoryMain Memory
Main Memory
 
Memory management
Memory managementMemory management
Memory management
 
Unix Memory Management - Operating Systems
Unix Memory Management - Operating SystemsUnix Memory Management - Operating Systems
Unix Memory Management - Operating Systems
 
Introduction of Memory Management
Introduction of Memory Management Introduction of Memory Management
Introduction of Memory Management
 
Ch9 OS
Ch9 OSCh9 OS
Ch9 OS
 
Operating Systems 1 (9/12) - Memory Management Concepts
Operating Systems 1 (9/12) - Memory Management ConceptsOperating Systems 1 (9/12) - Memory Management Concepts
Operating Systems 1 (9/12) - Memory Management Concepts
 

Viewers also liked

35. multiplepartitionallocation
35. multiplepartitionallocation35. multiplepartitionallocation
35. multiplepartitionallocation
myrajendra
 
File directory definition 54(2)
File directory definition 54(2)File directory definition 54(2)
File directory definition 54(2)
myrajendra
 
File management53(1)
File management53(1)File management53(1)
File management53(1)
myrajendra
 
40 demand paging
40 demand paging40 demand paging
40 demand paging
myrajendra
 
Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43
myrajendra
 
Operating System (Scheduling, Input and Output Management, Memory Management,...
Operating System (Scheduling, Input and Output Management, Memory Management,...Operating System (Scheduling, Input and Output Management, Memory Management,...
Operating System (Scheduling, Input and Output Management, Memory Management,...
Project Student
 
Virtual Memory and Paging
Virtual Memory and PagingVirtual Memory and Paging
Virtual Memory and Paging
Emery Berger
 
Chapter 9 - Virtual Memory
Chapter 9 - Virtual MemoryChapter 9 - Virtual Memory
Chapter 9 - Virtual Memory
Wayne Jones Jnr
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
Anuj Modi
 
Operating System-Memory Management
Operating System-Memory ManagementOperating System-Memory Management
Operating System-Memory Management
Akmal Cikmat
 
Virtual memory ppt
Virtual memory pptVirtual memory ppt
Types of memory 10 to11
Types of memory 10 to11Types of memory 10 to11
Types of memory 10 to11
myrajendra
 
Types of memory
Types of memoryTypes of memory
Types of memory
myrajendra
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
myrajendra
 
Ch09
Ch09Ch09
Ch10: Virtual Memory
Ch10: Virtual MemoryCh10: Virtual Memory
Ch10: Virtual Memory
Ahmar Hashmi
 
virtual memory
virtual memoryvirtual memory
virtual memory
Abeer Naskar
 
Os8
Os8Os8
Os8
issbp
 
Virtual Memory (Making a Process)
Virtual Memory (Making a Process)Virtual Memory (Making a Process)
Virtual Memory (Making a Process)
David Evans
 
Virtual Memory
Virtual MemoryVirtual Memory
Virtual Memory
Farzan Dehbashi
 

Viewers also liked (20)

35. multiplepartitionallocation
35. multiplepartitionallocation35. multiplepartitionallocation
35. multiplepartitionallocation
 
File directory definition 54(2)
File directory definition 54(2)File directory definition 54(2)
File directory definition 54(2)
 
File management53(1)
File management53(1)File management53(1)
File management53(1)
 
40 demand paging
40 demand paging40 demand paging
40 demand paging
 
Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43
 
Operating System (Scheduling, Input and Output Management, Memory Management,...
Operating System (Scheduling, Input and Output Management, Memory Management,...Operating System (Scheduling, Input and Output Management, Memory Management,...
Operating System (Scheduling, Input and Output Management, Memory Management,...
 
Virtual Memory and Paging
Virtual Memory and PagingVirtual Memory and Paging
Virtual Memory and Paging
 
Chapter 9 - Virtual Memory
Chapter 9 - Virtual MemoryChapter 9 - Virtual Memory
Chapter 9 - Virtual Memory
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Operating System-Memory Management
Operating System-Memory ManagementOperating System-Memory Management
Operating System-Memory Management
 
Virtual memory ppt
Virtual memory pptVirtual memory ppt
Virtual memory ppt
 
Types of memory 10 to11
Types of memory 10 to11Types of memory 10 to11
Types of memory 10 to11
 
Types of memory
Types of memoryTypes of memory
Types of memory
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Ch09
Ch09Ch09
Ch09
 
Ch10: Virtual Memory
Ch10: Virtual MemoryCh10: Virtual Memory
Ch10: Virtual Memory
 
virtual memory
virtual memoryvirtual memory
virtual memory
 
Os8
Os8Os8
Os8
 
Virtual Memory (Making a Process)
Virtual Memory (Making a Process)Virtual Memory (Making a Process)
Virtual Memory (Making a Process)
 
Virtual Memory
Virtual MemoryVirtual Memory
Virtual Memory
 

Similar to 39 virtual memory

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
 
ICTM 10
ICTM 10ICTM 10
ICTM 10
Azlan Zain
 
Operating system 36 virtual memory
Operating system 36 virtual memoryOperating system 36 virtual memory
Operating system 36 virtual memory
Vaibhav Khanna
 
Memory Management
Memory ManagementMemory Management
Memory Management
DEDE IRYAWAN
 
Writing Scalable Software in Java
Writing Scalable Software in JavaWriting Scalable Software in Java
Writing Scalable Software in Java
Ruben Badaró
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
Muhammad Farooq
 
The life and times
The life and timesThe life and times
The life and times
Abeer Naskar
 
Csc1401 lecture05 - cache memory
Csc1401   lecture05 - cache memoryCsc1401   lecture05 - cache memory
Csc1401 lecture05 - cache memory
IIUM
 
Caching principles-solutions
Caching principles-solutionsCaching principles-solutions
Caching principles-solutions
pmanvi
 
32 dynamic linking nd overlays
32 dynamic linking nd overlays32 dynamic linking nd overlays
32 dynamic linking nd overlays
myrajendra
 
Cache memory and virtual memory
Cache memory and virtual memoryCache memory and virtual memory
Cache memory and virtual memory
PrakharBansal29
 
Virtual memory managment
Virtual memory managmentVirtual memory managment
Virtual memory managment
Santu Kumar
 
Memory Management
Memory ManagementMemory Management
Memory Management
lavanya marichamy
 
Time For DIME
Time For DIMETime For DIME
Time For DIME
Martin Packer
 
Hyper-V Dynamic Memory in Depth
Hyper-V Dynamic Memory in Depth Hyper-V Dynamic Memory in Depth
Hyper-V Dynamic Memory in Depth
Microsoft TechNet - Belgium and Luxembourg
 
Lect13
Lect13Lect13
Lect13
Vin Voro
 
Lect13
Lect13Lect13
Lect13
Vin Voro
 
Cache memory presentation
Cache memory presentationCache memory presentation
Cache memory presentation
bravehearted1010
 
Memory management
Memory managementMemory management
Memory management
Touhidul Shawan
 
Week 4Operating SystemsCardPunch - verif.docx
Week 4Operating SystemsCardPunch - verif.docxWeek 4Operating SystemsCardPunch - verif.docx
Week 4Operating SystemsCardPunch - verif.docx
cockekeshia
 

Similar to 39 virtual memory (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
 
ICTM 10
ICTM 10ICTM 10
ICTM 10
 
Operating system 36 virtual memory
Operating system 36 virtual memoryOperating system 36 virtual memory
Operating system 36 virtual memory
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
Writing Scalable Software in Java
Writing Scalable Software in JavaWriting Scalable Software in Java
Writing Scalable Software in Java
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
The life and times
The life and timesThe life and times
The life and times
 
Csc1401 lecture05 - cache memory
Csc1401   lecture05 - cache memoryCsc1401   lecture05 - cache memory
Csc1401 lecture05 - cache memory
 
Caching principles-solutions
Caching principles-solutionsCaching principles-solutions
Caching principles-solutions
 
32 dynamic linking nd overlays
32 dynamic linking nd overlays32 dynamic linking nd overlays
32 dynamic linking nd overlays
 
Cache memory and virtual memory
Cache memory and virtual memoryCache memory and virtual memory
Cache memory and virtual memory
 
Virtual memory managment
Virtual memory managmentVirtual memory managment
Virtual memory managment
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
Time For DIME
Time For DIMETime For DIME
Time For DIME
 
Hyper-V Dynamic Memory in Depth
Hyper-V Dynamic Memory in Depth Hyper-V Dynamic Memory in Depth
Hyper-V Dynamic Memory in Depth
 
Lect13
Lect13Lect13
Lect13
 
Lect13
Lect13Lect13
Lect13
 
Cache memory presentation
Cache memory presentationCache memory presentation
Cache memory presentation
 
Memory management
Memory managementMemory management
Memory management
 
Week 4Operating SystemsCardPunch - verif.docx
Week 4Operating SystemsCardPunch - verif.docxWeek 4Operating SystemsCardPunch - verif.docx
Week 4Operating SystemsCardPunch - verif.docx
 

More from myrajendra

Fundamentals
FundamentalsFundamentals
Fundamentals
myrajendra
 
Data type
Data typeData type
Data type
myrajendra
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
myrajendra
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
myrajendra
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
myrajendra
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
myrajendra
 
Dao example
Dao exampleDao example
Dao example
myrajendra
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
myrajendra
 
Internal
InternalInternal
Internal
myrajendra
 
3. elements
3. elements3. elements
3. elements
myrajendra
 
2. attributes
2. attributes2. attributes
2. attributes
myrajendra
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
myrajendra
 
Headings
HeadingsHeadings
Headings
myrajendra
 
Forms
FormsForms
Forms
myrajendra
 
Css
CssCss
Views
ViewsViews
Views
myrajendra
 
Views
ViewsViews
Views
myrajendra
 
Views
ViewsViews
Views
myrajendra
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
myrajendra
 
Properties
PropertiesProperties
Properties
myrajendra
 

More from myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 
Properties
PropertiesProperties
Properties
 

39 virtual memory

  • 2. HOME PREVIOUS TOPIC NEXT PREVIOUS QUESTION PAPERS FOR OS CPP TUTORIALS 9CM402.39 2
  • 3. Recap In the last class, you have learnt: • Paged Segmentation • MULTICS Address Translation Scheme 3
  • 4. Objective On completion of this class, you will be able to know • Virtual Memory Techniques 4
  • 5. Virtual Memory Techniques • RAM is expensive ( but fast ), disk is cheap (but slow) • Need to find a way to use the cheaper memory – Store memory that isn’t frequently used on disk – Swap pages between disk and memory as needed • Treat main memory as a cache for pages on disk 5
  • 6. Virtual Memory • It is 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 – Allows address spaces to be shared by several processes – Allows for more efficient process creation 6
  • 7. Virtual Memory • Virtual memory can be implemented via: – Demand paging – Demand segmentation 7
  • 8. Virtual Memory • It is a conceptual separation of user logical memory from physical memory • Thus we can have large virtual memory on a small physical memory Individual Pages Physical Disk Virtual Memory Memory Map Memory 8
  • 9. Virtual Memory • Programs can be larger than memory – Program loaded into memory as needed – Active program and data “swapped” to a disk until needed • Memory space treated uniformly 9
  • 10. WHY VIRTUAL MEMORY? • Previously entire logical space was required for the process to be in memory • Before the process could run • The alternatives to this • Most code / data isn't needed at any instant, or even within a finite time • We can bring it in only as needed 10
  • 11. Virtual Memory Advantages • Gives a higher level of multiprogramming • The program size isn't constrained (thus the term 'virtual memory'). Virtual memory allows very large logical address spaces • Swap sizes smaller 11
  • 12. Summary In this class, you have learnt • Virtual Memory 12
  • 13. Frequently Asked Questions • Explain Virtual Memory concepts with a neat sketch 13
  • 14. Quiz 1. __________separation of user logical memory from physical memory a) Segmentation b) Virtual memory c) None 2. ____________gives a higher level of multiprogramming a) Page offset b) Hole c) Virtual memory d) None 14
  • 15. Quiz 3. Logical address space can be much larger than a) Page number b) MULTICS c) Physical address space d) None 4. __________allows very large logical address spaces a) External fragmentation b) Virtual memory c) Compaction d) None 15
  • 16. Other subject materials • Web designing • Micro processors • C++ tutorials • java home