- Home
- Engineering
- Computer
- Operating Systems
- Effective Memory Access Time (EMAT) Calculator
Effective Memory Access Time (EMAT) Calculator
Average memory access time with a TLB from the hit ratio, TLB time and memory time.
Practice questions
Textbook-style questions. Press Solve in the tool to load the values and see the full solution. Underlined words are explained below.
Worked example
Here's the first practice question solved in full, so you can see exactly what you'll get. Try it on paper before you read the steps.
Question: A TLB takes 20 ns and memory 100 ns. With an 80% hit ratio, find the effective access time.
- Write the given values in SI units
- Time on a TLB hit: TLB + one memory access
- Time on a TLB miss: TLB + page table + the data
- Weighted average
- Slowdown compared with one plain memory access
- Write the given values in SI units
h = 80 % t = 20 ns = 2 × 10−8 s m = 100 ns = 1 × 10−7 s - Time on a TLB hit: TLB + one memory access
Thit = t + m = (2 × 10−8) + (1 × 10−7) = 1.2 × 10−7 s (= 120 ns) - Time on a TLB miss: TLB + page table + the data
Tmiss = t + 2 × m = (2 × 10−8) + 2 × (1 × 10−7) = 2.2 × 10−7 s (= 220 ns) - Weighted average
EMAT = h/100 × Thit + (1 − h/100) × Tmiss = 80/100 × (1.2 × 10−7) + (1 − 80/100) × (2.2 × 10−7) = 1.4 × 10−7 s (= 140 ns) - Slowdown compared with one plain memory access
% = EMAT − mm × 100 = (1.4 × 10−7) − (1 × 10−7)(1 × 10−7) × 100 = 40 %
Terms used on this page
New to a word in the question or the solution? Here it is in simple language.
- Page and frame
- Programs are cut into equal pieces called pages. Main memory is cut into slots of the same size called frames. A page must sit in a frame before the CPU can use it.
- Page fault and hit
- A hit means the page you need is already in memory. A page fault means it isn't, so the OS must load it, which is slow.
- Hit ratio and miss ratio
- Hit ratio = hits ÷ total requests. Miss ratio = faults ÷ total requests. They add up to 100%.
Symbols in this solver
What each box asks for, and its unit.
| Symbol | What it means | SI unit |
|---|---|---|
| h | TLB hit ratio | % |
| t | TLB lookup time | s (or ms, µs, ns) |
| m | Main memory access time | s (or ms, µs, ns) |
Formula & concept
Average time to access memory with paging and a translation look-aside buffer (TLB), from the hit ratio and access times.
Key idea: Without a TLB, every access needs two trips to memory: one for the page table and one for the data. A good TLB with a 98% hit rate brings the cost close to a single trip.
How to use this calculator
- Type the known values from your question and pick the unit for each one.
- Press Solve step by step.
- Read the plan first. It lists the steps the solution will follow. Want to try it yourself? Tick Practice mode and the answer stays hidden until you ask for it.
- Check the answer, then go through each numbered step. Where there's a second method, it's shown after the main one.
- Stuck on a word? The terms section explains it in simple language.