Cache hit rate = 80%; cache access time = 5 ns; memory access time = 50 ns. Then, effective access time (in ns): 

A

15

B

45

C

50

D

55

উত্তরের বিবরণ

img

Answer: A) 15ns
Effective Access Time (EAT) :
Effective Access Time (EAT) = the average time required to access data, considering both cache hits and misses.

When the CPU requests data:

With probability h (the hit rate), the data is found in the cache.
With probability (1 – h) (the miss rate), the data is not in the cache, so we must fetch it from main memory — which takes more time.
So EAT = weighted average of hit time and miss time.

  The general formula
EAT= (h×Hit Time) +(1−h)×Miss Time

Most textbooks (including Tanenbaum, Stallings, Patterson & Hennessy) define:
Hit Time = Cache access time (Tc)
Miss Time = Cache access time + Memory access time (Tm)
because when you miss:
You first try the cache (takes Tc),
then go to memory (takes Tm).
So:
EAT=(h×Tc)+(1−h)×(Tc+Tm)

 Some references simplify Miss Time as just Tm
They assume that:
Once a miss occurs, we ignore the time already spent checking the cache (Tc is very small compared to Tm).
Or, the cache controller overlaps the check with the memory access.
Then the formula becomes:
EAT=(h×Tc)+(1−h)×Tm
 Both are correct — it depends on what’s included in Tm:

Unfavorite

0

Updated: 17 hours ago

Related MCQ

What will be the time complexity of the following algorithm: 
sum = 0; 
for (i=1; i<=n; i= i*2)
     for (j=1; j

        sum+=i*j; 

Created: 17 hours ago

A

O(n)

B

O(logn)

C

O(n2)

D

O(n log n) 

Unfavorite

0

Updated: 14 hours ago

A relation R on a set B is an equivalence relation if it is: 

Created: 17 hours ago

A

Reflexive and symmetric

B

Reflexive and transitive


C

symmetric and transitive

D

Reflexive, symmetric and transitive

Unfavorite

0

Updated: 14 hours ago

For a n-element min-Heap: 

Created: 17 hours ago

A

the smallest element can be found anywhere in the heap.

B

it is a type of binary search tree.


C

accessing an arbitrary element is an O(n) operation. 

D

the largest element is always at the root.

Unfavorite

0

Updated: 17 hours ago

© LXMCQ, Inc. - All Rights Reserved

Developed by WiztecBD