Skip to content
Tactiverge

Olympiad · Practice · public practice problem

Where do the cycles go? A two-level cache

Difficulty 4 of 511 points in 4 partsSuggested time ~25 min (never timed here)

The problem

A core runs at 2 GHz. L1 hit time is 1 cycle with a miss rate of 5 %. L2 hit time is 12 cycles with a local miss rate of 20 %. Main memory costs 200 cycles. With a perfect L1 the core's CPI would be 1.0, and it makes 0.3 data accesses per instruction (ignore instruction fetch).

  1. Part (a) · 3 points

    Average memory access time, in cycles?

    cyclesTolerance: ±0.01 cycles

  2. Part (b) · 1 point

    That AMAT in nanoseconds?

    nsTolerance: ±0.01 ns

  3. Part (c) · 3 points

    Effective CPI including memory stalls?

    (pure number)Tolerance: ±0.005

  4. Part (d) · 4 points · rubric with 2 criteria

    You can either halve the L1 miss rate or halve the main-memory latency. Which gives the lower CPI? Show both.

    Written parts stay in your browser. Reveal the worked solution to mark yourself against the rubric.

Checked so far: 0 of 7 automatically marked points, plus 4 for written parts you mark yourself against the rubric. Nothing is saved.

Stuck? Hints, then the worked solution

Written with AI assistance. Review status: technically-checked (answers recomputed independently with units verified by automated tests); not yet reviewed by an educator or judge.