Virtual Memory
Submitted to: Submitted by:
Sir Asif Wagan F-16CS31
Content
 Virtual Memory
 Importance of Virtual Memory
 Without Virtual Memory
 With Virtual Memory
 Advantages and Disadvantages
 Address Space and Memory Space
3/13/2018F16CS31
2
Virtual Memory
 Refers to something which appears to be present but actually it is not.
 The technique allows users to use more memory for a program than the real
memory of a computer.
 It is concept that gives the illusion to the user that they will have main memory
equal to the capacity of secondary storage media.
 It is alternate set of memory addresses.
 When the program is actually executed, the virtual addresses are converted
into real memory addresses.
3/13/2018F16CS31
3
Importance of Virtual Memory
 If a computer running Windows requires more memory/ RAM then there is
installed in the system to run a program, etc.
 it uses a small section of the hard drive for this purpose. called virtual
memory technique.
 The program is stored in the secondary memory. The memory
management unit (MMU) transfers the currently needed part of the
program from the secondary memory to the main memory for execution.
 This to and fro movement of instructions and data (parts of a program)
between the main memory and the secondary memory is called
Swapping.
3/13/2018F16CS31
4
Without Virtual Memory
3/13/2018F16CS31
5
With Virtual Memory
3/13/2018F16CS31
6
Advantages
 You can run more applications at
once.
 Allows you to fit many large
programs into a relatively small
RAM.
 You don't have to buy more
memory RAM.
 This concept is very helpful in
implementing multiprogramming
environment.
 Process need not be in memory
as a whole , Only part of a
program needs to be loaded into
memory.
Disadvantages
 Applications run slower if the
system is using virtual memory.
 It Takes more time to switch
between applications.
 Less hard drive space for your
use.
 It reduces system stability.
3/13/2018F16CS31
7
Address space and Memory space
 Virtual address is the address used by the programmer
 the set of such addresses is called the address space or virtual memory.
 An address in main memory is called a location or physical address.
 The set of such locations in main memory is called the memory space or
physical memory.
3/13/2018F16CS31
8
3/13/2018F16CS31
9

Virtual memory presentation

  • 1.
    Virtual Memory Submitted to:Submitted by: Sir Asif Wagan F-16CS31
  • 2.
    Content  Virtual Memory Importance of Virtual Memory  Without Virtual Memory  With Virtual Memory  Advantages and Disadvantages  Address Space and Memory Space 3/13/2018F16CS31 2
  • 3.
    Virtual Memory  Refersto something which appears to be present but actually it is not.  The technique allows users to use more memory for a program than the real memory of a computer.  It is concept that gives the illusion to the user that they will have main memory equal to the capacity of secondary storage media.  It is alternate set of memory addresses.  When the program is actually executed, the virtual addresses are converted into real memory addresses. 3/13/2018F16CS31 3
  • 4.
    Importance of VirtualMemory  If a computer running Windows requires more memory/ RAM then there is installed in the system to run a program, etc.  it uses a small section of the hard drive for this purpose. called virtual memory technique.  The program is stored in the secondary memory. The memory management unit (MMU) transfers the currently needed part of the program from the secondary memory to the main memory for execution.  This to and fro movement of instructions and data (parts of a program) between the main memory and the secondary memory is called Swapping. 3/13/2018F16CS31 4
  • 5.
  • 6.
  • 7.
    Advantages  You canrun more applications at once.  Allows you to fit many large programs into a relatively small RAM.  You don't have to buy more memory RAM.  This concept is very helpful in implementing multiprogramming environment.  Process need not be in memory as a whole , Only part of a program needs to be loaded into memory. Disadvantages  Applications run slower if the system is using virtual memory.  It Takes more time to switch between applications.  Less hard drive space for your use.  It reduces system stability. 3/13/2018F16CS31 7
  • 8.
    Address space andMemory space  Virtual address is the address used by the programmer  the set of such addresses is called the address space or virtual memory.  An address in main memory is called a location or physical address.  The set of such locations in main memory is called the memory space or physical memory. 3/13/2018F16CS31 8
  • 9.