1,118 views
1 votes
1 votes
How does the virtual memory separates the logical memory as perceived by users from physical memory?

Is it because we can load program with larger address space then physical memory but still we need physical memory to load our pages don't we ? Then what does the above statement actually trying to convey ?

1 Answer

2 votes
2 votes

Virtual memory is not a separator between logical and physical memory

Actually in a CPU RAM is called Physical Memory and when we create a process Logical Memory is created. Now suppose we create one process with 6 block sequentially. But it is not guaranteed that those 6 blocks are also sequentially present in RAM. To connect between Physical address with Logical address, we need Page Table. Page table maps Physical address to Logical address.

Now, RAM may not contain all logical address of the process. If we are not getting the page that we needed, then it is called Page Fault of the process. In the page table those pages are indicated as Dirty Bit.

To overcome page fault we need to swap in those pages, from Secondary memory to Main memory.And those are done by FIFO, LRU,LFU page replacement policies.

Related questions

2 votes
2 votes
0 answers
1
2 votes
2 votes
1 answer
2
3lurryface asked Jan 9, 2019
1,120 views
If there is 2 or more level paging for processes, is it possible to have more than 1 page fault while accessing any single addressable unit(byte or word) ?
1 votes
1 votes
1 answer
3
Na462 asked Sep 29, 2018
754 views