Answer: 99.99
The average access time (Tavg) for a two-level memory system is given by:
Tavg=tM+(1−H)tD
where:
- tM=10−8 sec (Main memory access time)
- tD=10−3 sec (Secondary memory access time)
- H is the hit ratio
The access efficiency (η) is defined as the ratio of the main memory access time to the average access time:
η=TavgtM=tM+(1−H)tDtM
For the efficiency to be within 80% (or 0.8) of its maximum value (which is 1):
tM+(1−H)tDtM≥0.8
Substitute the given values into the inequality:
10−8+(1−H)10−310−8≥0.8
10−8≥0.8×10−8+0.8×(1−H)10−3
0.2×10−8≥0.8×(1−H)10−3
1−H≤0.8×10−30.2×10−8
1−H≤0.25×10−5=2.5×10−6
H≥1−0.0000025=0.9999975
Expressing H as a percentage:
H≥99.99975%
Thus, the hit ratio must be at least 99.99% (or more precisely, 99.99975%).