CPUs and architecture

Which cache holds the results of translating virtual addresses into physical addresses to speed up address translation?

  1. AL3 cache
  2. BTLB (translation lookaside buffer)
  3. CRegister file
Show answer and explanation

Answer: B. TLB (translation lookaside buffer)

Virtual memory must translate the virtual addresses programs use into physical addresses, and since page tables live in memory, walking them each time would cost several memory accesses. The TLB caches recent translations. With only tens to thousands of entries, it misses more as working sets grow, so large pages (huge pages, such as 2 MB) are used to extend its reach.

Virtual-to-physical address translation (TLB and page table) Virtual address Virtual page number (VPN) Page offset TLB Translation cache Page table In main memory Miss Fill Hit Page walk Unchanged Physical frame number (PFN) Page offset Physical address With 4 KB pages, the offset is the low 12 bits
Virtual-to-physical address translation (TLB and page table) · View in diagrams

Related calculators

Books on CPUs and architecture Ad

As an Amazon Associate I earn from qualifying purchases.

More CPUs and architecture questions

  1. Which dedicated circuit is built into smartphone SoCs and similar chips to perform AI inference quickly and with low power?
  2. In a typical computer, which lists the memory hierarchy from fastest to slowest access?
  3. Approximately how many instructions per second can a processor with a 2 GHz clock and an average CPI (clocks per instruction) of 0.5 execute?
  4. If 90% of a program can be parallelized, what is the theoretical maximum speedup when it runs on an unlimited number of processors?
  5. Which scheme performs the same operation on multiple data items simultaneously with a single instruction?

Comparisons in this topic