Advanced Computers Architecture Virtual Memory: Rohit Khokher
Advanced Computers Architecture Virtual Memory: Rohit Khokher
Virtual Memory
By
Rohit Khokher
• Operating system brings into main memory a few pieces of the program
– Another process is dispatched to run while the disk I/O takes place
• Real memory
– Main memory
• Virtual memory
– Memory on disk
– Allows for effective multiprogramming and relieves the user of tight
constraints of main memory
Virtual memory is a technique that allows processes that may not be entirely in the
memory to execute by means of automatic storage allocation upon request.
If the data swapped is designated a fixed size, this swapping is called paging; if variable
sizes are permitted and the data is split along logical lines such as subroutines or
matrices, it is called segmentation. Some operating systems combine segmentation and
paging.
• Examples:
– most Cray machines, early PCs, nearly all
embedded systems, etc. Memory
0:
Physical 1:
Addresses
CPU
N-1:
CPU
P-1:
N-1:
Disk
Disk
Disk
13
C SINGH, JUNE 7-8, 2010Advanced Computers Architecture, UNIT
IWW2 2010, ISATANBUL, TURKEY
Mapper