Address Translation:Base and Bounds Qs Flashcards

Chapter 15 of Operating System:Three Easy Pieces

1
Q

What is the main reason for introducing address translation in modern operating systems?

What it supports and what three things allowed

A

Supports memory virtualization, allowing process isolation, efficient memory virtualization, the abstraction of a large, contiguous memory space for processes

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

What is the role of privileged instructions in address translation?

settings

A

used to configure and manage address translation settings

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

What is the main purpose of the bounds register in the base-and-bounds memory management model?

within range

A

it ensures a process can only access memory within its allocated range

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

What happens if a user program generates a memory reference beyond the bounds of the allocated address space?

answer and results

A

a trap or exception is triggered, typically resulting in the OS terminating the process

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

What is the primary role of hardware-based address translation in memory virtualization?

virtual squared + 3 things

A

Efficiently and securely map virtual addresses to physical addresses, enabling process isolation, abstraction of physical memory, and support for paging and segmentation

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

How does dynamic relocation differ from static relocation?

at/during

A

Dynamic relocation happens at runtime with base and bounds registers. Also, virtual addresses are translated to physical addresses on-the-fly by the MMU.
Static relocation happens at load time, where all addresses are fixed during runtime.

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

What is not a requirement for hardware-based translation?

‘transparency’

A

For processes to be aware of the physical memory layout. Address translation is done transparently by the OS and hardware.

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

Why are the base and bounds registers privileged and only modifiable in kernel mode?

define two things and consequences

A

They define the memory limits and relocation for a process. If they weren’t privileged, security and stability could be compromised.

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

What is the illusion created by virtual memory for each running process?

A

Each process has its own isolated, contiguous memory space. This allows processes to run independently without knowing the actual physical memory layout.

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

Which part of the CPU is responsible for performing address translation?

A

The MMU, converts the virtual addresses to physical addresses

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