GATE CSE
First time here? Checkout the FAQ!
x
+1 vote
51 views
Consider a system with the main memory access time as 200 ns and cache access time as 10 ns. Hit ratio for
read request is 0.8 and 80% of the memory requests are for read. If write through policy is used, then the
average time considering both read and write requests is _______.
a. 169.6 ns
b. 192.4 ns
c. 78.4 ns
d. None of these
asked in CO & Architecture by (307 points)   | 51 views
c) 78.4??
Yes. Correct.

sir please  send  solution..

1 Answer

+3 votes
Avg time= read request ( read hit*cache access time+ read miss*(main memory+cache access time)) + write request ( main memory)

Here write request* main memory is done because of write through cache so both cache and main memory Will be updated simultaneously and since main memory has large delay we have taken it

Avg time=0.8(.8*10+.2*210)+0.2*200=80 ns

Option D

unless not mention we have to take cache access time while calculating cache miss
answered by Boss (6.6k points)  
edited by

sir 

we are taking 

Avg time= read request ( read hit*cache time+ read miss*(main memory+cache time)) + write request ( main memory).  As write-through works in multilevel(heirarchical) design.

why you have not taken cache time in solution.

yes you are correct
but in answer key  (c) is given as correct answer.
I am getting the same answer as 80, same as explained by Tesla.
OK. Thank You. Sir.
There answer is incorrect, they have to mention if main memory time is including cache time or not, if not then we add cache acess time also, you can see any gate question whenever it is not mentioned they add cache acess time in main memory time

Related questions

+1 vote
1 answer
1
asked ago in CO & Architecture by hem chandra joshi Active (1.1k points)   | 19 views
+1 vote
0 answers
2
+1 vote
0 answers
3
asked ago in CO & Architecture by aaliya (89 points)   | 7 views


Top Users Aug 2017
  1. ABKUNDAN

    4670 Points

  2. Bikram

    4412 Points

  3. akash.dinkar12

    3390 Points

  4. rahul sharma 5

    3072 Points

  5. manu00x

    2682 Points

  6. makhdoom ghaya

    2430 Points

  7. just_bhavana

    2130 Points

  8. Tesla!

    1932 Points

  9. stblue

    1806 Points

  10. joshi_nitish

    1620 Points


24,935 questions
32,039 answers
74,447 comments
30,125 users