Awesome q2a theme
0 votes
16 views

 

For this question, they’ve solved it using the formula AMAT = H1T1 + M1(H2T2 + M2 ...) and so on.

However, since the question has directly given the hit time of the cache, I thought it’d be more appropriate to use the formula: 

AMAT = HitTime(cache) + MissRate(Cache)*(HitTime(MM) + MissRate(MM)*(HitTime(Secondary)))

So, which one is more appropriate and how would you differentiate between the two use cases? 

in CO & Architecture by (377 points) | 16 views
0

@shashin If you could help, that'd be great. 

0

if it is found in main memory access time is xxxx and access time of secondary storage is yyyy

This statement seems inconsistent and so I would interpret it either way. Either they should say "access time in case of cache miss is xxxx", or "access time of main memory is xxxx", or something along those lines. 

As long as you have the approach right, you shouldn't worry.

0
Fair enough, but what is the more obvious case where we have to use the former formula i.e H1T1? I mean, what particular phrasing gives it away that we'll use it?
+1
Well, pretty much something that says "access time in case of cache miss....".

But the best answer to this would be to go through all the previous year questions on cache, and digest the language they've used. There shouldn't be any sort of ambiguity here - so better look at the source itself.
+1

@goxul Cache memory problems on testbook are erroneous, so I suggest not to spend too much time on them.

Please log in or register to answer this question.

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
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Top Users Jun 2020
  1. nehaPal13

    7 Points

  2. Radheram

    6 Points

  3. vps123

    4 Points

  4. ummokkate

    1 Points

  5. Musa

    1 Points

  6. AliH

    1 Points

  7. DukeThunders

    1 Points

  8. Doraemon

    1 Points

  9. kpc

    1 Points

  10. Kushagra गुप्ता

    1 Points

7,393 questions
1,744 answers
10,711 comments
90,368 users