Translation Lookaside Buffer (TLB) — Concept Check
Questions on Translation Lookaside Buffer (TLB). The TLB is a small hardware cache of recent virtual-to-physical page translations that makes address translation nearly instantaneous on a hit, avoiding expensive page table walks.
Questions in this quiz
8 questions on Translation Lookaside Buffer (TLB) — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A system experiences frequent TLB misses, leading to high memory access times. What could be a potential solution to reduce TLB pressure?
- AIncrease the number of TLB entries
- BPerform more context switches
- CDisable ASIDs
- DUse smaller page sizes
2.During a context switch, the system experiences a surge in TLB misses. What could be a reason for this behavior?
- AThe page size is reduced
- BThe TLB is flushed, clearing all entries
- CASIDs are used to avoid flushing
- DThe TLB entries are doubled
3.A developer notices that a Java application with a large heap is experiencing high TLB misses. What optimization can be applied?
- AUse huge pages to increase TLB reach
- BIncrease the number of page table entries
- CDisable ASIDs
- DReduce the heap size
4.What is the effective memory access time if the TLB hit rate is 99%, with a hit cost of 1 cycle and a miss cost of 100 cycles?
- A99 cycles
- B100 cycles
- C1 cycle
- D2 cycles
5.A system with high TLB hit rates suddenly experiences slower loop execution. What might be a cause?
- AThe page size decreased
- BThe working set no longer fits in the TLB
- CThe TLB entries increased
- DASIDs were enabled
6.Which of the following statements is true about TLBs?
- ATLBs are part of the main memory
- BTLBs cache virtual-to-physical page translations
- CTLBs store entire page tables
- DTLBs eliminate the need for page tables
7.A software engineer increases the page size from 4 KB to 2 MB. What is the likely effect on TLB reach?
- ATLB flushes become more frequent
- BTLB entries decrease, increasing TLB pressure
- CTLB reach increases, reducing TLB pressure
- DTLB reach decreases, increasing TLB pressure
8.A system's TLB hit rate drops after a new process is scheduled. What could be the underlying reason?
- AThe page size was increased
- BASIDs were used to retain entries
- CThe TLB was flushed during context switch
- DThe TLB entries were doubled