CO Problems M3
CO Problems M3
Assume that 30 percent of the instructions in a typical program perform a read or a write
operation and that the hit rate is the same for both caches and that it is equal to 0.95 for
instructions and 0.90 for data. Assume also that the times needed to access an 8-word
block in these caches are C1 = 1 cycle and C2 = 10 cycles.
(a) What is the average access time experienced by the processor if the main memory
uses interleaving?
(b) What is the average access time if the main memory is not interleaved?
(c) What is the improvement obtained with interleaving?
Solution:
For Instructions: For Data:
h1 = h2 = 0.95 h1 = h2 = 0.90
C1 = 1 C1 = 1
C2 = 10 C2 = 10
3.2. Calculate the total access time if miss rate is 0.12, Miss Penalty is 0.015ms and cache
access time is 10 microseconds.
Solution:
Hit Rate = h= 1 – Miss Rate = 1 – 0.12 = 0.88
C = 10 microseconds
M = 0.015 ms
tave = hC + (1 – h) M
=(0.88 * 10 * 10-6) + 0.12 * 0.015 * 10-3 = 10.6 microseconds
3.3. A disk unit has 24 recording surfaces. It has a total of 14,000 cylinders. There is an
average of 400 sectors per track. Each sector contains 512 bytes of data.
1. What is the maximum number of bytes that can be stored in this unit?
2. What is the data transfer rate in bytes per second at a rotational speed of
7200 rpm?
3. Using a 32-bit word, suggest a suitable scheme for specifying the disk
address, assuming that there are 512 bytes per sector.
Solution:
= 24.58 * 106 bytes/sec
3. 400 sectors per track -> 9 bits to identify a sector within a track