Paging practice
Translator, EAT calculator problems and a quiz.
Module 4
Session 4.3
Lesson 3 of 3
Paging practice
Address translation and effective access time, step by step.
Address translatorEdit the inputs, press Run, then Step or Play.
Effective access time
Formula
EAT = α (ε + m) + (1 − α)(ε + 2m), where α = TLB hit ratio, ε = TLB search time, m = memory access time.
| m | ε | α | EAT |
|---|---|---|---|
| 100 ns | 0 | 80% | 0.8 × 100 + 0.2 × 200 = 120 ns |
| 100 ns | 0 | 99% | 101 ns |
| 100 ns | 20 ns | 80% | 0.8 × 120 + 0.2 × 220 = 140 ns |
| 50 ns | 2 ns | 95% | 0.95 × 52 + 0.05 × 102 = 54.5 ns |
Quick check
Logical address space 216, page size 210. Bits in the page number?
16 − 10 = 6 → 64 pages.
A hit ratio of 0% with ε = 0 gives EAT = …
Every access needs the page-table read plus the data read.
Which page-table structure has one entry per physical frame?
One table for the whole system.