441 views
0 votes
0 votes
4. A computer has a cache, main memory, and a disk
used for virtual memory. If a referenced word
is in the cache, 20 ns
are required to access it. If it is in main memory but not in the cache, 60 ns
are
needed to load it into the cache (this includes the
time to originally check the cache), and then the
reference is started again. If the word is not in main memory, 12 ms
are required to fetch the word
from disk, followed by 60 ns to copy it to the
cache, and then the reference is started again. The
cache hit ratio is 0.9(90%)
and the main-memory hit ratio is 0.6 (60%)
. What is the average time in
ns required to access a referenced word on this system?

1 Answer

0 votes
0 votes
= 0.9 * (20 ns) + 0.1 * (0.6 * (60 ns) + 0.4 * (12 ms + 60 ns))
= 0.9 * (20 ns) + 0.1 * (4800060 ns)
= 480024 ns

Related questions

0 votes
0 votes
0 answers
1
Arjun asked Feb 27, 2022
487 views
This is part of the site features explanation videos contest as explained here
1 votes
1 votes
0 answers
3
jyoti mishra asked Jun 29, 2017
755 views
Which is a permanent database in the general model of compiler?(a) literal Table(b) identifier Table(c) terminal Table(d) source code