Virtual Memory
Virtual Memory
Virtual Memory
INTRODUCTION
VIRTUAL MEMORY .. ?
It is defined as a technique that allows the execution of
processes that may not be completely in memory
(Silberschatz & Galvin). Virtual memory separates logical
memory and physical memory. From this separation, the
amount of available physical memory is no longer a
constraint and less physical memory is needed for each
program
Each process has a virtual address, which is used to map the
process into main memory. The process can access its data
with the virtual address space. On the other hand, the
available range of actual memory is known as the physical
address space. And the addresses available in main memory
are called physical addresses. When executing a process,
the virtual address space must be mapped into a physical
location.
PAGING HARDWARE
2. DEMAND SEGMENTATION
A LG O RI T H MS US E D
1 First in, first out (FIFO)
2 LEAST-RECENTLY-USED (LRU)
C O N C LU S I O N
Virtual memory provides the illusion of large address space
that almost eliminates considerations imposed by the limited
capacity of physical memory. Thus, both system and user
programs can provide the desired functionality without
concern for the amount of real memory installed in a particular
system. However, the main disadvantage of virtual memory is
the complex hardware and software needed to support it. Both
the space and time complexities of virtual-memory operating
systems exceed those of their real-memory counterparts.
Large virtual-address space and management of file-map
tables contribute to considerably higher table fragmentation.
u
o
Y
k
n
a
Th