Virtual Memory and Its Concepts
Virtual Memory and Its Concepts
Assistant Professor in Computer Department, DAV College for women, Ferozepur Cantt, India
Abstract – This paper will provide you brief description about virtual Memory, its benefits and uses. Virtual
memory is the base of modern applications. In Virtual Memory the concept of demand paging is used. All
programs require memory to run on computer. When we want to run more than 1 process at same time
than operating system take the responsibility to ensure that there is enough memory for each and every
process. In this paper I provide you full fledge information about virtual memory, its uses, when we need it
and how it is used. All programs stored in permanent memory. When a program is executed it is first
loaded in main memory i.e. RAM (Random Access memory) which is very expensive and that is why
Computers have limited amount of RAM. Now days Virtual Memory is used in all modern applications
because it help us to extend the main memory without increasing the size of RAM which is very
expensive. We extend the main memory with the help of secondary memory. Virtual memory is useful in
two ways. First, it extends the physical memory with the help of secondary memory. Second, it provides
us memory protection, because each virtual address is translated to a physical address.
Keywords: Virtual memory, virtual memory implementation, memory protection, demand paging, swaps
in and swap out, page replacement algorithms, thrashing.
-----------------------------------X----------------------------------
computer has the fast it will run. Virtual memory referenced by the CPU is not available in the main
provides us a solution when we have limited RAM memory and it is to be searched in the secondary
but if we use more virtual memory than performance memory .Whenever the page fault occur the time
of our computer is degraded. So to get fast response taken to service the page fault is called as page
from your computer use as much RAM as you can fault service time. In page fault service time when
required page is found in the secondary memory divided into local and global page replacement
than we have to bring that page from secondary to algorithms. In local page replacement algorithm only
main memory page related to the same process is replaced and in
global replacement algorithm page related to any
process can be replaced. Global page replacement
algorithms are more complex to implement.
In the above diagram we have 2 processes , process Problem in FIFO: Belody Anomaly: When we
A and process B. Suppose Process A has 6 pages 0 increase the no. of frames than no. of page fault
To 5 and process B has 4 pages 6 to 9 but there are also increased this problem is called belody
only 4 pages of process A and 3 Pages of Process anomaly.
B are in primary memory and other pages are in
secondary memory whenever 2. Optimal Page Replacement Algorithm
(OPT): In this algorithm we see the future;
The other pages are required by the CPU they are it means a page which comes late in near
Swapped in and out from the main memory to future is replaced first. It is the most
secondary memory according to the requirement. efficient algorithm because it provides
minimum page faults.
Let main memory (MM) access time = ‗M‘
3. Least recently used algorithm (LRU): In
Page fault service time = ‗S‘ this algorithm we see the past, it means a
page which used least recently is replaced
Page fault rate = ‗P‘ first.
5. Overhead of swapping.
CONCLUSION
REFERENCES:
www.ignited.in