Quiz 6 Flashcards
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
The TLB is updated with the translation.
TLb stands for Transaction Lookaside ________
buffer
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 program tends to repeat accesses to the same memory locations over time.
Depending on the architecture, the TLB may be either hardware- or software
managed. (True or false)
True
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
Consecutive memory operations tend to access memory locations
which are close to each other
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
True
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
The TLB may be flushed
If the TLB uses address space identifiers for each entry, nothing needs to be done.
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
It is more flexible
It simplifies free space management.
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
In memory
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
False
The purpose of protection bits in a page table is to mark whether a page can be read, _________, or executed
written
The core insight of paging is to break the memory into fixed sized chunks called _________
pages
In paging, both physical and virtual memory are “broken” into fixed size slots.
True
False
True
Consider a paging implementation using a page table base register. Which information is stored in the register?
The base address of the page table