Virtual memory Flashcards
What is the Page table used for
to map virtual adresses to physical addresses
How many pages of physical memory can we store
2^(m-p)
How many pages can we store in virtual memory
2^(v-p)
How many bits are there in one entry and why
m-p
m is total number of bits in physical and p is total number of bits needed to represent the size of the page
so p is the offset
also because 2^m /2^p -> obviously means how many pages can be stored
so 2^m-p is number of pages meaning m-p bits to store a page
what is page fault
when the page is stored on the disk causes and interrupt to tansfer the page
what is the translation lookaside buffer
cache to store page lookup table
why use the TLB
reduce time to translate virtual address to physcal address down to 1 clock cycle