retagged by
3,941 views
9 votes
9 votes
Consider a system with cache access time 20 ns and main memory access time 140 ns. If 60% operations are read operations and hit ratio is 90%. What is the effective access time if write through updation technique is used?
(a) 75.2 ns (b) 76.4 ns
(c) 83.2 ns (d) 84.4 ns
retagged by

2 Answers

Best answer
10 votes
10 votes

Given Tc = 20ns, Tm = 140 ns, h = 0.90 

Here write through updation technique is used according to which both main memory and cache memory are updated simultaneously.

Average read access time Tr is 

Tr = h*Tc + (1-h)*(Tc+Tm)

Tr = .90*20 + .10*(20+140) = 34ns.

Average write access time Tw is 

Tw = h*Tm + (1-h)*(Tm) 

Tw = .90*140 + .10*140 = 140ns

Actually whenever a write miss occurs in write through technique the information is written directly into the main memory, there is no need to bring block into the cache.

Given 60% read operations so 40% write operations are there.

Average access time is Tavg 

Tavg = .60 * Tr + .40 * Tw

Tavg = .60 * 34 + .40 * 140 = 76.4 ns

Answer is option b) 76.4 ns 

selected by
1 votes
1 votes

In Write through updation technique, if the block to be read isn't present in the cache then Memory is accessed and cache and main memory are updated simultaneously. In case of write operation, directly the main memory is accessed for writing the block.

Therefore,

Tavg = 0.9×20 + 0.1×(20+140) [write through cache]

         = 18 + 16

         = 34 ns
Effective access time = 0.6×34 + 0.4×140 [writing only to main memory]

                                      = 20.4 + 56

                                      = 76.4 ns

Answer:

Related questions

0 votes
0 votes
1 answer
1
prasitamukherjee asked Nov 14, 2016
515 views
Here , in sol. they have obtained ans as :0.35*(max(40,50)) + 0.65 *(40+50) = 76Shouldn't the access times be not considered at all?
1 votes
1 votes
1 answer
2
1 votes
1 votes
1 answer
4