Virtual Memory Flashcards

1
Q

3 problems with running more than one program without virtual memory ?

A

Have to decide where you are going to put each program in memory

Each program in memory needs to be careful not to overwrite the data and the program used by the other the other task that’s running

Needs to be relative addressing

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

Example of relative addressing

A

Can only say “do something 10 bytes forward from here, or 5 bytes back from here”
You cannot use an absolute address like 4095 because that could belong to something else

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

Memory fragmentation

A

Gaps appearing in memory due to opening and closing different programs and them trying to fit into whatever space is left

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

What is the MMU ?

A

The Memory Management Unit

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

What does the MMU do ?

A

It Maps from the virtual address that the app thinks it is running in to an actual physical address in memory

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

What does a program think is happening when you have virtual memory ?

A

That it is the only program running

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

What problem does Virtual Memory solve ?

A

Memory Fragmentation

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

What is the name for the blocks that main memory is divided into ?

A

Pages

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

What size are pages typically ?

A

4k

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

Where are virtual tables held ?

A

In RAM

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

Where does a translated address go to ?

A

Cache

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

What does TLB stand for ?

A

Translation Lookaside Buffer.

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

What is it called when an address cannot be found ?

A

A page fault.

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

Why might you get a page fault.

A

The app is trying to access and address that is not allowed to. Its not been allocated that memory.

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