S4 Computer architecture · Practice
Virtual memory and TLBs
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
0 solved
0 in a row
0 of 10 kinds solid
Check
A TLB has 64 entries for 4 KB pages. What's its reach?
Check
A 48-bit virtual address space uses pages of bytes and 8-byte page table entries, with each table one page in size. How many levels does the page table need?
Check
How big would a flat page table be for a 39-bit address space with -byte pages and 8-byte entries?
Check
A TLB lookup takes 1 ns and memory 80 ns. The TLB hits 0.995 of the time; a miss walks 4 levels, each a memory access. What's the average time for a memory access?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
With 4 KB pages, how large can a 4-way VIPT cache be without aliasing?
Check
Memory takes 60 ns and a page fault 5 ms. What's the largest fault rate per access that keeps the slowdown within 0.2?
Check
A machine has 48-bit virtual addresses, 4 KB pages, 8-byte page-table entries and a 1536-entry TLB with a 0.995 hit rate; memory takes 100 ns and the TLB 1 ns.
(a)
How many levels does its page table need?
(b)
What is the TLB's reach?
(c)
What is the average access time?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Reach: 48 entries, 4 KB pages?
Check
Page-table levels: 48-bit VA, -byte pages?
Check
Average access: TLB 1 ns, memory 90 ns, hit 0.99, 5 levels?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in S4