15. Address Translation Flashcards

1
Q

What is address translation?

A

Transforming each virtual address to a physical address the information is actually located.

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

What is the illusion of virtualising memory?

A

The illusion is that all programs have their own private memory which contains the code and data.

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

What happens when a line of code is executed?

A

Fetch instruction and execute instruction.

Hence, there is a total of two memory accesses per line

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

What is the base and bounds technique?

A

We have two registers: base and bounds.

Every virtual address will be added with base and checked against bounds to ensure it is authorised.

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

What is another name for the base and bounds technique?

A

Dynamic relocation

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

Where are the base and bounds registers located at?

A

They are hardware components stored in the CPU

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

What is the memory management unit (MMU)?

A

The part of the processor that does address translation

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

What are the two types of values that bounds registers typically hold? Which is the convention we use?

A
  1. Size of address space
  2. Physical address of the end of the address space.

The one we use is the first method.

Note: address space is virtual

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

What happens when the virtual address is out of bounds?

A

An exception will be raised

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

How do we know if the privilege is user mode or kernel mode, from the perspective of memory?

A

We store a single big to indicate them

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

What is free list?

A

A data structure that manages address space and allows you to find free address space easily

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

What are the hardware requirements for dynamic relocation?

A
  1. Privilege mode
  2. Base or bounds registers
  3. Ability to translate virtual addresses and check if within bounds
  4. Privileged instructions to update base or bounds
  5. Privileged instructions to register exception handlers
  6. Ability to raise exceptions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the OS requirements for dynamic relocation?

A
  1. Memory management
  2. Base or bounds management
  3. Exception handling
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly