The Gateway to Computer Science Excellence
0 votes
91 views

if there is a miss in cache and hit in mm what is access time 60ns or 60+20=80ns.

how is the statement " reference started again" related to the  meaning of the question?

in CO and Architecture by Active (3.5k points) | 91 views
0
"Reference started again" simply means that the data will be again accessed next time and thus, for the Miss penalty time, we need to take into account only till the data is moved into the cache from main memory.

1 Answer

0 votes

Since nothing is mentioned, I would assume Hierarchical access.

Tavg = H1T1 + (1-H1)H2(T1+T2) + (1-H1)(1-H2)(T1+T2+T3)

Since there are 3 levels. 

This formula can be interpreted as

[(Hit in Level 1) * (Time to access in level 1)] + [(Miss in Level 1) *  (Hit in Level 2) * (Time to access Level 1 memory + Time to access Level 2 memory)] + [(Miss in Level 1) * (Miss in Level 2) * (Time to access Level 1 memory + Time to access Level 2 memory + Time to access Level 3 memory)]

In the last term, H3 is assumed to be 1 as the word has to be there in the last level memory.

Thus in this case,

H1 = 0.9

H2 = 0.6

T1 = 20

T2 = 60

T3 = 12 * 106 ns

So, Tavg = 480,026 ns

by Loyal (7.8k points)
edited by

Related questions

+2 votes
0 answers
2
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,645 questions
56,542 answers
195,693 comments
101,536 users