Virtual Memory and Memory Management Requirement: Presented By: Ankit Sharma Nitesh Pandey Manish Kumar
Virtual Memory and Memory Management Requirement: Presented By: Ankit Sharma Nitesh Pandey Manish Kumar
MEMORY MANAGEMENT
REQUIREMENT
Presented by:
ANKIT SHARMA
NITESH PANDEY
MANISH KUMAR
What is
An
HISTORY
virtual
In
Answer
At that time the O.S will then set up the 120 mb of
virtual memory and will use a program called the
VMM to manage that 120MB. The vmm will create
a file on hard disk that 70mb in size of account for
the extra memory that is needed
OBJECT..
Multiple
Enlarge
Virtual
Examples:
most Cray machines, early PCs, nearly all embedded systems, etc.
Memory
Physical
Addresses
0:
1:
CPU
N-1:
Examples:
Memory
Virtual
Addresses
0:
1:
Page Table
0:
1:
Physical
Addresses
CPU
P-1:
N-1:
Disk
Implementation of VM
Demand paging
Demand segmentation
paging
The VMM create a file on hard disk thats holds the extra memory
that is needed by the O.S which is our case in 70 MB in size this
file is called a paging file
Whenever the O.S need a block of memory that is not in the real
memory ,the VMM takes the block of memory from the paging
file and moved it into the real memory this process is called a
paging and the block of memory that are swapped is called a
page
Page table..
10
Valid-Invalid Bit
valid-invalid bit
v
v
v
v
i
.
page table
i
i
Page fault
If the vailed bit is 1, then the virtual page is in RAM ,and you can
get the physical page for the PTE this is called a page HIT
If the vailed bit is 0, then the virtual page is not in RAM ,this
means we must get the disk page corresponding to the physical
page from disk and place it into a page in RAM this is called a
page fault
if p = 0 no page faults
VIRTUAL ADDRESS
TRANSLATION
What
map
If
If
Suspend
Get
program
Page translation
Address
Translate
Thus 1M/4k =256 pages thus our ram has 256 physical pages
which holding 4K
SEGMENTATION:
Divide
virtual
Address translation:
Address
pointer
(base)
size
of segment (bounds)
indication
protection
information
HARDWARES ROLE:
Segment Faults:
tries to find a chunk of free memory into which it can place the
missing segment
If
Contd.
MEMORY MANAGEMENT
REQUIREMENT
:
Memory management should satisfy the following requirements:
1.Relocation
2.Sharing
3.Protection
4.Logical
organization
5.Physical
organization.
Relocation:
Execution stack
SHARING:
Any
PROTECTION:
Once
It
4.Logical organization:
Main
PHYSICAL Organization:
Computer
Secondary