Quiz 6 Flashcards

1
Q

What happens in the case of a TLB miss (assume that page is valid)?

The program terminates with a segmentation fault
The TLB is updated with the translation
The memory access fails
The page table is swapped to disk

A

The TLB is updated with the translation.

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

TLb stands for Transaction Lookaside ________

A

buffer

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

What does “temporal locality” refer to in the context of TLB-based translation?

Context switching takes a short amount of time

A program tends to repeat accesses to the same memory locations over time

Most memory accesses happen within a small amount of time

A program tends to run frequently

A

A program tends to repeat accesses to the same memory locations over time.

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

Depending on the architecture, the TLB may be either hardware- or software
managed. (True or false)

A

True

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

What does spatial locality means in the context of TLB-based translation?

All files related to a program are stored in the same directory

The TLB hardware is located close to the memory to increase performance

All memory pages exist in the same region of memory

Consecutive memory operations tend to access memory locations which are close to each other

A

Consecutive memory operations tend to access memory locations
which are close to each other

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

If a TLB uses the least-recently-used (LRU) replacement policy, adding a new entry to the full TLB causes the TLB to overwrite the entry which has not been used for the longest time
True
False

A

True

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

What may happen to the TLB on context switches? Select all that applies.

The TLB may be flushed

All TLB accesses cause a miss, causing the process to terminate

The address space identifier field is changed to that of the new process.

If the TLB uses address space identifiers for each entry, nothing needs to be done

A

The TLB may be flushed

If the TLB uses address space identifiers for each entry, nothing needs to be done.

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

Mark all the advantages of paging over segmentation.

It is more flexible
It simplifies free-space management
It does not require any support data structure in memory
It does not require any hardware support

A

It is more flexible

It simplifies free space management.

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

In a paging approach, where is the page table stored?

In the MMU
In a dedicated ROM
Paging does not use a page table
In memory

A

In memory

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

The page table never takes more than a small amount of memory. Thus, the
size of the page table is never a concern.
True
False

A

False

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

The purpose of protection bits in a page table is to mark whether a page can be read, _________, or executed

A

written

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

The core insight of paging is to break the memory into fixed sized chunks called _________

A

pages

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

In paging, both physical and virtual memory are “broken” into fixed size slots.

True
False

A

True

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

Consider a paging implementation using a page table base register. Which information is stored in the register?

A

The base address of the page table

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