1. Home
  2. Engineering
  3. Computer
  4. Operating Systems
  5. 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.

Operating SystemsEngineeringBeginnerStep-by-step solution

Practice questions

Textbook-style questions. Press Solve in the tool to load the values and see the full solution. Underlined words are explained below.

  1. A TLB takes 20 ns and memory 100 ns. With an 80% hit ratio, find the effective access time.

  2. Repeat with a 98% hit ratio. How much does it help?

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.

Plan: how this problem is solved
  1. Write the given values in SI units
  2. Time on a TLB hit: TLB + one memory access
  3. Time on a TLB miss: TLB + page table + the data
  4. Weighted average
  5. Slowdown compared with one plain memory access
Answer
Effective memory access timeEMAT = 1.4 × 10−7 s (= 140 ns)
Extra time over one memory access% = 40 %
Step-by-step solution
  1. Write the given values in SI units
    h=80 %
    t=20 ns = 2 × 10−8 s
    m=100 ns = 1 × 10−7 s
  2. 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)
  3. 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)
  4. 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)
  5. Slowdown compared with one plain memory access
    %=EMAT − mm × 100
    =(1.4 × 10−7) − (1 × 10−7)(1 × 10−7) × 100
    =40 %
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.

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.

SymbolWhat it meansSI unit
hTLB hit ratio%
tTLB lookup times (or ms, µs, ns)
mMain memory access times (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.

EMAT = h(t + m) + (1 − h)(t + 2m)

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

  1. Type the known values from your question and pick the unit for each one.
  2. Press Solve step by step.
  3. 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.
  4. Check the answer, then go through each numbered step. Where there's a second method, it's shown after the main one.
  5. Stuck on a word? The terms section explains it in simple language.

Frequently asked questions

How does the Effective Memory Access Time (EMAT) work?
You enter the values you know, pick their units and press Solve. The tool changes everything to SI units, applies the formula EMAT = h(t + m) + (1 − h)(t + 2m) and shows you each step: given data, formula, substitution and the final answer.
What is the key idea behind it?
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.
Can I enter values in km, mm, kN or °C?
Yes. Each box has a unit list. The conversion to SI units is shown as the first step of the solution.
What if my answer doesn't match my book?
First check that you've picked the right units. Then see which constants your book uses and how many figures it rounds to. You can change the number of figures under Settings in the solver. A small difference in the last digit is usually just rounding.
Can I see how to solve it without seeing the answer?
Yes. Tick Practice mode under the solver. You'll get the plan of steps only, so you can work it out on paper. One click then shows the full solution.
Is the Effective Memory Access Time (EMAT) free to use?
Yes, it's free with no sign-up. All calculations happen inside your browser and nothing you type is stored.
Which grades is it useful for?
It's made for Engineering (University · B.Tech · B.E. · Diploma · GATE · FE). The working follows the method used in textbooks and exams.