Virtual memory Flashcards

1
Q

What is the Page table used for

A

to map virtual adresses to physical addresses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How many pages of physical memory can we store

A

2^(m-p)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How many pages can we store in virtual memory

A

2^(v-p)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How many bits are there in one entry and why

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is page fault

A

when the page is stored on the disk causes and interrupt to tansfer the page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is the translation lookaside buffer

A

cache to store page lookup table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

why use the TLB

A

reduce time to translate virtual address to physcal address down to 1 clock cycle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly