retagged by
1,038 views
1 votes
1 votes

i'm not getting ans

retagged by

1 Answer

Best answer
2 votes
2 votes
I do not know how bad they can form a question like this.

Write-through cache - main memory is updated whenever a write happens. Does, the corresponding line brought to cache - depends on write allocate or not, but by default it is assumed not.

"word in the cache" - may be ME invention. Assuming memory is word addressible. So, each memory reference takes 8 bytes.

Also, "dirty bit" should not have been in question.

Average memory references for read = hit rate * 0 + miss rate * line size

$=0.1\times 8 = 0.8$

Average memory references for write = 8 (all write operations goes to memory and only the word is written).

So, total memory reference considering both read and writes

$= 168 \times 0.8 + 32 \times 8 = 134.4 + 256 = 390.4$
selected by

Related questions

1 votes
1 votes
1 answer
1
0 votes
0 votes
1 answer
4