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

PPT
36 fragmentaio nnd pageconcepts
PPT
34 single partition allocation
PPT
37 segmentation
PDF
Ch4 memory management
PPTX
Combined paging and segmentation
PPT
Os Swapping, Paging, Segmentation and Virtual Memory
PPT
38 paged segmentation
PPTX
Presentation on Segmentation
36 fragmentaio nnd pageconcepts
34 single partition allocation
37 segmentation
Ch4 memory management
Combined paging and segmentation
Os Swapping, Paging, Segmentation and Virtual Memory
38 paged segmentation
Presentation on Segmentation

What's hot (20)

PPTX
Windows memory management
PPT
Memory management
PPTX
Parallel databases
PPTX
Memory Management in Windows 7
PDF
memory management of windows vs linux
PPT
Segmentation geekssay.com
PPT
31 address binding, dynamic loading
DOCX
Opetating System Memory management
PDF
Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...
PPT
Memory management
PPTX
Memory Management in OS
PPTX
Memory Management
PPTX
Paging and Segmentation in Operating System
PDF
Main Memory
PPTX
Memory management
ODP
Unix Memory Management - Operating Systems
PPTX
Introduction of Memory Management
PPT
Ch9 OS
 
PDF
Operating Systems 1 (9/12) - Memory Management Concepts
PPTX
Swapping | Computer Science
Windows memory management
Memory management
Parallel databases
Memory Management in Windows 7
memory management of windows vs linux
Segmentation geekssay.com
31 address binding, dynamic loading
Opetating System Memory management
Controlling Memory Footprint at All Layers: Linux Kernel, Applications, Libra...
Memory management
Memory Management in OS
Memory Management
Paging and Segmentation in Operating System
Main Memory
Memory management
Unix Memory Management - Operating Systems
Introduction of Memory Management
Ch9 OS
 
Operating Systems 1 (9/12) - Memory Management Concepts
Swapping | Computer Science
Ad

Viewers also liked (20)

PPT
35. multiplepartitionallocation
PPTX
File directory definition 54(2)
PPTX
File management53(1)
PPT
40 demand paging
PPT
Thrashing allocation frames.43
PPTX
Operating System (Scheduling, Input and Output Management, Memory Management,...
PDF
Virtual Memory and Paging
PPT
Chapter 9 - Virtual Memory
PPS
Virtual memory
PPTX
Operating System-Memory Management
PPT
Types of memory 10 to11
PPT
Types of memory
PPTX
Hibernate example1
PPT
PPT
Ch10: Virtual Memory
DOCX
virtual memory
PPT
Os8
PPTX
Virtual Memory (Making a Process)
PDF
Virtual Memory
35. multiplepartitionallocation
File directory definition 54(2)
File management53(1)
40 demand paging
Thrashing allocation frames.43
Operating System (Scheduling, Input and Output Management, Memory Management,...
Virtual Memory and Paging
Chapter 9 - Virtual Memory
Virtual memory
Operating System-Memory Management
Types of memory 10 to11
Types of memory
Hibernate example1
Ch10: Virtual Memory
virtual memory
Os8
Virtual Memory (Making a Process)
Virtual Memory
Ad

Similar to 39 virtual memory (20)

PPTX
Cache Memory And Virtual Memory in computer architecture
PPTX
Chapter_4_Memory_Managementcsconpsc2.pptx
PPT
Power Point Presentation on Virtual Memory.ppt
PPTX
ICTM 10
PPTX
Operating system 36 virtual memory
PDF
Memory Management
KEY
Writing Scalable Software in Java
PPT
Virtual memory
PDF
The life and times
PDF
Csc1401 lecture05 - cache memory
PDF
Caching principles-solutions
PPT
operationg systemsdocumentmemorymanagement
PPT
OS-unit-3 part -1mxmxmxmmxmxmmxmxmxmxmxmmxmxmmx.ppt
PPT
32 dynamic linking nd overlays
PPTX
Cache memory and virtual memory
PPTX
Virtual memory managment
PPTX
Memory Management
PPTX
Cache Presentation for Computer Organization & Assembly Language
ODP
Time For DIME
PPTX
Hyper-V Dynamic Memory in Depth
Cache Memory And Virtual Memory in computer architecture
Chapter_4_Memory_Managementcsconpsc2.pptx
Power Point Presentation on Virtual Memory.ppt
ICTM 10
Operating system 36 virtual memory
Memory Management
Writing Scalable Software in Java
Virtual memory
The life and times
Csc1401 lecture05 - cache memory
Caching principles-solutions
operationg systemsdocumentmemorymanagement
OS-unit-3 part -1mxmxmxmmxmxmmxmxmxmxmxmmxmxmmx.ppt
32 dynamic linking nd overlays
Cache memory and virtual memory
Virtual memory managment
Memory Management
Cache Presentation for Computer Organization & Assembly Language
Time For DIME
Hyper-V Dynamic Memory in Depth

More from myrajendra (20)

PPT
Fundamentals
PPT
Data type
PPTX
Jdbc workflow
PPTX
2 jdbc drivers
PPTX
3 jdbc api
PPTX
4 jdbc step1
PPTX
Dao example
PPTX
Sessionex1
PPTX
Internal
PPTX
3. elements
PPTX
2. attributes
PPTX
1 introduction to html
PPTX
Headings
PPTX
Forms
PPT
PPTX
Views
PPTX
Views
PPTX
Views
PPT
Starting jdbc
PPTX
Properties
Fundamentals
Data type
Jdbc workflow
2 jdbc drivers
3 jdbc api
4 jdbc step1
Dao example
Sessionex1
Internal
3. elements
2. attributes
1 introduction to html
Headings
Forms
Views
Views
Views
Starting jdbc
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